[Bug 63328] tab reordering feature request
Alexander Dymo
cloudtemple at mksat.net
Sat Jun 5 00:27:09 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=63328
cloudtemple mksat net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From cloudtemple mksat net 2004-06-05 00:26 -------
CVS commit by dymo:
Ok, ok, it's really simple ;) Implemented tab reordering feature.
CCMAIL: 63328-done bugs kde org
M +9 -0 newmainwindow.cpp 1.18
M +1 -0 newmainwindow.h 1.5
--- kdevelop/src/newmainwindow.cpp #1.17:1.18
@ -207,4 +207,6 @ void NewMainWindow::init() {
tabWidget()->setCornerWidget(but, TopRight);
}
+ tabWidget()->setTabReorderingEnabled(true);
+ connect(tabWidget(), SIGNAL(movedTab(int, int)), this, SLOT(tabMoved(int, int)));
}
}
@ -667,3 +669,10 @ void NewMainWindow::documentChangedState
}
+void NewMainWindow::tabMoved( int from, int to )
+{
+ KMdiChildView *view = m_pDocumentViews->at(from);
+ m_pDocumentViews->remove(from);
+ m_pDocumentViews->insert(to, view);
+}
+
#include "newmainwindow.moc"
--- kdevelop/src/newmainwindow.h #1.4:1.5
@ -94,4 +94,5 @ private slots:
void fillWindowMenu();
void openURL( int );
+ void tabMoved(int from, int to);
// void loadMDISettings();
More information about the KDevelop-devel
mailing list