From kde-commits Sat Jan 31 22:24:35 2009 From: Johannes Simon Date: Sat, 31 Jan 2009 22:24:35 +0000 To: kde-commits Subject: koffice/kchart/shape Message-Id: <1233440675.904071.3861.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123344071410681 SVN commit 919413 by jsimon: Fix sixth of The Eight Release Critical Bugs: "gray out or hide axis editing options when editing polar chart". I decided to gray out the options. Hiding them would make the plot area tab almost completely empty. The disabled axis configuration options could of course be replaced by something more meaningful in the future. M +4 -1 ChartConfigWidget.cpp M +78 -68 ChartConfigWidget.ui --- trunk/koffice/kchart/shape/ChartConfigWidget.cpp #919412:919413 @@ -505,14 +505,17 @@ subtype = NoChartSubtype; } - // Make sure polar and cartesian plots can't conflict and + // o Make sure polar and cartesian plots can't conflict and // don't allow the user to mix these two types + // o Hide axis configuration options for polar plots if ( isPolar( type ) ) { setPolarChartTypesEnabled( true ); setCartesianChartTypesEnabled( false ); + d->ui.axisConfiguration->setEnabled( false ); } else { setPolarChartTypesEnabled( false ); setCartesianChartTypesEnabled( true ); + d->ui.axisConfiguration->setEnabled( true ); } emit chartTypeChanged( type ); --- trunk/koffice/kchart/shape/ChartConfigWidget.ui #919412:919413 @@ -79,20 +79,7 @@ Plot Area - - - - Qt::Vertical - - - - 61 - 71 - - - - - + @@ -135,75 +122,98 @@ - - - - Qt::Horizontal - - - - - + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt; font-weight:600;">Axes</span></p></body></html> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-weight:600;">Labels</span></p></body></html> - - - - - - - Scaling... - - - - - - - - - - - - - - - - - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> + + + + + + + Qt::Horizontal + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-weight:600;">Labels</span></p></body></html> - +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt; font-weight:600;">Axes</span></p></body></html> + + + + + + + + + + + + + + + + + + + + + + + + + + Label + + + + + + + + + + + + Show Grid Lines + + + + + + + Scaling... + + + + - - - - - - - Label + + + + Qt::Vertical - - - - - - Show Grid Lines + + + 61 + 71 + - +