summaryrefslogtreecommitdiff
path: root/src/tabwindow/rekonqwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabwindow/rekonqwindow.cpp')
-rw-r--r--src/tabwindow/rekonqwindow.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/tabwindow/rekonqwindow.cpp b/src/tabwindow/rekonqwindow.cpp
index eb511b18..8bc96d87 100644
--- a/src/tabwindow/rekonqwindow.cpp
+++ b/src/tabwindow/rekonqwindow.cpp
@@ -125,9 +125,6 @@ RekonqWindow::RekonqWindow(QWidget* parent)
ktwsm->dummyInit();
sWindowList->append(this);
- // a decent minimum size...
- setMinimumSize(100,40);
-
QString geometry;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs("kde");
if (args && args->isSet("geometry"))
@@ -158,6 +155,13 @@ RekonqWindow::~RekonqWindow()
}
+QSize RekonqWindow::sizeHint() const
+{
+ QRect desktopRect = QApplication::desktop()->screenGeometry();
+ QSize size = desktopRect.size() * 0.8;
+ return size;
+}
+
QList<RekonqWindow*> RekonqWindow::windowList()
{
return *sWindowList;