[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 92207] Drag and drop Tabs instead using context menu.
From: Jakub Stachowski <qbast () go2 ! pl>
Date: 2010-07-01 13:58:08
Message-ID: 20100701135808.8F06B47C2C () immanuel ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=92207
--- Comment #4 from Jakub Stachowski <qbast go2 pl> 2010-07-01 15:58:06 ---
commit aa2678652c67c1d918638a2ab3149829fd2f4aff
Author: Jakub Stachowski <qbast@go2.pl>
Date: Sat Jan 29 18:59:55 2005 +0000
Tabs can be moved by dragging.
BUG:92207
svn path=/trunk/kdeextragear-2/konversation/; revision=383827
diff --git a/konversation/ledtabbar.cpp b/konversation/ledtabbar.cpp
index 8615aee..f526654 100644
--- a/konversation/ledtabbar.cpp
+++ b/konversation/ledtabbar.cpp
@@ -113,6 +113,7 @@ LedTabBar::LedTabBar(QWidget* parent,const char* name) :
else kdWarning() << "LedTabBar::LedTabBar(): Could not create popup!" <<
endl;
+ setTabReorderingEnabled(true);
#if KDE_IS_VERSION(3,3,0)
setTabCloseActivatePrevious(true);
#endif
@@ -392,6 +393,7 @@ void LedTabBar::mouseReleaseEvent(QMouseEvent* e)
if(target.contains(e->pos())) emit closeTab(t->identifier());
}
}
+ if (e->button()==MidButton) KTabBar::mouseReleaseEvent(e);
}
void LedTabBar::updateTabs()
diff --git a/konversation/ledtabwidget.cpp b/konversation/ledtabwidget.cpp
index 471c63b..755d0a9 100644
--- a/konversation/ledtabwidget.cpp
+++ b/konversation/ledtabwidget.cpp
@@ -33,6 +33,7 @@ LedTabWidget::LedTabWidget(QWidget* parent,const char* name)
:
connect(tabBar(),SIGNAL (moveTabLeft(int)), this,SLOT (moveTabLeft(int)) );
connect(tabBar(),SIGNAL (moveTabRight(int)), this,SLOT (moveTabRight(int))
);
connect(tabBar(),SIGNAL (closeTab(int)), this,SLOT (tabClosed(int)) );
+ connect(tabBar(),SIGNAL (moveTab(int,int)), this,
SLOT(moveTabToIndex(int,int)) );
#ifndef QT_NO_WHEELEVENT
connect(tabBar(),SIGNAL (wheel(QWheelEvent*)), this,SLOT
(processWheelEvent(QWheelEvent*)) );
diff --git a/konversation/ledtabwidget.h b/konversation/ledtabwidget.h
index 1c2de3f..e73ee8c 100644
--- a/konversation/ledtabwidget.h
+++ b/konversation/ledtabwidget.h
@@ -45,6 +45,7 @@ class LedTabWidget : public KTabWidget
protected slots:
void moveTabLeft(int id);
void moveTabRight(int id);
+ void moveTabToIndex(int oldIndex,int newIndex);
void tabSelected(int id);
void tabClosed(int id);
void tabClosed();
@@ -55,7 +56,6 @@ class LedTabWidget : public KTabWidget
#endif
protected:
- void moveTabToIndex(int oldIndex,int newIndex);
LedTabBar* tabBar();
#ifndef QT_NO_WHEELEVENT
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic