summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-04 11:15:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-05-04 11:15:58 +0200
commitad1b1665405727ff96381c5818a5abfc7e225e96 (patch)
tree767667e349bb680a32b64b6ac865b2083a21e8f1 /src/mainwindow.cpp
parentModified webkit icon (diff)
downloadrekonq-ad1b1665405727ff96381c5818a5abfc7e225e96.tar.xz
Fixing opening window resizing and removing menubar & toolbar.
rekonq has just one mainwindow.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d1ab721f..1ab59e2d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -134,10 +134,12 @@ void MainWindow::postLaunch()
// --------- connect signals and slots
connect(m_view, SIGNAL(setCurrentTitle(const QString &)), this, SLOT(slotUpdateWindowTitle(const QString &)));
connect(m_view, SIGNAL(loadProgress(int)), this, SLOT(slotLoadProgress(int)));
- connect(m_view, SIGNAL(geometryChangeRequested(const QRect &)), this, SLOT(geometryChangeRequested(const QRect &)));
connect(m_view, SIGNAL(printRequested(QWebFrame *)), this, SLOT(printRequested(QWebFrame *)));
- connect(m_view, SIGNAL(menuBarVisibilityChangeRequested(bool)), menuBar(), SLOT(setVisible(bool)));
- connect(m_view, SIGNAL(statusBarVisibilityChangeRequested(bool)), statusBar(), SLOT(setVisible(bool)));
+
+ // FIXME: these slots will be commented out until rekonq will have just ONE mainwindow
+// connect(m_view, SIGNAL(geometryChangeRequested(const QRect &)), this, SLOT(geometryChangeRequested(const QRect &)));
+// connect(m_view, SIGNAL(menuBarVisibilityChangeRequested(bool)), menuBar(), SLOT(setVisible(bool)));
+// connect(m_view, SIGNAL(statusBarVisibilityChangeRequested(bool)), statusBar(), SLOT(setVisible(bool)));
// status bar messages
connect(m_view, SIGNAL(showStatusBarMessage(const QString&)), statusBar(), SLOT(showMessage(const QString&)));
@@ -867,9 +869,13 @@ void MainWindow::slotOpenNext()
}
+// FIXME: this change will be there until rekonq'll have ONE mainwindow
+// (probably forever..)
void MainWindow::geometryChangeRequested(const QRect &geometry)
{
- setGeometry(geometry);
+ Q_UNUSED(geometry)
+// setGeometry(geometry);
+ kDebug() << "No geometry change allowed";
}