summaryrefslogtreecommitdiff
path: root/src
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
parentupgrading ui to 4.5.0 (diff)
downloadrekonq-33af8415b29e428d926bb6e61f77e7faf91c4ff6.tar.xz
Solved initial size problem!
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp12
-rw-r--r--src/mainwindow.h1
2 files changed, 9 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;
diff --git a/src/mainwindow.h b/src/mainwindow.h
index d620990e..0082a2c0 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -57,6 +57,7 @@ public:
static KUrl guessUrlFromString(const QString &url);
MainView *tabWidget() const;
WebView *currentTab() const;
+ virtual QSize sizeHint() const;
private:
void setupActions();