| Summary: | Ellipse border width can't be set to 0 | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
| Component: | general | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.x | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Solaris | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nicolas Brisset
2006-07-05 09:57:25 UTC
SVN commit 558375 by staikos:
Add support for ellipses without borders
FEATURE: 130281
M +3 -3 kstviewellipse.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewellipse.cpp #558374:558375
@@ -93,7 +93,7 @@
}
const int bw(_borderWidth * p.lineWidthAdjustmentFactor());
- QPen pen(_borderColor, bw);
+ QPen pen(bw > 0 ? _borderColor : _foregroundColor, bw);
p.setPen(pen);
if (_transparentFill) {
p.setBrush(Qt::NoBrush);
@@ -128,7 +128,7 @@
void KstViewEllipse::setBorderWidth(int width) {
if (_borderWidth != width) {
- _borderWidth = kMax(1, width);
+ _borderWidth = kMax(0, width);
setDirty();
}
}
@@ -160,7 +160,7 @@
} else if (propertyName == "borderWidth") {
map.insert(QString("_kst_widgetType"), QString("QSpinBox"));
map.insert(QString("_kst_label"), i18n("Border width"));
- map.insert(QString("minValue"), 1);
+ map.insert(QString("minValue"), 0);
} else if (propertyName == "fillColor") {
map.insert(QString("_kst_widgetType"), QString("KColorButton"));
map.insert(QString("_kst_label"), i18n("Fill Color"));
|