[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Nov 4 15:02:20 CET 2004
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