From 242ce9ca556de1aa5355a24bfd6855dfa9a39e4f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 26 Apr 2009 11:55:45 +0200 Subject: mainview fixes --- src/mainview.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/mainview.cpp') 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))); } -- cgit v1.2.1