Summary: | curve appearance for bar graphs is not drawn | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | George Staikos <staikos> |
Component: | ui | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Fix for 93039
bargraph.patch |
Description
George Staikos
2004-11-10 18:06:31 UTC
Created attachment 8255 [details]
Fix for 93039
The only relevant changes are the ones to curveappearancewidget* On Thursday 11 November 2004 14:54, Andrew Walker wrote:
> ------- Additional Comments From arwalker sumusltd com 2004-11-11 20:54
> ------- Created an attachment (id=8255)
> --> (http://bugs.kde.org/attachment.cgi?id=8255&action=view)
> Fix for 93039
Approved for HEAD as this patch. You can't change the string in HEAD.
Please apply and close.
Created an attachment (id=8257)
bargraph.patch
CVS commit by arwalker: Draw bars if they are selected. CCMAIL: 93039-done@bugs.kde.org M +14 -0 curveappearancewidget.ui 1.20 M +16 -2 curveappearancewidget.ui.h 1.17 --- kdeextragear-2/kst/kst/curveappearancewidget.ui #1.19:1.20 @@ -487,4 +487,16 @@ <slot>setEnabled(bool)</slot> </connection> + <connection> + <sender>_showBars</sender> + <signal>toggled(bool)</signal> + <receiver>CurveAppearanceWidget</receiver> + <slot>drawLine()</slot> + </connection> + <connection> + <sender>_barStyle</sender> + <signal>activated(int)</signal> + <receiver>CurveAppearanceWidget</receiver> + <slot>drawLine()</slot> + </connection> </connections> <tabstops> @@ -495,4 +507,6 @@ <tabstop>_comboLineStyle</tabstop> <tabstop>_spinBoxLineWidth</tabstop> + <tabstop>_showBars</tabstop> + <tabstop>_barStyle</tabstop> </tabstops> <includes> --- kdeextragear-2/kst/kst/curveappearancewidget.ui.h #1.16:1.17 @@ -95,6 +94,21 @@ void CurveAppearanceWidget::drawLine() p.fillRect(p.window(), QColor("white")); + + if (showBars()) { + QRect rectBar((pix.width()-pix.height())/2, + pix.height()/2, + pix.height(), + (pix.height()/2)+1); + + if (barStyle() == 1) { + p.fillRect(rectBar,QBrush(QColor(color()))); + p.setPen(QPen(QColor("black"),lineWidth(),KstLineStyle[lineStyle()])); + } else { p.setPen(pen); + } + p.drawRect(rectBar); + } + p.setPen(pen); if (_showLines->isChecked()) { p.drawLine(1,pix.height()/2,pix.width()-1, pix.height()/2); Change version to 1.x |