| Summary: | Blue Borders around groups should only appear in layout mode | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Netterfield <netterfield> |
| Component: | view objects | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.x | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Netterfield
2004-11-02 21:20:06 UTC
The border also flickers on changes in the contents (such as zooming in a plot). 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) {
|