[Konsole-devel] [Bug 125373] Tab color reset back to black upon tab move

Thorsten Roeder thorsten.roeder at weihenstephan.org
Sun Apr 30 16:22:37 UTC 2006


------- 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=125373         




------- Additional Comments From thorsten.roeder weihenstephan org  2006-04-30 18:22 -------
SVN commit 535863 by troeder:

remember the color of the tab while moving the tab.
CCBUG: 125373


 M  +8 -2      konsole.cpp  


--- trunk/KDE/kdebase/apps/konsole/konsole/konsole.cpp #535862:535863
 @ -3072,12 +3072,15  @
   ra->unplug(m_view);
   ra->plug(m_view,(m_view->count()-sessions.count()+1)+position-1);
 
+  QColor oldcolor = tabwidget->tabTextColor(tabwidget->indexOf(se->widget()));
+  
   tabwidget->blockSignals(true);
   tabwidget->removePage(se->widget());
   tabwidget->blockSignals(false);
   createSessionTab(se->widget(), iconSetForSession(se), se->Title(), position-1);
   tabwidget->showPage(se->widget());
-
+  tabwidget->setTabTextColor(tabwidget->indexOf(se->widget()),oldcolor);
+  
   if (!m_menuCreated)
     makeGUI();
   m_moveSessionLeft->setEnabled(position-1>0);
 @ -3100,12 +3103,15  @
   ra->unplug(m_view);
   ra->plug(m_view,(m_view->count()-sessions.count()+1)+position+1);
 
+  QColor oldcolor = tabwidget->tabTextColor(tabwidget->indexOf(se->widget()));
+  
   tabwidget->blockSignals(true);
   tabwidget->removePage(se->widget());
   tabwidget->blockSignals(false);
   createSessionTab(se->widget(), iconSetForSession(se), se->Title(), position+1);
   tabwidget->showPage(se->widget());
-
+  tabwidget->setTabTextColor(tabwidget->indexOf(se->widget()),oldcolor);
+  
   if (!m_menuCreated)
     makeGUI();
   m_moveSessionLeft->setEnabled(true);



More information about the konsole-devel mailing list