diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-26 11:55:45 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-26 11:55:45 +0200 |
commit | 242ce9ca556de1aa5355a24bfd6855dfa9a39e4f (patch) | |
tree | aaea98dba9ad69bbaaf18978140e1573247aa713 /src/mainview.cpp | |
parent | i18n (diff) | |
download | rekonq-242ce9ca556de1aa5355a24bfd6855dfa9a39e4f.tar.xz |
mainview fixes
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 470a7e06..2e30aa58 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -80,19 +80,17 @@ MainView::MainView(QWidget *parent) m_recentlyClosedTabsAction->setMenu(m_recentlyClosedTabsMenu); m_recentlyClosedTabsAction->setEnabled(false); + #if QT_VERSION >= 0x040500 + connect(m_tabBar, SIGNAL(closeRequest(int)), this, SLOT(closeTab(int))); #if KDE_IS_VERSION(4,2,60) setTabsClosable(true); // this causes #23 on KDE 4.2 #else - setCloseButtonEnabled(true); // this is deprecated, remove + setCloseButtonEnabled(true); // this is deprecated, remove for KDE >=4.3 + #endif #endif - - connect(m_tabBar, SIGNAL(tabCloseRequested(int)),this, SLOT(slotCloseTab(int))); - - // -- - connect(this, SIGNAL(loadUrlPage(const KUrl &)), - this, SLOT(loadUrlInCurrentTab(const KUrl &))); // -- + connect(this, SIGNAL(loadUrlPage(const KUrl &)), this, SLOT(loadUrlInCurrentTab(const KUrl &))); connect(this, SIGNAL(currentChanged(int)), this, SLOT(slotCurrentChanged(int))); } |