From ad1b1665405727ff96381c5818a5abfc7e225e96 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 4 May 2009 11:15:58 +0200 Subject: Fixing opening window resizing and removing menubar & toolbar. rekonq has just one mainwindow. --- src/mainwindow.cpp | 14 ++++++++++---- 1 file 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"; } -- cgit v1.2.1