summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-04 23:21:46 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-05 00:49:37 +0200
commitdeab0dd37edbc4007a3c2cf32d31811aff0e7e2d (patch)
treeb2a2884a69dd03428cdb9bcf15150a17ebbff867 /src/mainwindow.cpp
parentThis should fix the Ctrl+w bug. Anyway, it really doesn't solve it: there is ... (diff)
downloadrekonq-deab0dd37edbc4007a3c2cf32d31811aff0e7e2d.tar.xz
Awesome bar speed up
This commit introduces notable changes and needs a lot of tests Courtesy patch from Mathias Kraus. Thanks :) BUG: 237390
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index dc1dc708..805f3d45 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -109,6 +109,7 @@ MainWindow::MainWindow()
, m_hidePopup(new QTimer(this))
, m_ac(new KActionCollection(this))
{
+ kDebug() << "MainWindow ctor...";
// enable window size "auto-save"
setAutoSaveSettings();
@@ -152,6 +153,8 @@ MainWindow::MainWindow()
connect(m_hidePopup, SIGNAL(timeout()), m_popup, SLOT(hide()));
QTimer::singleShot(0, this, SLOT(postLaunch()));
+
+ kDebug() << "MainWindow ctor...DONE";
}
@@ -185,6 +188,8 @@ MainWindow::~MainWindow()
void MainWindow::setupToolbars()
{
+ kDebug() << "setup toolbars...";
+
// ============ Main ToolBar ================================
m_mainBar->addAction(actionByName(KStandardAction::name(KStandardAction::Back)));
m_mainBar->addAction(actionByName(KStandardAction::name(KStandardAction::Forward)));
@@ -267,6 +272,8 @@ QSize MainWindow::sizeHint() const
void MainWindow::setupActions()
{
+ kDebug() << "setup actions...";
+
// this let shortcuts work..
actionCollection()->addAssociatedWidget(this);
@@ -454,6 +461,7 @@ void MainWindow::setupActions()
void MainWindow::setupTools()
{
+ kDebug() << "setup tools...";
KActionMenu *toolsMenu = new KActionMenu(KIcon("configure"), i18n("&Tools"), this);
toolsMenu->setDelayed(false);
@@ -531,6 +539,7 @@ void MainWindow::setupTools()
void MainWindow::setupPanels()
{
+ kDebug() << "setup panels...";
KAction* a;
// STEP 1