[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bskrooge=5D_skgbasegui=3A_Port_to_non-deprecated_API?=
From:       David Faure <faure () kde ! org>
Date:       2011-06-30 20:47:13
Message-ID: 20110630204713.F16A8A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 071afac80afb9a0ac0565983179dc316ccb0b244 by David Faure.
Committed on 30/06/2011 at 22:46.
Pushed by dfaure into branch 'master'.

Port to non-deprecated API.

This makes the tabs movable with LMB as well as MMB, with an animation.

M  +2    -2    skgbasegui/skgmainpanel.cpp     

http://commits.kde.org/skrooge/071afac80afb9a0ac0565983179dc316ccb0b244

diff --git a/skgbasegui/skgmainpanel.cpp b/skgbasegui/skgmainpanel.cpp
index 6b6e28c..0788a0d 100644
--- a/skgbasegui/skgmainpanel.cpp
+++ b/skgbasegui/skgmainpanel.cpp
@@ -207,12 +207,12 @@ SKGMainPanel::SKGMainPanel(KSplashScreen* iSplashScreen, SKGDocument* iDocument,
     setCentralWidget(m_tabWidget);
 
     refreshTabPosition();
-    m_tabWidget->setTabReorderingEnabled(true);
+    m_tabWidget->setMovable(true);
     m_tabWidget->setTabsClosable(true);
     m_tabWidget->setAutomaticResizeTabs(true);
     m_tabWidget->setTabBarHidden(false);
     m_tabWidget->setUsesScrollButtons(true);
-    m_tabWidget->setTabCloseActivatePrevious(true);
+    m_tabWidget->tabBar()->setSelectionBehaviorOnRemove(QTabBar::SelectPreviousTab);
     m_tabWidget->setDocumentMode(true);
 
     m_tabWidget->show();

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic