From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: TQt4 port kmymoney This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdchart/KDChartParams.cpp | 789 +++++++++++++++++++++---------------------- 1 file changed, 393 insertions(+), 396 deletions(-) (limited to 'libkdchart/KDChartParams.cpp') diff --git a/libkdchart/KDChartParams.cpp b/libkdchart/KDChartParams.cpp index 8673522..4c7bd87 100644 --- a/libkdchart/KDChartParams.cpp +++ b/libkdchart/KDChartParams.cpp @@ -39,7 +39,7 @@ class KDChartData; -//#include +//#include /** \class KDChartParams KDChartParams.h @@ -52,7 +52,7 @@ class KDChartData; -//QColor KDChartParams::_internalPointer_DataValueAutoColor = QColor( 0,1,0 ); +//TQColor KDChartParams::_internalPointer_DataValueAutoColor = TQColor( 0,1,0 ); KDChartAutoColor* KDChartAutoColor::mInstance = NULL; @@ -84,8 +84,8 @@ void KDChartAutoColor::freeInstance() /* -static QColor defaultColor; -QT_STATIC_CONST_IMPL QColor & KDChartParams_AutoColor = defaultColor; +static TQColor defaultColor; +QT_STATIC_CONST_IMPL TQColor & KDChartParams_AutoColor = defaultColor; */ /** @@ -114,7 +114,7 @@ KDChartParams::KDChartParams() setAllowOverlappingDataValueTexts( false ); -#if COMPAT_QT_VERSION >= 0x030100 +#if COMPAT_TQT_VERSION >= 0x030100 setOptimizeOutputForScreen( false ); #else setOptimizeOutputForScreen( true ); @@ -132,7 +132,7 @@ KDChartParams::KDChartParams() // Default is to show all values. setNumValues( static_cast( -1 ) ); - _defaultFont = QFont( "helvetica", 8, QFont::Normal, false ); + _defaultFont = TQFont( "helvetica", 8, TQFont::Normal, false ); // The default frame settings: no border, no corners, no background _noFrame.clearAll(); @@ -162,8 +162,8 @@ KDChartParams::KDChartParams() // END GENERAL - setDataArea( QRect( QPoint(0,0), QSize(0,0)) ); - setLegendArea(QRect( QPoint(0,0), QSize(0,0)) ); + setDataArea( TQRect( TQPoint(0,0), TQSize(0,0)) ); + setLegendArea(TQRect( TQPoint(0,0), TQSize(0,0)) ); // BAR CHART-SPECIFIC @@ -228,7 +228,7 @@ KDChartParams::KDChartParams() setLineMarkerStyle( 0, LineMarkerCircle ); setLineMarkerStyle( 1, LineMarkerSquare ); setLineMarkerStyle( 2, LineMarkerDiamond ); - setLineMarkerSize( QSize( 6, 6 ) ); + setLineMarkerSize( TQSize( 6, 6 ) ); // 3D line settings setThreeDLines( false ); @@ -267,7 +267,7 @@ KDChartParams::KDChartParams() setPolarMarkerStyle( 0, PolarMarkerCircle ); setPolarMarkerStyle( 1, PolarMarkerSquare ); setPolarMarkerStyle( 2, PolarMarkerDiamond ); - setPolarMarkerSize( QSize( -40,-40 ) ); + setPolarMarkerSize( TQSize( -40,-40 ) ); // default circular axes delimiters setPolarRotateCircularLabels( false ); @@ -332,14 +332,14 @@ KDChartParams::KDChartParams() setBWChartFences(1.5, 1.5, 3.0, 3.0); setBWChartOutValMarkerSize( -25 ); setBWChartPrintStatistics( BWStatValALL, false ); - setBWChartBrush( Qt::white ); + setBWChartBrush( TQt::white ); // LEGEND // Distance between legend and data. setLegendSpacing( 20 ); // Position of the legend setLegendPosition( LegendRight ); - // Orientation of the legend + // Qt::Orientation of the legend setLegendOrientation( Qt::Vertical ); // Whether the legend shall show lines or just // show the markers (or squares, resp.) @@ -347,9 +347,9 @@ KDChartParams::KDChartParams() // Where the legend labels come from setLegendSource( LegendAutomatic ); // legend texts are drawn in black by default - setLegendTextColor( Qt::black ); + setLegendTextColor( TQt::black ); // legend font size is calculated dynamically, but ignore the font size - setLegendFont( QFont( "helvetica", 10, QFont::Normal, false ), false ); + setLegendFont( TQFont( "helvetica", 10, TQFont::Normal, false ), false ); // legend font size is calculated dynamically: // 40 / 1000 of the minimal value of // the printable area height and width @@ -357,10 +357,10 @@ KDChartParams::KDChartParams() // the default legend title is "Legend" setLegendTitleText( tr( "Legend" ) ); // legend title is drawn in black by default - setLegendTitleTextColor( Qt::black ); + setLegendTitleTextColor( TQt::black ); // legend title font size is calculated dynamically, but ignore // the font size - setLegendTitleFont( QFont( "helvetica", 12, QFont::Normal, false ), false ); + setLegendTitleFont( TQFont( "helvetica", 12, TQFont::Normal, false ), false ); // legend title font size is calculated dynamically: // 50 / 1000 of the minimal value of // the printable area height and width @@ -381,7 +381,7 @@ KDChartParams::KDChartParams() // Set a default font for all sections not taking the build-in // defaults from c'tor KDChartParams::HdFtParams::HdFtParams() - QFont defaultHdFtFont( "helvetica", 14, QFont::Normal, false ); + TQFont defaultHdFtFont( "helvetica", 14, TQFont::Normal, false ); int relHd0Size = 15; int relHdSize = 22; int relHd2Size = 19; @@ -438,11 +438,11 @@ KDChartParams::KDChartParams() setProperties(KDCHART_PROPSET_TRANSPARENT_DATA, *tempPropSetA); // don't show line nor marker, but do show the horizontal line tempPropSetA->setName("horizontal line"); - tempPropSetA->setExtraLinesAlign( KDChartPropertySet::OwnID, Qt::AlignLeft | Qt::AlignRight ); + tempPropSetA->setExtraLinesAlign( KDChartPropertySet::OwnID, TQt::AlignLeft | TQt::AlignRight ); setProperties(KDCHART_PROPSET_HORI_LINE, *tempPropSetA); // don't show line nor marker, but do show the vertical line tempPropSetA->setName("vertical line"); - tempPropSetA->setExtraLinesAlign( KDChartPropertySet::OwnID, Qt::AlignTop | Qt::AlignBottom ); + tempPropSetA->setExtraLinesAlign( KDChartPropertySet::OwnID, TQt::AlignTop | TQt::AlignBottom ); setProperties(KDCHART_PROPSET_VERT_LINE, *tempPropSetA); // END PROPERTY SETS } @@ -518,7 +518,7 @@ void KDChartParams::setProperties( int id, KDChartPropertySet& rSet ) { _propertySetList.setAutoDelete( true ); rSet.mOwnID = id; - _propertySetList.replace( rSet.mOwnID, rSet.clone() ); + _propertySetList.tqreplace( rSet.mOwnID, rSet.clone() ); } /** @@ -568,7 +568,7 @@ bool KDChartParams::removeProperties( int id ) */ bool KDChartParams::properties( int id, KDChartPropertySet& rSet ) const { - const KDChartPropertySet* R = _propertySetList.find( id ); + const KDChartPropertySet* R = _propertySetList.tqfind( id ); const bool bFound = (0 != R); if( bFound ) rSet.deepCopy( R ); @@ -600,7 +600,7 @@ bool KDChartParams::properties( int id, KDChartPropertySet& rSet ) const */ KDChartPropertySet* KDChartParams::properties( int id ) { - return _propertySetList.find( id ); + return _propertySetList.tqfind( id ); } @@ -635,26 +635,26 @@ bool KDChartParams::calculateProperties( int startId, KDChartPropertySet& rSet ) bool bOk = properties(startId, startSet); if( bOk ){ int lineWidth; - QColor lineColor; + TQColor lineColor; Qt::PenStyle lineStyle; bool showMarker; uint markerAlign; - QSize markerSize; - QColor markerColor; + TQSize markerSize; + TQColor markerColor; int markerStyle; uint extraLinesAlign; bool extraLinesInFront; int extraLinesLength; int extraLinesWidth; - QColor extraLinesColor; + TQColor extraLinesColor; Qt::PenStyle extraLinesStyle; uint extraMarkersAlign; - QSize extraMarkersSize; - QColor extraMarkersColor; + TQSize extraMarkersSize; + TQColor extraMarkersColor; int extraMarkersStyle; bool showBar; - QColor barColor; - QBrush areaBrush; + TQColor barColor; + TQBrush areaBrush; // c'tor sets all IDs to unknown by default KDChartPropertySet& propSet = *tempPropSetB; propSet.quickReset(""); @@ -707,7 +707,7 @@ bool KDChartParams::calculateProperties( int startId, KDChartPropertySet& rSet ) break; ++i; }while( properties(id, propSet) ); - // retrieve marker alignment + // retrieve marker tqalignment propSet.deepCopy( &startSet ); i=0; do{ if( propSet.hasOwnMarkerAlign( id, markerAlign ) ){ @@ -750,7 +750,7 @@ bool KDChartParams::calculateProperties( int startId, KDChartPropertySet& rSet ) // extra lines: - // retrieve alignment of extra lines + // retrieve tqalignment of extra lines propSet.deepCopy( &startSet ); i=0; do{ if( propSet.hasOwnExtraLinesAlign( id, extraLinesAlign ) ){ @@ -813,7 +813,7 @@ bool KDChartParams::calculateProperties( int startId, KDChartPropertySet& rSet ) // markers at the ends of the extra lines: - // retrieve marker alignment + // retrieve marker tqalignment propSet.deepCopy( &startSet ); i=0; do{ if( propSet.hasOwnExtraMarkersAlign( id, extraMarkersAlign ) ){ @@ -930,7 +930,7 @@ bool KDChartParams::calculateProperties( int startId, KDChartPropertySet& rSet ) Calling setPrintDataValuesWithDefaultFontParams( chart ) will reset the respective font size and colour and position - parameters (but not the QFont itself) and activate printing + parameters (but not the TQFont itself) and activate printing of the values for the \c chart speficied (or for all charts by using \c KDCHART_ALL_CHARTS, resp.). @@ -964,7 +964,7 @@ bool KDChartParams::calculateProperties( int startId, KDChartPropertySet& rSet ) \param color the color to be used when printing the values. To have the color calculated automatically - useful when printing inside the bars (or pie slices, areas, ... resp.) - please use - \c KDCHART_DATA_VALUE_AUTO_COLOR instead of a QColor*. + \c KDCHART_DATA_VALUE_AUTO_COLOR instead of a TQColor*. You may use setPrintDataValuesColor to change this parameter setting without affecting the other ones. @@ -973,10 +973,10 @@ bool KDChartParams::calculateProperties( int startId, KDChartPropertySet& rSet ) \param negativePosition The anchor position which the text is to be aligned to. \param negativeAlign The way how the text is to be aligned to the anchor. -This must be a reasonable combination of Qt::AlignmentFlags. +This must be a reasonable combination of TQt::AlignmentFlags. \param negativeDeltaX The X distance between the anchor point -- specified by \c negativePosition (or \c - positivePosition, resp.) -- and the internal alignment point + positivePosition, resp.) -- and the internal tqalignment point of the text -- specified by \c negativeAlign (or \c positiveAlign, resp.). Note: For better compatibility to the dynamic font size this parameter is interpreted as being a per-cent value of the @@ -987,7 +987,7 @@ size of the chart and the specification made via parameter \c size. \param negativeDeltaY The Y distance between the anchor point -- specified by \c negativePosition (or \c - positivePosition, resp.) -- and the internal alignment point + positivePosition, resp.) -- and the internal tqalignment point of the text -- specified by \c negativeAlign (or \c positiveAlign, resp.). Note: For better compatibility to the dynamic font size this parameter is interpreted as being a per-cent value of the @@ -1002,7 +1002,7 @@ special values that you might find usefull for Pie charts or for Ring charts: \c KDCHART_SAGGITAL_ROTATION and \c KDCHART_TANGENTIAL_ROTATION both leading to individual calculation of appropriate rotation for each data value. Rotation -will be performed around the internal alignment point of the +will be performed around the internal tqalignment point of the text -- specified by \c negativeAlign (or \c positiveAlign, resp.). The following parameters apply to values greater than zero or equal zero: @@ -1010,10 +1010,10 @@ The following parameters apply to values greater than zero or equal zero: \param positivePosition The anchor position which the text is to be aligned to. \param positiveAlign The way how the text is to be aligned to the anchor. -This must be a reasonable combination of Qt::AlignmentFlags. +This must be a reasonable combination of TQt::AlignmentFlags. \param negativeDeltaX The X distance between the anchor point -- specified by \c negativePosition (or \c - positivePosition, resp.) -- and the internal alignment point + positivePosition, resp.) -- and the internal tqalignment point of the text -- specified by \c negativeAlign (or \c positiveAlign, resp.). Note: For better compatibility to the dynamic font size this parameter is interpreted as being a per-cent value of the @@ -1023,7 +1023,7 @@ delta value are calculated dynamically before painting based on the size of the chart and the specification made via parameter \c size. \param positiveDeltaY The Y distance between the anchor point -- specified by \c negativePosition (or \c - positivePosition, resp.) -- and the internal alignment point + positivePosition, resp.) -- and the internal tqalignment point of the text -- specified by \c negativeAlign (or \c positiveAlign, resp.). Note: For better compatibility to the dynamic font size this parameter is interpreted as being a per-cent value of the @@ -1038,10 +1038,10 @@ special values that you might find usefull for Pie charts or for Ring charts: \c KDCHART_SAGGITAL_ROTATION and \c KDCHART_TANGENTIAL_ROTATION both leading to individual calculation of appropriate rotation for each data value. Rotation -will be performed around the internal alignment point of the +will be performed around the internal tqalignment point of the text -- specified by \c negativeAlign (or \c positiveAlign, resp.). -\param layoutPolicy The way to handle too narrow space conflicts: +\param tqlayoutPolicy The way to handle too narrow space conflicts: what to do if a data text covers a neighboring data text (or a neighboring data area, resp.). @@ -1064,9 +1064,9 @@ void KDChartParams::setPrintDataValues( bool active, uint chart, int divPow10, int digitsBehindComma, - QFont* font, + TQFont* font, uint size, - const QColor* color, + const TQColor* color, KDChartEnums::PositionFlag negativePosition, uint negativeAlign, int negativeDeltaX, @@ -1103,21 +1103,21 @@ void KDChartParams::setPrintDataValues( bool active, if ( font ) settings->_dataValuesFont = *font; else - settings->_dataValuesFont = QFont( "times", 1, QFont::Bold ); + settings->_dataValuesFont = TQFont( "times", 1, TQFont::Bold ); settings->_dataValuesUseFontRelSize = true; settings->_dataValuesFontRelSize = 16; settings->_dataValuesAutoColor = false; // !!! - settings->_dataValuesColor = QColor( Qt::darkBlue ); - settings->_dataValuesBrush = QBrush( Qt::NoBrush ); + settings->_dataValuesColor = TQColor( TQt::darkBlue ); + settings->_dataValuesBrush = TQBrush( TQt::NoBrush ); // for values below zero: settings->_dataValuesAnchorNegativePosition = KDChartEnums::PosBottomRight; - settings->_dataValuesAnchorNegativeAlign = Qt::AlignBottom + Qt::AlignRight; + settings->_dataValuesAnchorNegativeAlign = TQt::AlignBottom + TQt::AlignRight; settings->_dataValuesAnchorNegativeDeltaX = 20; settings->_dataValuesAnchorNegativeDeltaY = 55; settings->_dataValuesNegativeRotation = 300; // for values greater/equal zero: settings->_dataValuesAnchorPositivePosition = KDChartEnums::PosTopLeft; - settings->_dataValuesAnchorPositiveAlign = Qt::AlignTop + Qt::AlignLeft; + settings->_dataValuesAnchorPositiveAlign = TQt::AlignTop + TQt::AlignLeft; settings->_dataValuesAnchorPositiveDeltaX = - 20; settings->_dataValuesAnchorPositiveDeltaY = - 65; settings->_dataValuesPositiveRotation = 300; @@ -1129,21 +1129,21 @@ void KDChartParams::setPrintDataValues( bool active, if ( font ) settings->_dataValuesFont = *font; else - settings->_dataValuesFont = QFont( "times", 1, QFont::Normal ); + settings->_dataValuesFont = TQFont( "times", 1, TQFont::Normal ); settings->_dataValuesUseFontRelSize = true; settings->_dataValuesFontRelSize = 16; settings->_dataValuesAutoColor = false; // !!! - settings->_dataValuesColor = QColor( Qt::darkBlue ); - settings->_dataValuesBrush = QBrush( Qt::NoBrush ); + settings->_dataValuesColor = TQColor( TQt::darkBlue ); + settings->_dataValuesBrush = TQBrush( TQt::NoBrush ); // for values below zero: settings->_dataValuesAnchorNegativePosition = KDChartEnums::PosBottomCenter; - settings->_dataValuesAnchorNegativeAlign = Qt::AlignTop + Qt::AlignHCenter; + settings->_dataValuesAnchorNegativeAlign = TQt::AlignTop + TQt::AlignHCenter; settings->_dataValuesAnchorNegativeDeltaX = 0; settings->_dataValuesAnchorNegativeDeltaY = 0; settings->_dataValuesNegativeRotation = 0; // for values greater/equal zero: settings->_dataValuesAnchorPositivePosition = KDChartEnums::PosTopCenter; - settings->_dataValuesAnchorPositiveAlign = Qt::AlignBottom + Qt::AlignHCenter; + settings->_dataValuesAnchorPositiveAlign = TQt::AlignBottom + TQt::AlignHCenter; settings->_dataValuesAnchorPositiveDeltaX = 0; settings->_dataValuesAnchorPositiveDeltaY = 0; settings->_dataValuesPositiveRotation = 0; @@ -1155,25 +1155,25 @@ void KDChartParams::setPrintDataValues( bool active, if ( font ) settings->_dataValuesFont = *font; else - settings->_dataValuesFont = QFont( "times", 1, QFont::Bold ); + settings->_dataValuesFont = TQFont( "times", 1, TQFont::Bold ); settings->_dataValuesUseFontRelSize = true; settings->_dataValuesFontRelSize = 21; settings->_dataValuesAutoColor = true; // !!! - settings->_dataValuesColor = QColor( Qt::black ); - settings->_dataValuesBrush = QBrush( Qt::white ); + settings->_dataValuesColor = TQColor( TQt::black ); + settings->_dataValuesBrush = TQBrush( TQt::white ); bool bShowOutside = areaChartSubType() == AreaNormal; // for values below zero: settings->_dataValuesAnchorNegativePosition = KDChartEnums::PosBottomCenter; - settings->_dataValuesAnchorNegativeAlign = Qt::AlignHCenter - + (bShowOutside ? Qt::AlignTop : Qt::AlignBottom); + settings->_dataValuesAnchorNegativeAlign = TQt::AlignHCenter + + (bShowOutside ? TQt::AlignTop : TQt::AlignBottom); settings->_dataValuesAnchorNegativeDeltaX = 0; settings->_dataValuesAnchorNegativeDeltaY = bShowOutside ? 20 : -35; settings->_dataValuesNegativeRotation = 0; // for values greater/equal zero: settings->_dataValuesAnchorPositivePosition = KDChartEnums::PosTopCenter; - settings->_dataValuesAnchorPositiveAlign = Qt::AlignHCenter - + (bShowOutside ? Qt::AlignBottom : Qt::AlignTop); + settings->_dataValuesAnchorPositiveAlign = TQt::AlignHCenter + + (bShowOutside ? TQt::AlignBottom : TQt::AlignTop); settings->_dataValuesAnchorPositiveDeltaX = 0; settings->_dataValuesAnchorPositiveDeltaY = bShowOutside ? -20 : 35; settings->_dataValuesPositiveRotation = 0; @@ -1191,21 +1191,21 @@ void KDChartParams::setPrintDataValues( bool active, if ( font ) settings->_dataValuesFont = *font; else - settings->_dataValuesFont = QFont( "times", 1, QFont::Bold ); + settings->_dataValuesFont = TQFont( "times", 1, TQFont::Bold ); settings->_dataValuesUseFontRelSize = true; settings->_dataValuesFontRelSize = 25; settings->_dataValuesAutoColor = true; // !!! - settings->_dataValuesColor = QColor( Qt::black ); - settings->_dataValuesBrush = QBrush( Qt::NoBrush ); + settings->_dataValuesColor = TQColor( TQt::black ); + settings->_dataValuesBrush = TQBrush( TQt::NoBrush ); // for values below zero: settings->_dataValuesAnchorNegativePosition = KDChartEnums::PosTopCenter; - settings->_dataValuesAnchorNegativeAlign = Qt::AlignTop + Qt::AlignHCenter; + settings->_dataValuesAnchorNegativeAlign = TQt::AlignTop + TQt::AlignHCenter; settings->_dataValuesAnchorNegativeDeltaX = 0; settings->_dataValuesAnchorNegativeDeltaY = 50; settings->_dataValuesNegativeRotation = KDCHART_TANGENTIAL_ROTATION; // for values greater/equal zero: settings->_dataValuesAnchorPositivePosition = KDChartEnums::PosTopCenter; - settings->_dataValuesAnchorPositiveAlign = Qt::AlignTop + Qt::AlignHCenter; + settings->_dataValuesAnchorPositiveAlign = TQt::AlignTop + TQt::AlignHCenter; settings->_dataValuesAnchorPositiveDeltaX = 0; settings->_dataValuesAnchorPositiveDeltaY = 50; settings->_dataValuesPositiveRotation = KDCHART_TANGENTIAL_ROTATION; @@ -1217,21 +1217,21 @@ void KDChartParams::setPrintDataValues( bool active, if ( font ) settings->_dataValuesFont = *font; else - settings->_dataValuesFont = QFont( "times", 1, QFont::Bold ); + settings->_dataValuesFont = TQFont( "times", 1, TQFont::Bold ); settings->_dataValuesUseFontRelSize = true; settings->_dataValuesFontRelSize = 25; settings->_dataValuesAutoColor = true; // !!! - settings->_dataValuesColor = QColor( Qt::black ); - settings->_dataValuesBrush = QBrush( Qt::NoBrush ); + settings->_dataValuesColor = TQColor( TQt::black ); + settings->_dataValuesBrush = TQBrush( TQt::NoBrush ); // for values below zero: settings->_dataValuesAnchorNegativePosition = KDChartEnums::PosCenter; - settings->_dataValuesAnchorNegativeAlign = Qt::AlignCenter; + settings->_dataValuesAnchorNegativeAlign = TQt::AlignCenter; settings->_dataValuesAnchorNegativeDeltaX = 0; settings->_dataValuesAnchorNegativeDeltaY = 10; settings->_dataValuesNegativeRotation = KDCHART_TANGENTIAL_ROTATION; // for values greater/equal zero: settings->_dataValuesAnchorPositivePosition = KDChartEnums::PosCenter; - settings->_dataValuesAnchorPositiveAlign = Qt::AlignCenter; + settings->_dataValuesAnchorPositiveAlign = TQt::AlignCenter; settings->_dataValuesAnchorPositiveDeltaX = 0; settings->_dataValuesAnchorPositiveDeltaY = 10; settings->_dataValuesPositiveRotation = KDCHART_TANGENTIAL_ROTATION; @@ -1245,22 +1245,22 @@ void KDChartParams::setPrintDataValues( bool active, if ( font ) settings->_dataValuesFont = *font; else - settings->_dataValuesFont = QFont( "times", 1, QFont::Bold ); + settings->_dataValuesFont = TQFont( "times", 1, TQFont::Bold ); settings->_dataValuesUseFontRelSize = true; settings->_dataValuesFontRelSize = 26; settings->_dataValuesAutoColor = polarMarker(); // !!! - settings->_dataValuesColor = QColor( Qt::black ); - settings->_dataValuesBrush = QBrush( Qt::NoBrush ); + settings->_dataValuesColor = TQColor( TQt::black ); + settings->_dataValuesBrush = TQBrush( TQt::NoBrush ); // for values below zero: settings->_dataValuesAnchorNegativePosition = KDChartEnums::PosCenter; - settings->_dataValuesAnchorNegativeAlign = Qt::AlignCenter; + settings->_dataValuesAnchorNegativeAlign = TQt::AlignCenter; settings->_dataValuesAnchorNegativeDeltaX = 0; settings->_dataValuesAnchorNegativeDeltaY = 0; settings->_dataValuesNegativeRotation = 0; // for values greater/equal zero: settings->_dataValuesAnchorNegativePosition = KDChartEnums::PosCenter; - settings->_dataValuesAnchorNegativeAlign = Qt::AlignCenter; + settings->_dataValuesAnchorNegativeAlign = TQt::AlignCenter; settings->_dataValuesAnchorNegativeDeltaX = 0; settings->_dataValuesAnchorNegativeDeltaY = 0; settings->_dataValuesNegativeRotation = 0; @@ -1284,7 +1284,7 @@ void KDChartParams::setPrintDataValues( bool active, if ( font ) settings->_dataValuesFont = *font; else - settings->_dataValuesFont = QFont( "times", 1, QFont::Bold ); + settings->_dataValuesFont = TQFont( "times", 1, TQFont::Bold ); uint theSize( UINT_MAX == size ? 14 : size ); settings->_dataValuesUseFontRelSize = ( 0 < theSize ); @@ -1292,17 +1292,17 @@ void KDChartParams::setPrintDataValues( bool active, if ( KDCHART_DATA_VALUE_AUTO_COLOR == color && ( Polar != cType || polarMarker() ) ) { settings->_dataValuesAutoColor = true; // !!! - settings->_dataValuesColor = QColor( Qt::black ); + settings->_dataValuesColor = TQColor( TQt::black ); } else { settings->_dataValuesAutoColor = false; if ( 0 == color ) settings->_dataValuesColor - = QColor( i ? Qt::darkBlue : Qt::black ); + = TQColor( i ? TQt::darkBlue : TQt::black ); else settings->_dataValuesColor = *color; } - settings->_dataValuesBrush = Qt::NoBrush; + settings->_dataValuesBrush = TQBrush(Qt::NoBrush); // for values below zero: settings->_dataValuesAnchorNegativePosition = negativePosition; settings->_dataValuesAnchorNegativeAlign = negativeAlign; @@ -1449,7 +1449,7 @@ void KDChartParams::setChartSourceMode( SourceMode mode, uint last = ( KDCHART_NO_DATASET == dataset2 ) ? dataset : dataset2; for ( i = dataset; i <= last; ++i ) _dataSourceModeAndChart[ i ] = ModeAndChart( mode, chart ); - _maxDatasetSourceMode = QMAX( _maxDatasetSourceMode, --i ); + _maxDatasetSourceMode = TQMAX( _maxDatasetSourceMode, --i ); _setChartSourceModeWasUsed = true; } else if ( UnknownMode == mode && dataset == KDCHART_ALL_DATASETS ) { _dataSourceModeAndChart.clear(); @@ -1514,7 +1514,7 @@ KDChartParams::SourceMode KDChartParams::chartSourceMode( uint dataset, bool bStart = true; ModeAndChartMap::ConstIterator it; - for( it = _dataSourceModeAndChart.find( a ); + for( it = _dataSourceModeAndChart.tqfind( a ); ( it != _dataSourceModeAndChart.end() ) && ( it.key() <= b ); ++it ){ if ( bStart ) { @@ -1656,9 +1656,9 @@ bool KDChartParams::findDatasets( SourceMode modeA, res = true; }else{ if( foundA && foundB ){ - if( QMIN(dsA2, dsB2) + 1 == QMAX(dsA1, dsB1) ){ - dataset = QMIN(dsA1, dsB1); - dataset2 = QMAX(dsA2, dsB2); + if( TQMIN(dsA2, dsB2) + 1 == TQMAX(dsA1, dsB1) ){ + dataset = TQMIN(dsA1, dsB1); + dataset2 = TQMAX(dsA2, dsB2); res = true; }else{ qDebug("ERROR in KDChartParams::findDatasets(): Datasets found are *not* a contiguous series."); @@ -1679,7 +1679,7 @@ bool KDChartParams::findDatasets( SourceMode modeA, dataset but not for a dataset with a lower number (and there is neither a default value), the color for that dataset with the lower number will be undefined. If you do not want any color, pass an invalid color - (i.e. a default-constructed QColor object). This is only useful + (i.e. a default-constructed TQColor object). This is only useful for chart types that have an outline (like bars or pies), because you would not see anything otherwise.
In charts that can only display one dataset (like pies), the specified @@ -1691,15 +1691,15 @@ bool KDChartParams::findDatasets( SourceMode modeA, \sa setDataDefaultColors, setDataRainbowColors, setDataSubduedColors \sa dataColor, maxDataColor */ -void KDChartParams::setDataColor( uint dataset, QColor color ) +void KDChartParams::setDataColor( uint dataset, TQColor color ) { - QColor shadow1; - QColor shadow2; + TQColor shadow1; + TQColor shadow2; calculateShadowColors( color, shadow1, shadow2 ); _dataColors[ dataset ] = color; _dataColorsShadow1[ dataset ] = shadow1; _dataColorsShadow2[ dataset ] = shadow2; - _maxDatasetColor = QMAX( _maxDatasetColor, dataset ); + _maxDatasetColor = TQMAX( _maxDatasetColor, dataset ); emit changed(); } @@ -1741,14 +1741,14 @@ void KDChartParams::setDataDefaultColors() */ void KDChartParams::setDataRainbowColors() { - setDataColor( 0, QColor(255, 0,196) ); - setDataColor( 1, QColor(255, 0, 96) ); - setDataColor( 2, QColor(255, 128,64) ); - setDataColor( 3, Qt::yellow ); - setDataColor( 4, Qt::green ); - setDataColor( 5, Qt::cyan ); - setDataColor( 6, QColor( 96, 96,255) ); - setDataColor( 7, QColor(160, 0,255) ); + setDataColor( 0, TQColor(255, 0,196) ); + setDataColor( 1, TQColor(255, 0, 96) ); + setDataColor( 2, TQColor(255, 128,64) ); + setDataColor( 3, TQt::yellow ); + setDataColor( 4, TQt::green ); + setDataColor( 5, TQt::cyan ); + setDataColor( 6, TQColor( 96, 96,255) ); + setDataColor( 7, TQColor(160, 0,255) ); for( int i=8; i<16; ++i ) setDataColor( i, dataColor(i-8).light() ); } @@ -1772,25 +1772,25 @@ void KDChartParams::setDataRainbowColors() void KDChartParams::setDataSubduedColors( bool ordered ) { static const int NUM_SUBDUEDCOLORS = 18; -static const QColor SUBDUEDCOLORS[ NUM_SUBDUEDCOLORS ] = { - QColor( 0xe0,0x7f,0x70 ), - QColor( 0xe2,0xa5,0x6f ), - QColor( 0xe0,0xc9,0x70 ), - QColor( 0xd1,0xe0,0x70 ), - QColor( 0xac,0xe0,0x70 ), - QColor( 0x86,0xe0,0x70 ), - QColor( 0x70,0xe0,0x7f ), - QColor( 0x70,0xe0,0xa4 ), - QColor( 0x70,0xe0,0xc9 ), - QColor( 0x70,0xd1,0xe0 ), - QColor( 0x70,0xac,0xe0 ), - QColor( 0x70,0x86,0xe0 ), - QColor( 0x7f,0x70,0xe0 ), - QColor( 0xa4,0x70,0xe0 ), - QColor( 0xc9,0x70,0xe0 ), - QColor( 0xe0,0x70,0xd1 ), - QColor( 0xe0,0x70,0xac ), - QColor( 0xe0,0x70,0x86 ), +static const TQColor SUBDUEDCOLORS[ NUM_SUBDUEDCOLORS ] = { + TQColor( 0xe0,0x7f,0x70 ), + TQColor( 0xe2,0xa5,0x6f ), + TQColor( 0xe0,0xc9,0x70 ), + TQColor( 0xd1,0xe0,0x70 ), + TQColor( 0xac,0xe0,0x70 ), + TQColor( 0x86,0xe0,0x70 ), + TQColor( 0x70,0xe0,0x7f ), + TQColor( 0x70,0xe0,0xa4 ), + TQColor( 0x70,0xe0,0xc9 ), + TQColor( 0x70,0xd1,0xe0 ), + TQColor( 0x70,0xac,0xe0 ), + TQColor( 0x70,0x86,0xe0 ), + TQColor( 0x7f,0x70,0xe0 ), + TQColor( 0xa4,0x70,0xe0 ), + TQColor( 0xc9,0x70,0xe0 ), + TQColor( 0xe0,0x70,0xd1 ), + TQColor( 0xe0,0x70,0xac ), + TQColor( 0xe0,0x70,0x86 ), }; if( ordered ) for(int i=0; i::Iterator it = _dataColors.begin(); + for( TQMap::Iterator it = _dataColors.begin(); it != _dataColors.end(); ++it ) { setDataColor( it.key(), it.data() ); } @@ -1912,19 +1912,19 @@ void KDChartParams::recomputeShadowColors() \return the color for this dataset \sa setDataColor, maxDataColor, dataShadow2Color */ -QColor KDChartParams::dataShadow1Color( uint dataset ) const +TQColor KDChartParams::dataShadow1Color( uint dataset ) const { uint index = dataset % _maxDatasetColor; if ( _threeDShadowColors ) - if( _dataColorsShadow1.find( index ) != _dataColorsShadow1.end() ) + if( _dataColorsShadow1.tqfind( index ) != _dataColorsShadow1.end() ) return _dataColorsShadow1[ index ]; else - return QColor(); // documentation says undefined + return TQColor(); // documentation says undefined else - if( _dataColors.find( index ) != _dataColors.end() ) + if( _dataColors.tqfind( index ) != _dataColors.end() ) return _dataColors[ index ]; else - return QColor(); // documentation says undefined + return TQColor(); // documentation says undefined } @@ -1941,19 +1941,19 @@ QColor KDChartParams::dataShadow1Color( uint dataset ) const \return the color for this dataset \sa setDataColor, maxDataColor, dataShadow1Color */ -QColor KDChartParams::dataShadow2Color( uint dataset ) const +TQColor KDChartParams::dataShadow2Color( uint dataset ) const { uint index = dataset % _maxDatasetColor; if ( _threeDShadowColors ) - if( _dataColorsShadow2.find( index ) != _dataColorsShadow2.end() ) + if( _dataColorsShadow2.tqfind( index ) != _dataColorsShadow2.end() ) return _dataColorsShadow2[ index ]; else - return QColor(); // documentation says undefined + return TQColor(); // documentation says undefined else - if( _dataColors.find( index ) != _dataColors.end() ) + if( _dataColors.tqfind( index ) != _dataColors.end() ) return _dataColors[ index ]; else - return QColor(); // documentation says undefined + return TQColor(); // documentation says undefined } @@ -2159,14 +2159,14 @@ void KDChartParams::setDefaultAxesTypes() KDChartAxisParams::AxisTypeNORTH ); setAxisLabelsVisible( KDChartAxisParams::AxisPosSaggital, true ); setAxisLabelsFont( KDChartAxisParams::AxisPosSaggital, - QFont( "helvetica", 1, QFont::Bold ), + TQFont( "helvetica", 1, TQFont::Bold ), -30, - Qt::darkBlue ); + TQt::darkBlue ); setAxisLabelsVisible( KDChartAxisParams::AxisPosCircular, true ); setAxisLabelsFont( KDChartAxisParams::AxisPosCircular, - QFont( "helvetica", 1, QFont::Bold ), + TQFont( "helvetica", 1, TQFont::Bold ), -22, - Qt::darkBlue ); + TQt::darkBlue ); setPolarRotateCircularLabels( false ); break; default: { @@ -2262,7 +2262,7 @@ void KDChartParams::activateDefaultAxes() best quality when using a printer. \note The default of this flag is TRUE, so make sure to deactivate - it before painting your KDChart onto a QPrinter device! + it before painting your KDChart onto a TQPrinter device! \note This setting is NOT stored together with the other parameters, it is recommended to set the flag each time when the drawing targed @@ -2453,8 +2453,8 @@ void KDChartParams::setGlobalLeading( int left, int top, int right, int bottom ) /** \fn void KDChartParams::setSimpleFrame( uint, int, int, int, int, - bool, bool, KDFrame::SimpleFrame, int, int, QPen, QBrush, const - QPixmap*, KDFrame::BackPixmapMode, int, KDFrame::CornerName ) + bool, bool, KDFrame::SimpleFrame, int, int, TQPen, TQBrush, const + TQPixmap*, KDFrame::BackPixmapMode, int, KDFrame::CornerName ) Select a pre-defined frame setting to be used for one of the chart areas. @@ -2504,8 +2504,8 @@ void KDChartParams::setGlobalLeading( int left, int top, int right, int bottom ) /** \fn void KDChartParams::setDataRegionFrame( uint, uint, uint, int, int, int, int, - bool, bool, KDFrame::SimpleFrame, int, int, QPen, QBrush, const - QPixmap*, KDFrame::BackPixmapMode, int, KDFrame::CornerName ) + bool, bool, KDFrame::SimpleFrame, int, int, TQPen, TQBrush, const + TQPixmap*, KDFrame::BackPixmapMode, int, KDFrame::CornerName ) Select a pre-defined frame setting to be used for one of the data representations (e.g. to have the frame surrounding one of the bars in a Bar chart). @@ -2571,8 +2571,8 @@ bool KDChartParams::moveDataRegionFrame( uint oldDataRow, uint// important: we ignore the data3rd parameter for now! ) { - const QString oldKey( dataRegionFrameAreaName( oldDataRow, oldDataCol, 0 ) ); // oldData3rd ) ); - KDChartFrameSettings* it = _areaDict.find( oldKey ); + const TQString oldKey( dataRegionFrameAreaName( oldDataRow, oldDataCol, 0 ) ); // oldData3rd ) ); + KDChartFrameSettings* it = _areaDict.tqfind( oldKey ); bool bFound = ( it != 0 ); if( bFound ){ if( KDCHART_NO_DATASET != newDataRow ){ @@ -2582,7 +2582,7 @@ bool KDChartParams::moveDataRegionFrame( uint oldDataRow, frame->setDataCol( newDataCol ); frame->setData3rd( 0 ); // newData3rd ); _areaDict.setAutoDelete( TRUE ); - _areaDict.replace( + _areaDict.tqreplace( dataRegionFrameAreaName( newDataRow, newDataCol, 0 ), //data3rd 5 ), frame ); } @@ -2609,14 +2609,14 @@ const KDChartParams::KDChartFrameSettings* KDChartParams::frameSettings( uint ar { if( pIterIdx ) *pIterIdx = 0; - const QString key( QString( "%1/-----/-----/-----" ).arg( area, 5 ) ); - KDChartFrameSettings* it = _areaDict.find( key ); + const TQString key( TQString( "%1/-----/-----/-----" ).tqarg( area, 5 ) ); + KDChartFrameSettings* it = _areaDict.tqfind( key ); bFound = ( it != 0 ); if( bFound ) return it; else if( pIterIdx ){ - QString keyStart( key.left(6) ); - QDictIterator it2( _areaDict ); + TQString keyStart( key.left(6) ); + TQDictIterator it2( _areaDict ); for( ; it2.current(); ++it2 ){ if( it2.currentKey().startsWith( keyStart ) ){ bFound = true; @@ -2643,7 +2643,7 @@ const KDChartParams::KDChartFrameSettings* KDChartParams::frameSettings( uint ar */ bool KDChartParams::removeFrame( uint area ) { - return _areaDict.remove( QString( "%1/-----/-----/-----" ).arg( area, 5 ) ); + return _areaDict.remove( TQString( "%1/-----/-----/-----" ).tqarg( area, 5 ) ); } @@ -2660,14 +2660,14 @@ const KDChartParams::KDChartFrameSettings* KDChartParams::nextFrameSettings( boo bFound = false; if( pIterIdx ){ int i=0; - QDictIterator it( _areaDict ); + TQDictIterator it( _areaDict ); for( ; it.current(); ++it ){ if( *pIterIdx == i ) break; ++i; } if( *pIterIdx == i ){ - QString keyStart( it.currentKey().left(6) ); + TQString keyStart( it.currentKey().left(6) ); ++it; for( ; it.current(); ++it ){ ++*pIterIdx; @@ -2698,7 +2698,7 @@ uint KDChartParams::insertCustomBox( const KDChartCustomBox & box ) const uint maxIndex = maxCustomBoxIdx(); newIdx = 1 + maxIndex; for( uint idx = 0; idx <= maxIndex; ++idx ) { - if( ! _customBoxDict.find( idx ) ) { + if( ! _customBoxDict.tqfind( idx ) ) { newIdx = idx; _customBoxDictMayContainHoles = true; // we found a hole, so there might be more of them break; @@ -2758,7 +2758,7 @@ bool KDChartParams::removeCustomBox( const uint & idx ) */ const KDChartCustomBox* KDChartParams::customBox( uint box ) const { - return _customBoxDict.find( box ); + return _customBoxDict.tqfind( box ); } /** @@ -2776,7 +2776,7 @@ const KDChartCustomBox* KDChartParams::customBox( uint box ) const */ KDChartCustomBox* KDChartParams::customBoxRef( uint box ) { - return _customBoxDict.find( box ); + return _customBoxDict.tqfind( box ); } /** @@ -2789,7 +2789,7 @@ uint KDChartParams::maxCustomBoxIdx() const uint cnt( _customBoxDict.count() ); if( cnt ) { int maxIndex = cnt-1; - QIntDictIterator it( _customBoxDict ); + TQIntDictIterator it( _customBoxDict ); for( ; it.current(); ++it ) if( it.currentKey() > maxIndex ) maxIndex = it.currentKey(); @@ -2820,7 +2820,7 @@ uint KDChartParams::maxCustomBoxIdx() const \note Calling setChartType() results in changing the default data value texts font settings (i.e. the font size, colour, position, but not the - QFont itself) if these parameters were not changed by + TQFont itself) if these parameters were not changed by setPrintDataValues(). In order to re-activate this automatical adjustment of font settings even after you have changed them manually you may call @@ -3120,12 +3120,12 @@ void KDChartParams::setAdditionalChartType( ChartType chartType ) */ /** - \fn void KDChartParams::setOutlineDataColor( QColor color ) + \fn void KDChartParams::setOutlineDataColor( TQColor color ) Specifies a color for the outlines of data displays. The default is black. - \note Use setOutlineDataLineStyle( Qt::NoPen ) to hide the line. + \note Use setOutlineDataLineStyle( TQt::NoPen ) to hide the line. \param color the color to use for the outlines \sa outlineDataColor, setOutlineDataLineStyle, setOutlineDataLineWidth @@ -3133,7 +3133,7 @@ void KDChartParams::setAdditionalChartType( ChartType chartType ) /** - \fn QColor KDChartParams::outlineDataColor() const + \fn TQColor KDChartParams::outlineDataColor() const Returns the color for the outlines of data displays. @@ -3148,7 +3148,7 @@ void KDChartParams::setAdditionalChartType( ChartType chartType ) Specifies the width of the outlines of data displays. The default is 1 pixel. - \note Use setOutlineDataLineStyle( Qt::NoPen ) to hide the line. + \note Use setOutlineDataLineStyle( TQt::NoPen ) to hide the line. \param width the line width to use for the outlines \sa outlineDataLineWidth, setOutlineDataLineStyle, setOutlineDataColor @@ -3287,7 +3287,7 @@ void KDChartParams::setDataValuesCalc( int divPow10, \sa dataValuesColor \sa setPrintDataValuesFontRelSize setPrintDataValuesBackground */ -void KDChartParams::setDataValuesFont( QFont* font, +void KDChartParams::setDataValuesFont( TQFont* font, uint size, uint chart ) { @@ -3359,12 +3359,12 @@ void KDChartParams::setDataValuesPlacing( KDChartEnums::PositionFlag position, To have the color calculated automatically - useful when printing inside the bars (or pie slices, areas, ... resp.) - please use - \c KDCHART_DATA_VALUE_AUTO_COLOR instead of a QColor*. + \c KDCHART_DATA_VALUE_AUTO_COLOR instead of a TQColor*. Setting the background is normally not needed since reasonable settings are done by default: Area charts have a white background behind the data value texts while all other chart types use no - special background (the value is Qt::NoBrush then). + special background (the value is TQt::NoBrush then). In case you want to use it to remove the extra background from your Area chart's data value texts you should consider changing @@ -3376,8 +3376,8 @@ void KDChartParams::setDataValuesPlacing( KDChartEnums::PositionFlag position, \sa dataValuesColor \sa setPrintDataValuesFontRelSize */ -void KDChartParams::setDataValuesColors( const QColor* color, - const QBrush& background, +void KDChartParams::setDataValuesColors( const TQColor* color, + const TQBrush& background, uint chart ) { // first store the color @@ -3444,7 +3444,7 @@ void KDChartParams::setDataValuesShowInfinite( bool dataValuesShowInfinite, /* function only there for backward compatibility */ -void KDChartParams::setPrintDataValuesColor( uint chart, const QColor* color ) +void KDChartParams::setPrintDataValuesColor( uint chart, const TQColor* color ) { uint count = (KDCHART_ALL_CHARTS == chart) ? 2 : 1; PrintDataValuesSettings * settings = (( 1 < count ) || ( 0 == chart )) @@ -3453,13 +3453,13 @@ void KDChartParams::setPrintDataValuesColor( uint chart, const QColor* color ) for ( uint i = 0; i < count; ++i ) { if ( KDCHART_DATA_VALUE_AUTO_COLOR == color ) { settings->_dataValuesAutoColor = true; // !!! - settings->_dataValuesColor = QColor( Qt::black ); + settings->_dataValuesColor = TQColor( TQt::black ); } else { settings->_dataValuesAutoColor = false; if ( 0 == color ) settings->_dataValuesColor - = QColor( i ? Qt::darkBlue : Qt::black ); + = TQColor( i ? TQt::darkBlue : TQt::black ); else settings->_dataValuesColor = *color; } @@ -3502,7 +3502,7 @@ void KDChartParams::setPrintDataValuesFontRelSize( uint chart, uint size ) Specifies that data value texts are to be printed with default font parameters. Calling this methode results in resetting the respective font size and colour and position parameters but not the - QFont itself. By setting \c callSetPrintDataValues to true you + TQFont itself. By setting \c callSetPrintDataValues to true you select general enabling of text printing, when doing so it is not neccessary to call setPrintDataValues() after calling setPrintDataValuesWithDefaultFontParams(). @@ -3567,7 +3567,7 @@ void KDChartParams::setPrintDataValuesWithDefaultFontParams( uint chart, /** - \fn QFont KDChartParams::dataValuesFont( uint chart ) const + \fn TQFont KDChartParams::dataValuesFont( uint chart ) const Returns the font to be used for printing the data values @@ -3618,7 +3618,7 @@ void KDChartParams::setPrintDataValuesWithDefaultFontParams( uint chart, /** - \fn QColor KDChartParams::dataValuesColor( uint chart ) const + \fn TQColor KDChartParams::dataValuesColor( uint chart ) const Returns the colour of the font to be used for printing the data values. @@ -3682,7 +3682,7 @@ KDChartEnums::PositionFlag KDChartParams::dataValuesAnchorPosition( uint chart, /** Returns the way how the text is to be aligned to the anchor. - This must be a reasonable combination of Qt::AlignmentFlags. + This must be a reasonable combination of TQt::AlignmentFlags. \param chart The number of the chart: 0 for the first chart, 1 for the second chart in case there are two charts to be drawn sharing the @@ -3807,9 +3807,9 @@ int KDChartParams::dataValuesRotation( uint chart, bool negative ) const a data text covers a neighboring data text (or a neighboring data area, resp.). - \note A layout policy different from LayoutJustOverwrite from does + \note A tqlayout policy different from LayoutJustOverwrite from does not mean that this policy is followed in any case. Rather than - giving up when the selected policy does not result in a good layout + giving up when the selected policy does not result in a good tqlayout the program will automatically try the next policy: if LayoutPolicyRotate did not succeed LayoutPolicyShiftVertically will be tried, if this did not succeed either @@ -3869,7 +3869,7 @@ int KDChartParams::dataValuesRotation( uint chart, bool negative ) const Predefined (build-in) property ID. used to specify a cell that should be displayed using a null pen: neither the data representation nor the connecting line to the next point will be shown, - but the line will be drawn using line style Qt::NoPen. + but the line will be drawn using line style TQt::NoPen. Use this IDs without previously defining a respective set of properties via KDChartParams::registerProperties(...). @@ -3897,7 +3897,7 @@ transpProps); // Ooops? The build-in property was NOT found! // OK, never mind, let's specify it from scratch: transpProps.setName("transparent data"); -transpProps.setLineStyle(KDChartPropertySet::OwnID, Qt::NoPen); +transpProps.setLineStyle(KDChartPropertySet::OwnID, TQt::NoPen); transpProps.setShowMarker( KDCHART_PROPSET_NORMAL_DATA, bDummy); setProperties(KDCHART_PROPSET_TRANSPARENT_DATA, @@ -3927,7 +3927,7 @@ see the second example given with \c KDCHART_PROPSET_VERT_LINE. Data display will be surpressed for this point: neither the data representation nor the connecting line to the next point will be shown, actually the point will remain invisible but a horizontal - line will be drawn instead: using line style Qt::DotLine and the + line will be drawn instead: using line style TQt::DotLine and the respective dataset's line color. Use this IDs without previously defining a respective @@ -3946,20 +3946,20 @@ see the second example given with \c KDCHART_PROPSET_VERT_LINE. // build-in property was found, let's modify it a bit: horiProps.setExtraMarkersAlign( KDChartPropertySet::OwnID, -Qt::AlignLeft | Qt::AlignRight ); +TQt::AlignLeft | TQt::AlignRight ); setProperties(KDCHART_PROPSET_HORI_LINE, horiProps); }else{ // Ooops? The build-in property was NOT found! // OK, never mind, let's specify it from scratch: horiProps.setName("horizontal line"); -horiProps.setLineStyle(KDChartPropertySet::OwnID, Qt::NoPen); +horiProps.setLineStyle(KDChartPropertySet::OwnID, TQt::NoPen); horiProps.setShowMarker( KDChartPropertySet::OwnID, false ); horiProps.setExtraMarkersAlign( KDChartPropertySet::OwnID, -Qt::AlignLeft | Qt::AlignRight ); +TQt::AlignLeft | TQt::AlignRight ); horiProps.setExtraMarkersAlign( KDChartPropertySet::OwnID, -Qt::AlignLeft | Qt::AlignRight ); +TQt::AlignLeft | TQt::AlignRight ); setProperties(KDCHART_PROPSET_HORI_LINE, horiProps); } @@ -3987,7 +3987,7 @@ see the second example given with \c KDCHART_PROPSET_VERT_LINE. Data display will be surpressed for this point: neither the data representation nor the connecting line to the next point will be shown, actually the point will remain invisible but a vertical - line will be drawn instead: using line style Qt::DotLine and the + line will be drawn instead: using line style TQt::DotLine and the respective dataset's line color. Use this IDs without previously defining a respective @@ -4008,20 +4008,20 @@ see the second example given with \c KDCHART_PROPSET_VERT_LINE. vertProps) ){ // build-in property was found, let's modify it a bit: vertProps.setExtraMarkersAlign( -KDChartPropertySet::OwnID, Qt::AlignTop ); +KDChartPropertySet::OwnID, TQt::AlignTop ); setProperties(KDCHART_PROPSET_VERT_LINE, vertProps); }else{ // Ooops? The build-in property was NOT found! // OK, never mind, let's specify it from scratch: vertProps.setName("vertical line"); -vertProps.setLineStyle(KDChartPropertySet::OwnID, Qt::NoPen); +vertProps.setLineStyle(KDChartPropertySet::OwnID, TQt::NoPen); vertProps.setShowMarker( KDChartPropertySet::OwnID, false ); vertProps.setExtraMarkersAlign( KDChartPropertySet::OwnID, -Qt::AlignTop ); +TQt::AlignTop ); vertProps.setExtraMarkersAlign( KDChartPropertySet::OwnID, -Qt::AlignTop ); +TQt::AlignTop ); setProperties(KDCHART_PROPSET_VERT_LINE, vertProps); } @@ -4045,25 +4045,25 @@ dataWithTopLineProps.setName( "normal data with red vertical line on top"); dataWithTopLineProps.setExtraLinesAlign( KDChartPropertySet::OwnID, -Qt::AlignTop ); +TQt::AlignTop ); dataWithTopLineProps.setExtraLinesWidth( KDChartPropertySet::OwnID, -2 ); dataWithTopLineProps.setExtraLinesColor( KDChartPropertySet::OwnID, - Qt::red ); + TQt::red ); dataWithTopLineProps.setExtraLinesStyle( KDChartPropertySet::OwnID, - Qt::SolidLine ); + TQt::SolidLine ); dataWithTopLineProps.setExtraMarkersAlign( KDChartPropertySet::OwnID, - Qt::AlignTop ); + TQt::AlignTop ); dataWithTopLineProps.setExtraMarkersSize( KDChartPropertySet::OwnID, - QSize(-10, -10) ); + TQSize(-10, -10) ); dataWithTopLineProps.setExtraMarkersColor( KDChartPropertySet::OwnID, - Qt::darkRed ); + TQt::darkRed ); dataWithTopLineProps.setExtraMarkersStyle( KDChartPropertySet::OwnID, KDChartParams::LineMarkerCircle ); @@ -4275,7 +4275,7 @@ void KDChartParams::setThreeDBarAngle( uint angle ) \fn void KDChartParams::setDatasetGap( int gap ) Specifies the number of pixels between two dataset values. - In addition you might want to use \c setOutlineDataLineStyle( Qt::NoPen ) to hide the line. + In addition you might want to use \c setOutlineDataLineStyle( TQt::NoPen ) to hide the line. Also the method \c setValueBlockGap might be usefull, please read the information given there ... @@ -4345,7 +4345,7 @@ void KDChartParams::setThreeDBarAngle( uint angle ) Specifies the number of pixels between each value block. If there is only one dataset shown this gap is appearing between each of the bars, otherwise it is appearing between each of the bar blocks. - In addition you might want to use \c setOutlineDataLineStyle( Qt::NoPen ) to hide the line. + In addition you might want to use \c setOutlineDataLineStyle( TQt::NoPen ) to hide the line. Also the method \c setDatasetGap might be usefull, please read the information given there ... @@ -4617,7 +4617,7 @@ void KDChartParams::setThreeDBarAngle( uint angle ) point. Only used if chartType() == Line and if threeDLines() == false. The default is not to draw markers. - \note Use the setLineMarkerStyle function to specify the shape + \note Use the setLineMarkerStyle function to specify the tqshape of the markers, use the setLineWidth function to set the width of the lines connecting the markers (or to surpress drawing of such lines, resp.) @@ -4670,7 +4670,7 @@ void KDChartParams::setThreeDBarAngle( uint angle ) void KDChartParams::setLineMarkerStyle( uint dataset, LineMarkerStyle style ) { _lineMarkerStyles[ dataset ] = style; - _maxDatasetLineMarkerStyle = QMAX( dataset, + _maxDatasetLineMarkerStyle = TQMAX( dataset, _maxDatasetLineMarkerStyle ); emit changed(); } @@ -4685,7 +4685,7 @@ void KDChartParams::setLineMarkerStyle( uint dataset, LineMarkerStyle style ) */ KDChartParams::LineMarkerStyle KDChartParams::lineMarkerStyle( uint dataset ) const { - if( _lineMarkerStyles.find( dataset ) != _lineMarkerStyles.end() ) + if( _lineMarkerStyles.tqfind( dataset ) != _lineMarkerStyles.end() ) return _lineMarkerStyles[ dataset ]; else return LineMarkerCircle; // default @@ -4718,7 +4718,7 @@ void KDChartParams::setLineMarkerStyles( LineMarkerStyleMap map ) { uint maxDataset = 0; for( LineMarkerStyleMap::ConstIterator it = _lineMarkerStyles.begin(); it != _lineMarkerStyles.end(); ++it ) - maxDataset = QMAX( maxDataset, it.key() ); + maxDataset = TQMAX( maxDataset, it.key() ); _maxDatasetLineMarkerStyle = maxDataset; } @@ -4749,7 +4749,7 @@ void KDChartParams::setLineMarkerStyles( LineMarkerStyleMap map ) { /** - \fn void KDChartParams::setLineMarkerSize( QSize size ) + \fn void KDChartParams::setLineMarkerSize( TQSize size ) Specifies the sizes of line markers. Only used if chartType() == Line and lineMarker() == true. The default is 6x6. @@ -4766,7 +4766,7 @@ void KDChartParams::setLineMarkerStyles( LineMarkerStyleMap map ) { /** - \fn QSize KDChartParams::lineMarkerSize() const + \fn TQSize KDChartParams::lineMarkerSize() const Returns the sizes of line markers. Only used if chartType() == Line and lineMarker() == true. @@ -4808,7 +4808,7 @@ void KDChartParams::setLineMarkerStyles( LineMarkerStyleMap map ) { /** - \fn void KDChartParams::setLineColor( QColor color = QColor() ) + \fn void KDChartParams::setLineColor( TQColor color = TQColor() ) Specifies the color of the lines in line charts. By default line chart lines are drawn in the color specified by the @@ -4823,7 +4823,7 @@ void KDChartParams::setLineMarkerStyles( LineMarkerStyleMap map ) { or even setLineMarkerStyle( i, LineMarker1Pixel ) and have your marker dots normally form a contiguous line without the need of any connecting lines except at the places where missing data - values would interrupt the 'line'. Using setLineColor( Qt::darkGray) + values would interrupt the 'line'. Using setLineColor( TQt::darkGray) could make your chart more readable in such cases. \param color of the lines in line charts @@ -4833,7 +4833,7 @@ void KDChartParams::setLineMarkerStyles( LineMarkerStyleMap map ) { /** - \fn QColor KDChartParams::lineColor() const + \fn TQColor KDChartParams::lineColor() const Returns the color of the lines in line charts. @@ -4852,7 +4852,7 @@ void KDChartParams::setLineMarkerStyles( LineMarkerStyleMap map ) { Global and dataset specific line styles may be used simultaneously: If no dataset specific style is defined the global style is used which by default - is Qt::SolidLine. + is TQt::SolidLine. Warning: On Windows 95/98, the style setting (other than NoPen and SolidLine) has no effect for lines with width greater @@ -4891,7 +4891,7 @@ Qt::PenStyle KDChartParams::lineStyle( uint dataset ) const if( KDCHART_GLOBAL_LINE_STYLE == dataset ) // global line style return _lineStyle; - else if( _datasetLineStyles.find( dataset ) == _datasetLineStyles.end() ) + else if( _datasetLineStyles.tqfind( dataset ) == _datasetLineStyles.end() ) return lineStyle(); else return _datasetLineStyles[ dataset ]; @@ -5182,7 +5182,7 @@ Qt::PenStyle KDChartParams::lineStyle( uint dataset ) const void KDChartParams::setPolarMarkerStyle( uint dataset, PolarMarkerStyle style ) { _polarMarkerStyles[ dataset ] = style; - _maxDatasetPolarMarkerStyle = QMAX( dataset, + _maxDatasetPolarMarkerStyle = TQMAX( dataset, _maxDatasetPolarMarkerStyle ); emit changed(); } @@ -5197,7 +5197,7 @@ void KDChartParams::setPolarMarkerStyle( uint dataset, PolarMarkerStyle style ) */ KDChartParams::PolarMarkerStyle KDChartParams::polarMarkerStyle( uint dataset ) const { - if( _polarMarkerStyles.find( dataset ) != _polarMarkerStyles.end() ) + if( _polarMarkerStyles.tqfind( dataset ) != _polarMarkerStyles.end() ) return _polarMarkerStyles[ dataset ]; else return PolarMarkerCircle; // default @@ -5228,7 +5228,7 @@ void KDChartParams::setPolarMarkerStyles( PolarMarkerStyleMap map ) { uint maxDataset = 0; for( PolarMarkerStyleMap::ConstIterator it = _polarMarkerStyles.begin(); it != _polarMarkerStyles.end(); ++it ) - maxDataset = QMAX( maxDataset, it.key() ); + maxDataset = TQMAX( maxDataset, it.key() ); _maxDatasetPolarMarkerStyle = maxDataset; } @@ -5258,7 +5258,7 @@ void KDChartParams::setPolarMarkerStyles( PolarMarkerStyleMap map ) { /** - \fn void KDChartParams::setPolarMarkerSize( QSize ) + \fn void KDChartParams::setPolarMarkerSize( TQSize ) Specifies the sizes of polar markers. Only used if chartType() == Polar and polarMarker() == true. The default is -40 x -40. @@ -5272,7 +5272,7 @@ void KDChartParams::setPolarMarkerStyles( PolarMarkerStyleMap map ) { /** - \fn QSize KDChartParams::polarMarkerSize() const + \fn TQSize KDChartParams::polarMarkerSize() const Returns the sizes of polar markers. Only used if chartType() == Polar and polarMarker() == true. @@ -5440,7 +5440,7 @@ bool KDChartParams::polarLabelsAtPos( KDChartEnums::PositionFlag pos ) const /** - \fn void KDChartParams::setExplodeValues( QValueList explodeList ) + \fn void KDChartParams::setExplodeValues( TQValueList explodeList ) Specifies which values to explode. Explosion of values only happens if setExplode( true ) has been called. Normally, all @@ -5470,7 +5470,7 @@ bool KDChartParams::polarLabelsAtPos( KDChartEnums::PositionFlag pos ) const /** - \fn QValueList KDChartParams::explodeValues() const + \fn TQValueList KDChartParams::explodeValues() const Returns which values are exploded in a pie or ring chart. For a detailed explanation of this feature, please see \a setExplodeValues(). @@ -5482,7 +5482,7 @@ bool KDChartParams::polarLabelsAtPos( KDChartEnums::PositionFlag pos ) const /** - \fn void KDChartParams::setExplodeFactors( QMap factors ) + \fn void KDChartParams::setExplodeFactors( TQMap factors ) Specifies the explode factors for each segment in percent, i.e. how much an exploded pie or ring segment is displaced from @@ -5514,7 +5514,7 @@ setExplodeFactor(), explodeFactor(), explodeFactors() /** - \fn QMap KDChartParams::explodeFactors() const { + \fn TQMap KDChartParams::explodeFactors() const { Returns the list of explode factors. Each explode factor in the list corresponds to the segment at the same position. @@ -5752,8 +5752,8 @@ setExplodeFactor(), explodeFactor(), explodeFactors() \sa hiLoChartHighValuesFontUseRelSize, hiLoChartHighValuesFontUseRelSize \sa hiLoChartHighValuesFontRelSize, hiLoChartHighValuesFontRelSize */ -void KDChartParams::setHiLoChartPrintLowValues( bool active, QFont* font, - int size, QColor* color ) +void KDChartParams::setHiLoChartPrintLowValues( bool active, TQFont* font, + int size, TQColor* color ) { _hiLoChartPrintLowValues = active; if ( font ) @@ -5763,7 +5763,7 @@ void KDChartParams::setHiLoChartPrintLowValues( bool active, QFont* font, _hiLoChartLowValuesUseFontRelSize = ( 0 < size ); _hiLoChartLowValuesFontRelSize = size; if ( 0 == color ) - _hiLoChartLowValuesColor = QColor( 0, 0, 0 ); + _hiLoChartLowValuesColor = TQColor( 0, 0, 0 ); else _hiLoChartLowValuesColor = *color; emit changed(); @@ -5786,7 +5786,7 @@ void KDChartParams::setHiLoChartPrintLowValues( bool active, QFont* font, /** - \fn QFont KDChartParams::hiLoChartLowValuesFont() const + \fn TQFont KDChartParams::hiLoChartLowValuesFont() const Returns the font to be used for printing the low values @@ -5833,7 +5833,7 @@ void KDChartParams::setHiLoChartPrintLowValues( bool active, QFont* font, /** - \fn QColor KDChartParams::hiLoChartLowValuesColor() const + \fn TQColor KDChartParams::hiLoChartLowValuesColor() const Returns the colour of the font size to be used for printing the low values. @@ -5875,8 +5875,8 @@ void KDChartParams::setHiLoChartPrintLowValues( bool active, QFont* font, \sa hiLoChartLowValuesFontUseRelSize, hiLoChartLowValuesFontUseRelSize \sa hiLoChartLowValuesFontRelSize, hiLoChartLowValuesFontRelSize */ -void KDChartParams::setHiLoChartPrintHighValues( bool active, QFont* font, - int size, QColor* color ) +void KDChartParams::setHiLoChartPrintHighValues( bool active, TQFont* font, + int size, TQColor* color ) { _hiLoChartPrintHighValues = active; if ( font ) @@ -5886,7 +5886,7 @@ void KDChartParams::setHiLoChartPrintHighValues( bool active, QFont* font, _hiLoChartHighValuesUseFontRelSize = ( 0 < size ); _hiLoChartHighValuesFontRelSize = size; if ( 0 == color ) - _hiLoChartHighValuesColor = QColor( 0, 0, 0 ); + _hiLoChartHighValuesColor = TQColor( 0, 0, 0 ); else _hiLoChartHighValuesColor = *color; emit changed(); @@ -5909,7 +5909,7 @@ void KDChartParams::setHiLoChartPrintHighValues( bool active, QFont* font, /** - \fn QFont KDChartParams::hiLoChartHighValuesFont() const + \fn TQFont KDChartParams::hiLoChartHighValuesFont() const Returns the font to be used for printing the high values. @@ -5956,7 +5956,7 @@ void KDChartParams::setHiLoChartPrintHighValues( bool active, QFont* font, /** - \fn QColor KDChartParams::hiLoChartHighValuesColor() const + \fn TQColor KDChartParams::hiLoChartHighValuesColor() const Returns the colour of the font size to be used for printing the high values. @@ -5997,8 +5997,8 @@ void KDChartParams::setHiLoChartPrintHighValues( bool active, QFont* font, \sa hiLoChartCloseValuesFontUseRelSize, hiLoChartCloseValuesFontUseRelSize \sa hiLoChartCloseValuesFontRelSize, hiLoChartCloseValuesFontRelSize */ -void KDChartParams::setHiLoChartPrintOpenValues( bool active, QFont* font, - uint size, QColor* color ) +void KDChartParams::setHiLoChartPrintOpenValues( bool active, TQFont* font, + uint size, TQColor* color ) { _hiLoChartPrintOpenValues = active; if ( font ) @@ -6008,7 +6008,7 @@ void KDChartParams::setHiLoChartPrintOpenValues( bool active, QFont* font, _hiLoChartOpenValuesUseFontRelSize = ( 0 < size ); _hiLoChartOpenValuesFontRelSize = size; if ( 0 == color ) - _hiLoChartOpenValuesColor = QColor( 0, 0, 0 ); + _hiLoChartOpenValuesColor = TQColor( 0, 0, 0 ); else _hiLoChartOpenValuesColor = *color; emit changed(); @@ -6031,7 +6031,7 @@ void KDChartParams::setHiLoChartPrintOpenValues( bool active, QFont* font, /** - \fn QFont KDChartParams::hiLoChartOpenValuesFont() const + \fn TQFont KDChartParams::hiLoChartOpenValuesFont() const Returns the font to be used for printing the open values. @@ -6076,7 +6076,7 @@ void KDChartParams::setHiLoChartPrintOpenValues( bool active, QFont* font, /** - \fn QColor KDChartParams::hiLoChartOpenValuesColor() const + \fn TQColor KDChartParams::hiLoChartOpenValuesColor() const Returns the colour of the font size to be used for printing the open values. @@ -6117,8 +6117,8 @@ void KDChartParams::setHiLoChartPrintOpenValues( bool active, QFont* font, \sa hiLoChartOpenValuesFontUseRelSize, hiLoChartOpenValuesFontUseRelSize \sa hiLoChartOpenValuesFontRelSize, hiLoChartOpenValuesFontRelSize */ -void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, - int size, QColor* color ) +void KDChartParams::setHiLoChartPrintCloseValues( bool active, TQFont* font, + int size, TQColor* color ) { _hiLoChartPrintCloseValues = active; if ( font ) @@ -6128,7 +6128,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, _hiLoChartCloseValuesUseFontRelSize = ( 0 < size ); _hiLoChartCloseValuesFontRelSize = size; if ( 0 == color ) - _hiLoChartCloseValuesColor = QColor( 0, 0, 0 ); + _hiLoChartCloseValuesColor = TQColor( 0, 0, 0 ); else _hiLoChartCloseValuesColor = *color; emit changed(); @@ -6150,7 +6150,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn QFont KDChartParams::hiLoChartCloseValuesFont() const + \fn TQFont KDChartParams::hiLoChartCloseValuesFont() const Returns the font to be used for printing the close values. @@ -6192,7 +6192,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn QColor KDChartParams::hiLoChartCloseValuesColor() const + \fn TQColor KDChartParams::hiLoChartCloseValuesColor() const Returns the colour of the font size to be used for printing the close values. @@ -6207,7 +6207,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn void KDChartParams::setHiLoChartPrintFirstValues( bool, QFont*, uint, QColor* ) + \fn void KDChartParams::setHiLoChartPrintFirstValues( bool, TQFont*, uint, TQColor* ) \obsolete @@ -6226,7 +6226,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn QFont KDChartParams::hiLoChartFirstValuesFont() const + \fn TQFont KDChartParams::hiLoChartFirstValuesFont() const \obsolete @@ -6256,7 +6256,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn QColor KDChartParams::hiLoChartFirstValuesColor() const + \fn TQColor KDChartParams::hiLoChartFirstValuesColor() const \obsolete @@ -6266,7 +6266,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn void KDChartParams::setHiLoChartPrintLastValues( bool, QFont*, int, QColor* ) + \fn void KDChartParams::setHiLoChartPrintLastValues( bool, TQFont*, int, TQColor* ) \obsolete @@ -6286,7 +6286,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn QFont KDChartParams::hiLoChartLastValuesFont() const + \fn TQFont KDChartParams::hiLoChartLastValuesFont() const \obsolete @@ -6316,7 +6316,7 @@ void KDChartParams::setHiLoChartPrintCloseValues( bool active, QFont* font, /** - \fn QColor KDChartParams::hiLoChartLastValuesColor() const + \fn TQColor KDChartParams::hiLoChartLastValuesColor() const \obsolete @@ -6419,7 +6419,7 @@ void KDChartParams::bWChartFences( double& upperInner, double& lowerInner, /** - \fn void KDChartParams::setBWChartBrush( const QBrush& bWChartBrush ) + \fn void KDChartParams::setBWChartBrush( const TQBrush& bWChartBrush ) Specifies the brush to be used to fill the BoxWhisker charts. @@ -6429,7 +6429,7 @@ void KDChartParams::bWChartFences( double& upperInner, double& lowerInner, /** - \fn QBrush KDChartParams::bWChartBrush() const + \fn TQBrush KDChartParams::bWChartBrush() const Returns the brush to be used to fill the BoxWhisker charts. @@ -6510,10 +6510,10 @@ void KDChartParams::bWChartFences( double& upperInner, double& lowerInner, */ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, bool active, - QFont* font, + TQFont* font, int size, - QColor* color, - QBrush* brush ) + TQColor* color, + TQBrush* brush ) { BWStatVal statValA = (BWStatValALL == statValue) ? BWStatValSTART : statValue; BWStatVal statValZ = (BWStatValALL == statValue) ? BWStatValEND : statValue; @@ -6526,11 +6526,11 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, _BWChartStatistics[ i ].useRelSize = ( 0 < size ); _BWChartStatistics[ i ].relSize = size; if ( 0 == color ) - _BWChartStatistics[ i ].color = QColor( 0, 0, 0 ); + _BWChartStatistics[ i ].color = TQColor( 0, 0, 0 ); else _BWChartStatistics[ i ].color = *color; if ( 0 == brush ) - _BWChartStatistics[ i ].brush = QBrush( Qt::white ); + _BWChartStatistics[ i ].brush = TQBrush( TQt::white ); else _BWChartStatistics[ i ].brush = *brush; } @@ -6554,7 +6554,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QFont KDChartParams::bWChartStatisticsFont( BWStatVal statValue ) const + \fn TQFont KDChartParams::bWChartStatisticsFont( BWStatVal statValue ) const Returns the font to be used for printing the respective statistical values @@ -6597,7 +6597,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QColor KDChartParams::bWChartStatisticsColor( BWStatVal statValue ) const + \fn TQColor KDChartParams::bWChartStatisticsColor( BWStatVal statValue ) const Returns the colour of the font to be used for printing the respective statistical values. @@ -6612,7 +6612,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QBrush KDChartParams::bWChartStatisticsBrush( BWStatVal statValue ) const + \fn TQBrush KDChartParams::bWChartStatisticsBrush( BWStatVal statValue ) const Returns the brush used to fill the text's area before printing the respective statistical values. @@ -6675,7 +6675,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, prints the legend entries below each other, Qt::Horizontal prints them aside each other. - \note Horizontal orientation is only possible if the chart is NOT making + \noteQt::Horizontal orientation is only possible if the chart is NOT making room in horizontal direction, this means you may specify horizontal orientation if the legend position in one of the following values only: LegendTop, LegendBottom, LegendTopLeftTop, LegendTopRightTop, @@ -6729,7 +6729,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue,
  • Manual - Uses texts set with setLegendText(); if no text is set for a dataset, the legend text will be empty.
  • FirstColumn - Uses values from the first column, no matter what - this contains. + this tqcontains.
  • Automatic - Tries first to use values from the first column; if this does not contain any string values, tries to use values set manually with setLegendText(). If there are no values set manually @@ -6764,7 +6764,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn void KDChartParams::setLegendText( uint dataset, const QString& text ) + \fn void KDChartParams::setLegendText( uint dataset, const TQString& text ) Manually specifies a legend text for a certain dataset. This is only used if legendSource() == Manual or if legendSource() == Automatic and @@ -6777,7 +6777,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QString KDChartParams::legendText( uint dataset ) const + \fn TQString KDChartParams::legendText( uint dataset ) const Returns the manually specified legend text for a given dataset. @@ -6787,7 +6787,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn void KDChartParams::setLegendTextColor( const QColor& color ) + \fn void KDChartParams::setLegendTextColor( const TQColor& color ) Specifies the color to be used for the legend texts. The default is black. @@ -6798,7 +6798,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QColor KDChartParams::legendTextColor() const + \fn TQColor KDChartParams::legendTextColor() const Returns the color in which the legend texts are drawn. The default is black. @@ -6809,7 +6809,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn void KDChartParams::setLegendFont( const QFont& font, bool useFontSize ) + \fn void KDChartParams::setLegendFont( const TQFont& font, bool useFontSize ) Specifies the font in which the legend texts are drawn. The default is a 10pt helvetica font. @@ -6824,7 +6824,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QFont KDChartParams::legendFont() const + \fn TQFont KDChartParams::legendFont() const Returns the font in which the legend texts are drawn. @@ -6887,7 +6887,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn void KDChartParams::setLegendTitleText( const QString& text ) + \fn void KDChartParams::setLegendTitleText( const TQString& text ) Specifies a text to be shown as the title of the legend. The default is "Legend" (possibly localized). To turn off the @@ -6902,7 +6902,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QString KDChartParams::legendTitleText() const + \fn TQString KDChartParams::legendTitleText() const Returns the text that is shown as the title of the legend. @@ -6913,7 +6913,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn void KDChartParams::setLegendTitleTextColor( const QColor& color ) + \fn void KDChartParams::setLegendTitleTextColor( const TQColor& color ) Specifies the color to be used for the legend title. The default is black. Note that this color is only the default when @@ -6925,7 +6925,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QColor KDChartParams::legendTitleTextColor() const + \fn TQColor KDChartParams::legendTitleTextColor() const Returns the color in which the legend title is drawn. The default is black. @@ -6936,7 +6936,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn void KDChartParams::setLegendTitleFont( const QFont& font, bool useFontSize ) + \fn void KDChartParams::setLegendTitleFont( const TQFont& font, bool useFontSize ) Specifies the font in which the legend title (if any) is drawn. The default is a 12pt helvetica font. @@ -6951,7 +6951,7 @@ void KDChartParams::setBWChartPrintStatistics( BWStatVal statValue, /** - \fn QFont KDChartParams::legendTitleFont() const + \fn TQFont KDChartParams::legendTitleFont() const Returns the font in which the legend title (if any) is drawn. @@ -7150,10 +7150,10 @@ void KDChartParams::setAxisDatasets( uint n, uint dataset, { uint a1 = ( KDCHART_ALL_AXES == n ) ? 0 - : QMIN( n, KDCHART_MAX_AXES-1 ); + : TQMIN( n, KDCHART_MAX_AXES-1 ); uint a2 = ( KDCHART_ALL_AXES == n ) ? KDCHART_MAX_AXES-1 - : QMIN( n, KDCHART_MAX_AXES-1 ); + : TQMIN( n, KDCHART_MAX_AXES-1 ); for( uint i = a1; i <= a2; ++i ) { _axisSettings[ i ].params.setAxisVisible( KDCHART_NO_DATASET != dataset ); _axisSettings[ i ].dataset = dataset; @@ -7240,7 +7240,7 @@ bool KDChartParams::chartAxes( uint chart, uint& cnt, AxesArray& axes ) const /** - \fn QRect KDChartParams::axisArea( const uint n ) const + \fn TQRect KDChartParams::axisArea( const uint n ) const Returns the true axis area rectangle as it was was calculate by KD Chart. @@ -7256,7 +7256,7 @@ bool KDChartParams::chartAxes( uint chart, uint& cnt, AxesArray& axes ) const */ /** - \fn QRect KDChartParams::legendArea() const + \fn TQRect KDChartParams::legendArea() const Returns the true legend area rectangle as it was was calculate by KD Chart. @@ -7270,7 +7270,7 @@ bool KDChartParams::chartAxes( uint chart, uint& cnt, AxesArray& axes ) const */ /** - \fn QRect KDChartParams::dataArea() const + \fn TQRect KDChartParams::dataArea() const Returns the true data area rectangle as it was was calculate by KD Chart. @@ -7285,7 +7285,7 @@ bool KDChartParams::chartAxes( uint chart, uint& cnt, AxesArray& axes ) const /** - \fn void KDChartParams::setAxisArea( const uint n, const QRect& areaRect ) + \fn void KDChartParams::setAxisArea( const uint n, const TQRect& areaRect ) Specifies the true axis area rectangle. @@ -7353,13 +7353,13 @@ bool KDChartParams::chartAxes( uint chart, uint& cnt, AxesArray& axes ) const \sa KDChartAxisParams::setAxisLabelsFontMinSize */ void KDChartParams::setAxisLabelsFont( uint n, - QFont axisLabelsFont, + TQFont axisLabelsFont, int axisLabelsFontSize, - QColor axisLabelsColor ) + TQColor axisLabelsColor ) { if ( n < KDCHART_MAX_AXES ) { bool extraSize = (0 != axisLabelsFontSize); - QFont theFont( axisLabelsFont ); + TQFont theFont( axisLabelsFont ); bool useFontFixedSize = true; if ( extraSize ){ if( 0 > axisLabelsFontSize ){ @@ -7381,8 +7381,8 @@ void KDChartParams::setAxisLabelsFont( uint n, double axisValueDelta, int axisDigitsBehindComma, int axisMaxEmptyInnerSpan, KDChartAxisParams::LabelsFromDataRow takeLabelsFromDataRow, - int labelTextsDataRow, QStringList* axisLabelStringList, - QStringList* axisShortLabelsStringList ) + int labelTextsDataRow, TQStringList* axisLabelStringList, + TQStringList* axisShortLabelsStringList ) Specifies the label text parameters for one axis. @@ -7391,7 +7391,7 @@ void KDChartParams::setAxisLabelsFont( uint n, /** - Specifies a \c QStringList which the axis label texts for one + Specifies a \c TQStringList which the axis label texts for one axis are to be taken from, the optional short-labels parameter (if not zero) may be used to specify an alternative list of strings that are to be displayed in case the axis area size @@ -7403,10 +7403,10 @@ void KDChartParams::setAxisLabelsFont( uint n, the strings between these two values only, as shown here: \verbatim - QStringList abscissaNames; + TQStringList abscissaNames; abscissaNames << "Sunday" << "Monday" << "Tuesday" << "Wednesday" << "Thursday" << "Friday" << "Saturday"; - QStringList abscissaShortNames; + TQStringList abscissaShortNames; abscissaShortNames << "Sun" << "Mon" << "Tue" << "Wed" << "Thu" << "Fri" << "Sat"; @@ -7417,19 +7417,19 @@ void KDChartParams::setAxisLabelsFont( uint n, \param n the ID of the axis - \param QStringList* axisLabelStringList points to the list of labels to be displayed - \param QStringList* axisShortLabelStringList points to + \param TQStringList* axisLabelStringList points to the list of labels to be displayed + \param TQStringList* axisShortLabelStringList points to an alternative list of short names to be displayed if the long labels take too much place - \param QString valueStart ( default null ) the label to begin with - \param QString valueEnd ( default null ) the label to end with + \param TQString valueStart ( default null ) the label to begin with + \param TQString valueEnd ( default null ) the label to end with \sa KDChartAxisParams::setAxisLabelStringLists */ void KDChartParams::setAxisLabelStringParams( uint n, - QStringList* axisLabelStringList, - QStringList* axisShortLabelStringList, - const QString& valueStart, - const QString& valueEnd ) + TQStringList* axisLabelStringList, + TQStringList* axisShortLabelStringList, + const TQString& valueStart, + const TQString& valueEnd ) { if ( n < KDCHART_MAX_AXES ) { _axisSettings[ n ].params.setAxisLabelStringLists( axisLabelStringList, @@ -7487,7 +7487,7 @@ void KDChartParams::setAxisParams( uint n, You might want to use those sections to show some marginal information like department name, print date, page number...
    Note: Those headers share the same area so make sure to - specify propper horizontal alignment for each section when using more than + specify propper horizontal tqalignment for each section when using more than one of them. By default \c HdFtPosHeader0 has centered alignement, \c HdFtPosHeader0L is aligned to the left and \c HdFtPosHeader0R to the right side. All of them are vertically aligned to the bottom, you may @@ -7504,7 +7504,7 @@ void KDChartParams::setAxisParams( uint n, You could use this headers to show the main information such as project name, chart title or period of time (e.g. census year).
    Like their counterparts they share the same part of the printable area so the - restrictions regarding alignment mentioned above apply also to these three + restrictions regarding tqalignment mentioned above apply also to these three sections. \li Up to three additional headers ( \c HdFtPosHeader2 , \c @@ -7513,7 +7513,7 @@ void KDChartParams::setAxisParams( uint n, This headers could show additional information such as project phase, chart sub-title or sub-period of time (e.g. census quarter-year).
    Like their counterparts they share the same part of the printable area so the - restrictions regarding alignment mentioned above apply also to these three + restrictions regarding tqalignment mentioned above apply also to these three sections.

    @@ -7524,7 +7524,7 @@ void KDChartParams::setAxisParams( uint n, You might want to use these footers instead of (or additional to) the main header(s) for showing the main information...
    Like their header-counterparts they share the same part of the printable area - so the restrictions regarding alignment mentioned above apply also to these + so the restrictions regarding tqalignment mentioned above apply also to these three sections. \li Up to three additional footers ( \c HdFtPosFooter2 , \c @@ -7533,7 +7533,7 @@ void KDChartParams::setAxisParams( uint n, This footers could show additional information instead of (or additional to) the additional header(s).
    Like their counterparts they share the same part of the printable area so the - restrictions regarding alignment mentioned above apply also to these three + restrictions regarding tqalignment mentioned above apply also to these three sections. \li Up to three trailing footers ( \c HdFtPosFooter0 , \c @@ -7542,7 +7542,7 @@ void KDChartParams::setAxisParams( uint n, You might want to use those sections to show some marginal information instead of (or additional to) the leading header(s).
    Like their counterparts they share the same part of the printable area so the - restrictions regarding alignment mentioned above apply also to these three + restrictions regarding tqalignment mentioned above apply also to these three sections. \note The names \c HdFtPosHeader or \c HdFtPosFooter are the basic names also returned by \c basicAxisPos. @@ -7731,7 +7731,7 @@ void KDChartParams::setAxisParams( uint n, \sa setHeader2Text(), header2Text() \sa setFooterText(), footerText() */ -void KDChartParams::setHeaderFooterText( uint pos, const QString& text ) +void KDChartParams::setHeaderFooterText( uint pos, const TQString& text ) { if ( HdFtPosEND >= pos ) { _hdFtParams[ pos ]._text = text; @@ -7757,12 +7757,12 @@ void KDChartParams::setHeaderFooterText( uint pos, const QString& text ) \sa setHeader2Text(), header2Text() \sa setFooterText(), footerText() */ -QString KDChartParams::headerFooterText( uint pos ) const +TQString KDChartParams::headerFooterText( uint pos ) const { if ( HdFtPosEND >= pos ) return _hdFtParams[ pos ]._text; else - return QString::null; + return TQString(); } @@ -7772,7 +7772,7 @@ QString KDChartParams::headerFooterText( uint pos ) const Return the position and size of one header/footer area. Will return valid data only if called after KDChartPainter::setupGeometry()! */ -const QRect& KDChartParams::headerFooterRect( uint pos ) const +const TQRect& KDChartParams::headerFooterRect( uint pos ) const { if ( HdFtPosEND >= pos ) return _hdFtParams[ pos ].rect(); @@ -7784,7 +7784,7 @@ const QRect& KDChartParams::headerFooterRect( uint pos ) const /** Specifies the colour to be used for the header text (or footer text, resp.) of the header/footer section specified by \c pos. - The default colour is QColor( Qt::black ). + The default colour is TQColor( TQt::black ). \note To learn about the different header (or footer, resp.) sections please see information given at \c HdFtPos enum explanation. @@ -7799,7 +7799,7 @@ const QRect& KDChartParams::headerFooterRect( uint pos ) const \sa setHeader2Text(), header2Text() \sa setFooterText(), footerText() */ -void KDChartParams::setHeaderFooterColor( uint pos, const QColor color ) +void KDChartParams::setHeaderFooterColor( uint pos, const TQColor color ) { if ( HdFtPosEND >= pos ) { _hdFtParams[ pos ]._color = color; @@ -7825,12 +7825,12 @@ void KDChartParams::setHeaderFooterColor( uint pos, const QColor color ) \sa setHeader2Text(), header2Text() \sa setFooterText(), footerText() */ -QColor KDChartParams::headerFooterColor( uint pos ) const +TQColor KDChartParams::headerFooterColor( uint pos ) const { if ( HdFtPosEND >= pos ) return _hdFtParams[ pos ]._color; else - return QColor( Qt::black ); + return TQColor( TQt::black ); } @@ -7855,7 +7855,7 @@ QColor KDChartParams::headerFooterColor( uint pos ) const \sa setHeader2Text(), header2Text() \sa setFooterText(), footerText() */ -void KDChartParams::setHeaderFooterFont( uint pos, const QFont& font, +void KDChartParams::setHeaderFooterFont( uint pos, const TQFont& font, bool fontUseRelSize, int fontRelSize ) { @@ -7888,12 +7888,12 @@ void KDChartParams::setHeaderFooterFont( uint pos, const QFont& font, \sa setHeader2Text(), header2Text() \sa setFooterText(), footerText() */ -QFont KDChartParams::headerFooterFont( uint pos ) const +TQFont KDChartParams::headerFooterFont( uint pos ) const { if ( HdFtPosEND >= pos ) return _hdFtParams[ pos ]._font; else - return QApplication::font(); + return TQApplication::font(); } @@ -7957,7 +7957,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn void KDChartParams::setHeader1Text( const QString& text ) + \fn void KDChartParams::setHeader1Text( const TQString& text ) Specifies the text to be displayed as the first header line. The default is not to display any header text. @@ -7983,7 +7983,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn QString KDChartParams::header1Text() const + \fn TQString KDChartParams::header1Text() const Returns the text that is displayed as the first header line. @@ -8008,7 +8008,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn void KDChartParams::setHeader1Font( const QFont& font ) + \fn void KDChartParams::setHeader1Font( const TQFont& font ) Specifies the font to be used for displaying the first header line. The default is a 14pt Helvetica font. @@ -8037,7 +8037,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn QFont KDChartParams::header1Font() const + \fn TQFont KDChartParams::header1Font() const Returns the font used for displaying the second header line. @@ -8064,7 +8064,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn void KDChartParams::setHeader2Text( const QString& text ) + \fn void KDChartParams::setHeader2Text( const TQString& text ) Specifies the text to be displayed as the second header line. The default is not to display any header text. @@ -8090,7 +8090,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn QString KDChartParams::header2Text() const + \fn TQString KDChartParams::header2Text() const Returns the text that is displayed as the second header line. @@ -8115,7 +8115,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn void KDChartParams::setHeader2Font( const QFont& font ) + \fn void KDChartParams::setHeader2Font( const TQFont& font ) Specifies the font to be used for displaying the second header line. The default is a 12pt Helvetica font. @@ -8144,7 +8144,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn QFont KDChartParams::header2Font() const + \fn TQFont KDChartParams::header2Font() const Returns the font used for displaying the second header line. @@ -8171,7 +8171,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn void KDChartParams::setFooterText( const QString& text ) + \fn void KDChartParams::setFooterText( const TQString& text ) Specifies the text to be displayed as the footer line. The default is not to display any footer text. @@ -8197,7 +8197,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn QString KDChartParams::footerText() const + \fn TQString KDChartParams::footerText() const Returns the text that is displayed as the footer line. @@ -8222,7 +8222,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn void KDChartParams::setFooterFont( const QFont& font ) + \fn void KDChartParams::setFooterFont( const TQFont& font ) Specifies the font to be used for displaying the footer line. The default is a 12pt Helvetica font. @@ -8250,7 +8250,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \fn QFont KDChartParams::footerFont() const + \fn TQFont KDChartParams::footerFont() const Returns the font used for displaying the footer line. @@ -8327,7 +8327,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ /** - \var QFont KDChartParams::_defaultFont; + \var TQFont KDChartParams::_defaultFont; Stores our default font used for many different purposes. */ @@ -8351,7 +8351,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QRect KDChartParams::_noRect; + \var TQRect KDChartParams::_noRect; Stores an empty rectangle. */ @@ -8396,7 +8396,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ /** - \var QMap < uint, QColor > KDChartParams::_dataColors; + \var TQMap < uint, TQColor > KDChartParams::_dataColors; Stores the colors for the datasets. */ @@ -8453,21 +8453,21 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ /** - \var QMap < uint, QColor > KDChartParams::_dataColorsShadow1; + \var TQMap < uint, TQColor > KDChartParams::_dataColorsShadow1; Stores the shadow colors that are somewhat darker than the colors in _dataColors. */ /** - \var QMap < uint, QColor > KDChartParams::_dataColorsShadow2; + \var TQMap < uint, TQColor > KDChartParams::_dataColorsShadow2; Stores the shadow colors that are even more darker than the colors in _dataColorsShadow1; */ /** - \var QColor KDChartParams::_outlineDataColor; + \var TQColor KDChartParams::_outlineDataColor; Stores the color to be used for outlines of data displays. */ @@ -8650,14 +8650,14 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ /** - \var QSize KDChartParams::_lineMarkerSize; + \var TQSize KDChartParams::_lineMarkerSize; Stores the size of the line markers. */ /** - \var QColor KDChartParams::_lineColor; + \var TQColor KDChartParams::_lineColor; Stores the color of lines in line charts. */ @@ -8721,7 +8721,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ /** - \var QSize KDChartParams::_polarMarkerSize; + \var TQSize KDChartParams::_polarMarkerSize; Stores the size of the polar markers. */ @@ -8776,14 +8776,14 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ /** - \var QMap KDChartParams::_explodeFactors; + \var TQMap KDChartParams::_explodeFactors; Stores the list of segment-specific explode factors of pie or ring segments. */ /** - \var QValueList KDChartParams::_explodeList; + \var TQValueList KDChartParams::_explodeList; Stores the list of pies or ring segments to explode. */ @@ -8836,7 +8836,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QFont KDChartParams::_hiLoChartLowValuesFont; + \var TQFont KDChartParams::_hiLoChartLowValuesFont; Stores the font to be used for printing the low values. */ @@ -8859,7 +8859,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QColor KDChartParams::_hiLoChartLowValuesColor; + \var TQColor KDChartParams::_hiLoChartLowValuesColor; Stores the colour of the font size to be used for printing the low values. @@ -8874,7 +8874,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QFont KDChartParams::_hiLoChartHighValuesFont; + \var TQFont KDChartParams::_hiLoChartHighValuesFont; Stores the font to be used for printing the high values. */ @@ -8897,7 +8897,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QColor KDChartParams::_hiLoChartHighValuesColor; + \var TQColor KDChartParams::_hiLoChartHighValuesColor; Stores the colour of the font size to be used for printing the high values. @@ -8912,7 +8912,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QFont KDChartParams::_hiLoChartOpenValuesFont; + \var TQFont KDChartParams::_hiLoChartOpenValuesFont; Stores the font to be used for printing the open values. */ @@ -8935,7 +8935,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QColor KDChartParams::_hiLoChartOpenValuesColor; + \var TQColor KDChartParams::_hiLoChartOpenValuesColor; Stores the colour of the font size to be used for printing the open values. @@ -8950,7 +8950,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QFont KDChartParams::_hiLoChartCloseValuesFont; + \var TQFont KDChartParams::_hiLoChartCloseValuesFont; Stores the font to be used for printing the close values. */ @@ -8973,7 +8973,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QColor KDChartParams::_hiLoChartCloseValuesColor; + \var TQColor KDChartParams::_hiLoChartCloseValuesColor; Stores the colour of the font size to be used for printing the close values. @@ -9018,7 +9018,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QBrush KDChartParams::_BWChartBrush; + \var TQBrush KDChartParams::_BWChartBrush; Stores the brush to be used. */ @@ -9036,20 +9036,20 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ /** - \var QMap < int, QString > KDChartParams::_legendText; + \var TQMap < int, TQString > KDChartParams::_legendText; Stores the manually set legend texts. */ /** - \var QColor KDChartParams::_legendTextColor; + \var TQColor KDChartParams::_legendTextColor; Stores the color for drawing the legend texts. */ /** - \var QFont KDChartParams::_legendFont; + \var TQFont KDChartParams::_legendFont; Stores the font for drawing the legends. */ @@ -9076,21 +9076,21 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const /** - \var QString KDChartParams::_legendTitleText; + \var TQString KDChartParams::_legendTitleText; Stores the legend title text. */ /** - \var QColor KDChartParams::_legendTitleTextColor; + \var TQColor KDChartParams::_legendTitleTextColor; Stores the color for drawing the legend title. */ /** - \var QFont KDChartParams::_legendTitleFont; + \var TQFont KDChartParams::_legendTitleFont; Stores the font for drawing the legend title. */ @@ -9166,7 +9166,7 @@ int KDChartParams::headerFooterFontRelSize( uint pos ) const */ bool KDChartParams::findFirstAxisCustomBoxID( uint n, uint& boxID ) const { - QIntDictIterator it( _customBoxDict ); + TQIntDictIterator it( _customBoxDict ); for( ; it.current(); ++it ){ if( (*it).anchorArea() == KDChartEnums::AreaAxisBASE + n ){ boxID = it.currentKey(); @@ -9177,9 +9177,9 @@ bool KDChartParams::findFirstAxisCustomBoxID( uint n, uint& boxID ) const } void KDChartParams::insertDefaultAxisTitleBox( uint n, - bool setTitle, const QString& axisTitle, - bool setColor, const QColor& axisTitleColor, - bool setFont, const QFont& axisTitleFont, + bool setTitle, const TQString& axisTitle, + bool setColor, const TQColor& axisTitleColor, + bool setFont, const TQFont& axisTitleFont, bool setFontUseRelSize, bool axisTitleFontUseRelSize, bool setFontRelSize, int axisTitleFontRelSize ) { @@ -9203,18 +9203,18 @@ void KDChartParams::insertDefaultAxisTitleBox( uint n, b3rd = true; break; } - const QFont defaultFont( "helvetica", 6, QFont::Normal, false ); + const TQFont defaultFont( "helvetica", 6, TQFont::Normal, false ); // SGI IRIX: Compiling error. - // QString titleString( setTitle ? axisTitle : "

    " ); - QString titleString; + // TQString titleString( setTitle ? axisTitle : "
    " ); + TQString titleString; if( setTitle ) titleString = axisTitle; else titleString = "
    "; - const QString stripTitleString( titleString.simplifyWhiteSpace().upper() ); + const TQString stripTitleString( titleString.simplifyWhiteSpace().upper() ); if( setTitle ){ if( !stripTitleString.startsWith("" ) ) titleString.prepend("
    "); @@ -9238,19 +9238,16 @@ void KDChartParams::insertDefaultAxisTitleBox( uint n, true, 0, 0, 0, 0, - setColor ? axisTitleColor : Qt::darkBlue, + setColor ? axisTitleColor : TQt::darkBlue, Qt::NoBrush, KDChartEnums::AreaAxisBASE + n, - bVert ? KDChartEnums::PosCenterLeft : KDChartEnums::PosBottomCenter, bVert ? (Qt::AlignTop + Qt::AlignHCenter) : (Qt::AlignBottom + Qt::AlignHCenter), + bVert ? KDChartEnums::PosCenterLeft : KDChartEnums::PosBottomCenter, bVert ? (TQt::AlignTop + TQt::AlignHCenter) : (TQt::AlignBottom + TQt::AlignHCenter), 0,0,0, - bVert ? (Qt::AlignBottom + Qt::AlignRight) : (Qt::AlignTop + Qt::AlignHCenter), + bVert ? (TQt::AlignBottom + TQt::AlignRight) : (TQt::AlignTop + TQt::AlignHCenter), false, n ); customBox.setParentAxisArea( n ); - insertCustomBox( customBox ); - // J.Rodehuser: delete the unused variable 'id' - // const uint id = insertCustomBox( customBox ); - + const uint id = insertCustomBox( customBox ); /*debugging Title box*/ /* setSimpleFrame( @@ -9262,8 +9259,8 @@ void KDChartParams::insertDefaultAxisTitleBox( uint n, KDFrame::FrameFlat, 1, 0, - Qt::red, - QBrush( QColor ( 255,248,222 ) ) ); + TQt::red, + TQBrush( TQColor ( 255,248,222 ) ) ); */ } @@ -9276,15 +9273,15 @@ void KDChartParams::insertDefaultAxisTitleBox( uint n, \sa setAxisTitleColor,setAxisTitleFont,setAxisTitleFontUseRelSize, setAxisTitleFontRelSize \sa axisTitle, axisTitleColor, axisTitleFont, axisTitleFontUseRelSize, axisTitleFontRelSize */ -void KDChartParams::setAxisTitle( uint n, const QString& axisTitle ) +void KDChartParams::setAxisTitle( uint n, const TQString& axisTitle ) { bool bDone = false; uint boxID; if( findFirstAxisCustomBoxID( n, boxID ) ){ KDChartCustomBox* box = (KDChartCustomBox*)customBox( boxID ); if( box ){ - QString title = axisTitle; - const QString stripTitleString( title.simplifyWhiteSpace().upper() ); + TQString title = axisTitle; + const TQString stripTitleString( title.simplifyWhiteSpace().upper() ); if( !stripTitleString.startsWith("" ) ) title.prepend("
    "); if( !stripTitleString.endsWith("" ) ) @@ -9301,8 +9298,8 @@ void KDChartParams::setAxisTitle( uint n, const QString& axisTitle ) if( !bDone ){ insertDefaultAxisTitleBox( n, true, axisTitle, - false, QColor(), - false, QFont(), + false, TQColor(), + false, TQFont(), false, false, false, 0 ); //qDebug("new Axis Title Box inserted"); @@ -9315,7 +9312,7 @@ void KDChartParams::setAxisTitle( uint n, const QString& axisTitle ) \return the axis title text. \sa setAxisTitle */ -QString KDChartParams::axisTitle( uint n ) const +TQString KDChartParams::axisTitle( uint n ) const { uint boxID; if( findFirstAxisCustomBoxID( n, boxID ) ){ @@ -9323,7 +9320,7 @@ QString KDChartParams::axisTitle( uint n ) const if( box ) return box->content().text(); } - return QString(); + return TQString(); } /** @@ -9333,7 +9330,7 @@ QString KDChartParams::axisTitle( uint n ) const \sa setAxisTitle, setAxisTitleFont,setAxisTitleFontUseRelSize, setAxisTitleFontRelSize \sa axisTitle, axisTitleColor, axisTitleFont, axisTitleFontUseRelSize, axisTitleFontRelSize */ -void KDChartParams::setAxisTitleColor( uint n, QColor axisTitleColor ) +void KDChartParams::setAxisTitleColor( uint n, TQColor axisTitleColor ) { bool bDone = false; uint boxID; @@ -9346,9 +9343,9 @@ void KDChartParams::setAxisTitleColor( uint n, QColor axisTitleColor ) } if( !bDone ) insertDefaultAxisTitleBox( n, - false, QString(), + false, TQString(), true, axisTitleColor, - false, QFont(), + false, TQFont(), false, false, false, 0 ); emit changed(); @@ -9359,7 +9356,7 @@ void KDChartParams::setAxisTitleColor( uint n, QColor axisTitleColor ) \return the color of the axis title text. \sa setAxisTitleColor */ -QColor KDChartParams::axisTitleColor( uint n ) const +TQColor KDChartParams::axisTitleColor( uint n ) const { uint boxID; if( findFirstAxisCustomBoxID( n, boxID ) ){ @@ -9367,7 +9364,7 @@ QColor KDChartParams::axisTitleColor( uint n ) const if( box ) return box->color(); } - return Qt::darkBlue; + return TQt::darkBlue; } /** @@ -9380,7 +9377,7 @@ QColor KDChartParams::axisTitleColor( uint n ) const \sa axisTitle, axisTitleColor, axisTitleFont, axisTitleFontUseRelSize, axisTitleFontRelSize */ void KDChartParams::setAxisTitleFont( uint n, - QFont axisTitleFont ) + TQFont axisTitleFont ) { bool bDone = false; uint boxID; @@ -9395,8 +9392,8 @@ void KDChartParams::setAxisTitleFont( uint n, } if( !bDone ) insertDefaultAxisTitleBox( n, - false, QString(), - false, QColor(), + false, TQString(), + false, TQColor(), true, axisTitleFont, false, false, false, 0 ); @@ -9413,7 +9410,7 @@ void KDChartParams::setAxisTitleFont( uint n, */ void KDChartParams::setAxisTitleFont( uint n, - QFont axisTitleFont, + TQFont axisTitleFont, bool useFixedFontSize ) { @@ -9432,8 +9429,8 @@ void KDChartParams::setAxisTitleFont( uint n, } if( !bDone ) insertDefaultAxisTitleBox( n, - false, QString(), - false, QColor(), + false, TQString(), + false, TQColor(), true, axisTitleFont, false, false, false, 0 ); @@ -9452,7 +9449,7 @@ void KDChartParams::setAxisTitleFont( uint n, \return the axis title's font. \sa setAxisTitleFont */ -QFont KDChartParams::axisTitleFont( uint n ) const +TQFont KDChartParams::axisTitleFont( uint n ) const { uint boxID; if( findFirstAxisCustomBoxID( n, boxID ) ){ @@ -9460,7 +9457,7 @@ QFont KDChartParams::axisTitleFont( uint n ) const if( box ) return box->content().font(); } - return QFont( "helvetica", 6, QFont::Normal, false ); + return TQFont( "helvetica", 6, TQFont::Normal, false ); } /** @@ -9492,9 +9489,9 @@ void KDChartParams::setAxisTitleFontUseRelSize( uint n, } if( !bDone ) insertDefaultAxisTitleBox( n, - false, QString(), - false, QColor(), - false, QFont(), + false, TQString(), + false, TQColor(), + false, TQFont(), true, axisTitleFontUseRelSize, false, 0 ); emit changed(); @@ -9539,9 +9536,9 @@ void KDChartParams::setAxisTitleFontRelSize( uint n, } if( !bDone ) insertDefaultAxisTitleBox( n, - false, QString(), - false, QColor(), - false, QFont(), + false, TQString(), + false, TQColor(), + false, TQFont(), true, true, true, axisTitleFontRelSize ); emit changed(); -- cgit v1.2.1