#include <QMessageBox>
#endif
+#include <QApplication>
+#include <QDesktopWidget>
+
UiUtils::UiUtils()
{
}
QMessageBox::critical(0, "Movie-Schedule", errormsg);
#endif
}
+
+bool UiUtils::IsLandscape()
+{
+ QRect screenGeometry = QApplication::desktop()->screenGeometry();
+ return (screenGeometry.width() > screenGeometry.height());
+}
+
+bool UiUtils::IsPortrait()
+{
+ return !IsLandscape();
+}