[Kst] [Bug 92609] Blue Borders around groups should only appear in layout mode

George Staikos staikos at kde.org
Thu Nov 4 15:02:27 CET 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=92609        
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2004-11-04 15:02 -------
CVS commit by staikos: 

fix border painting as approved by Barth
(does not fix flicker)
BUG: 92609


  M +7 -0      kstplotgroup.cpp   1.22
  M +1 -2      ksttoplevelview.cpp   1.82


--- kdeextragear-2/kst/kst/kstplotgroup.cpp  #1.21:1.22
 @ -35,4 +35,5  @ KstPlotGroup::KstPlotGroup() : KstMetaPl
   setTagName(i18n("Plot Group %1").arg(++pgcount));
   _type = "plotgroup";
+  setBorderColor(Qt::blue);
 }
 
 @ -120,4 +121,10  @ void KstPlotGroup::paint(KstPaintType ty
   QBrush brush(_backgroundColor);
 
+  if (KstApp::inst()->getZoomRadio() == KstApp::LAYOUT) {
+    setBorderWidth(3);
+  } else {
+    setBorderWidth(0);
+  }
+
   for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
     clipRegion -= QRegion((*i)->geometry());

--- kdeextragear-2/kst/kst/ksttoplevelview.cpp  #1.81:1.82
 @ -183,4 +183,5  @ void KstTopLevelView::setViewMode(ViewMo
     recursively<bool>(&KstViewObject::setSelected, false);
     clearFocus();
+    paint(P_PAINT);
   } else if (_mode == DisplayMode && v != DisplayMode) {
     recursively<bool>(&KstViewObject::zoom, false);
 @ -892,6 +893,4  @ void KstTopLevelView::groupSelection() {
 
   if (pg) {
-    pg->setBorderWidth(3);
-    pg->setBorderColor(Qt::blue);
     // First build the container
     for (it = _selectionList.begin(); it != _selectionList.end(); ++it) {



More information about the Kst mailing list