summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-12 00:53:37 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-12 00:53:37 +0100
commit33af8415b29e428d926bb6e61f77e7faf91c4ff6 (patch)
treef044529dc51841f94990533948f45f46e51b7356 /src/mainwindow.cpp
parentupgrading ui to 4.5.0 (diff)
downloadrekonq-33af8415b29e428d926bb6e61f77e7faf91c4ff6.tar.xz
Solved initial size problem!
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;