summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e24f4cf7..1c515218 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -86,10 +86,6 @@ MainWindow::MainWindow()
setCentralWidget(centralWidget);
// setting size policies
- QRect desktopRect = QApplication::desktop()->screenGeometry();
- QSize size = desktopRect.size() * 0.8;
- setMinimumSize( size );
-
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
// connect signals and slots
@@ -154,6 +150,14 @@ MainWindow::~MainWindow()
}
+QSize MainWindow::sizeHint() const
+{
+ QRect desktopRect = QApplication::desktop()->screenGeometry();
+ QSize size = desktopRect.size() * 0.8;
+ return size;
+}
+
+
void MainWindow::setupActions()
{
KAction *a;