[Bug 70791] Change the icon on the tab when the file has been edited

Sebastien sebastien.laout at tuxfamily.org
Sun Jan 18 15:22:03 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=70791      




------- Additional Comments From sebastien.laout at tuxfamily.org  2004-01-18 15:21 -------
Hello,

I have KDE 3.1 and Kdevelop 2004-01-05 and this isn't resolved.
So, for those that are in the same case (is this will be backported for KDE 3.1), I've done a small hack.
It's working for me in IDEAui mode (not tryed for others) :

369c369
<                 PartController::getInstance()->restorePartWidgetIcon(ro_part);
---
>                 ro_part->widget()->setIcon(0); //MOI: PartController::getInstance()->restorePartWidgetIcon(ro_part);
451,452c451,452
<     view->setIcon(SmallIcon("kdevelop"));
<     child->setIcon(SmallIcon("kdevelop")); // was empty or too big, take something useful
---
>     //MOI: view->setIcon(SmallIcon("kdevelop"));
>     //MOI: child->setIcon(SmallIcon("kdevelop")); // was empty or too big, take something useful
503c503
<         view->setIcon(SmallIcon("kdevelop")); // was empty or too big, take something useful
---
>         //MOI: view->setIcon(SmallIcon("kdevelop")); // was empty or too big, take something useful
535c535
<         view->setIcon(SmallIcon("kdevelop")); // was empty or too big, take something useful
---
>         //MOI: view->setIcon(SmallIcon("kdevelop")); // was empty or too big, take something useful


Sorry : I've used diff but it's a strange output :-/
No time to learn more.
In brief : comment all
  view->setIcon(SmallIcon("kdevelop"));
lines to not have the kdevelop icon and replace the first with
  ro_part->widget()->setIcon(0);
To reset icon when saved.




More information about the KDevelop-devel mailing list