summaryrefslogtreecommitdiffstats
path: root/kmymoney2/reports/kreportchartview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/reports/kreportchartview.cpp')
-rw-r--r--kmymoney2/reports/kreportchartview.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmymoney2/reports/kreportchartview.cpp b/kmymoney2/reports/kreportchartview.cpp
index 21b08fa..e9c9060 100644
--- a/kmymoney2/reports/kreportchartview.cpp
+++ b/kmymoney2/reports/kreportchartview.cpp
@@ -34,12 +34,12 @@
using namespace reports;
-KReportChartView::KReportChartView( QWidget* parent, const char* name ): KDChartWidget(parent,name)
+KReportChartView::KReportChartView( TQWidget* tqparent, const char* name ): KDChartWidget(tqparent,name)
{
// ********************************************************************
// Set KMyMoney's Chart Parameter Defaults
// ********************************************************************
- this->setPaletteBackgroundColor( Qt::white );
+ this->setPaletteBackgroundColor( TQt::white );
KDChartParams* _params = new KDChartParams();
_params->setChartType( KDChartParams::Line );
@@ -49,7 +49,7 @@ KReportChartView::KReportChartView( QWidget* parent, const char* name ): KDChart
/**
// use line marker, but only circles.
_params->setLineMarker( true );
- _params->setLineMarkerSize( QSize(8,8) );
+ _params->setLineMarkerSize( TQSize(8,8) );
_params->setLineMarkerStyle( 0, KDChartParams::LineMarkerCircle );
_params->setLineMarkerStyle( 1, KDChartParams::LineMarkerCircle );
_params->setLineMarkerStyle( 2, KDChartParams::LineMarkerCircle );
@@ -90,21 +90,21 @@ KReportChartView::KReportChartView( QWidget* parent, const char* name ): KDChart
// ********************************************************************
// Tooltip Setup
// ********************************************************************
- label = new QLabel( this );
+ label = new TQLabel( this );
label->hide();
- // mouse tracking on will force the mouseMoveEvent() method to be called from Qt
+ // mouse tracking on will force the mouseMoveEvent() method to be called from TQt
label->setMouseTracking( true );
- label->setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
- label->setAlignment( AlignRight );
+ label->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised );
+ label->tqsetAlignment( AlignRight );
label->setAutoResize( true );
}
/**
* This function implements mouseMoveEvents
*/
-void KReportChartView::mouseMoveEvent( QMouseEvent* event )
+void KReportChartView::mouseMoveEvent( TQMouseEvent* event )
{
- QPoint translate, pos; // some movement helpers
+ TQPoint translate, pos; // some movement helpers
uint dataset; // the current dataset (eg. category)
uint datasets; // the total number of datasets
double value; // the value of the region
@@ -121,10 +121,10 @@ void KReportChartView::mouseMoveEvent( QMouseEvent* event )
// ..by going through every data region and checking whether it
// contains the mouse pointer
KDChartDataRegion* current = 0;
- QPtrListIterator < KDChartDataRegion > it( *(this->dataRegions()) );
+ TQPtrListIterator < KDChartDataRegion > it( *(this->dataRegions()) );
while ( ( current = it.current() ) ) {
++it;
- if ( current->contains( event->pos() ) )
+ if ( current->tqcontains( event->pos() ) )
{
// we found the data region that contains the mouse
value = this->data()->cellVal(current->row, current->col).toDouble();
@@ -150,18 +150,18 @@ void KReportChartView::mouseMoveEvent( QMouseEvent* event )
if(datasets > 1)
{
// set the tooltip text
- label->setText(QString("<h2>%1</h2><strong>%2</strong><br>(%3\%)")
- .arg(this->params()->legendText( dataset ))
- .arg(value, 0, 'f', 2)
- .arg(pivot_sum, 0, 'f', 2)
+ label->setText(TQString("<h2>%1</h2><strong>%2</strong><br>(%3\%)")
+ .tqarg(this->params()->legendText( dataset ))
+ .tqarg(value, 0, 'f', 2)
+ .tqarg(pivot_sum, 0, 'f', 2)
);
}
else // if there is only one dataset, don't show percentage
{
// set the tooltip text
- label->setText(QString("<h2>%1</h2><strong>%2</strong>")
- .arg(this->params()->legendText( dataset ))
- .arg(value, 0, 'f', 2)
+ label->setText(TQString("<h2>%1</h2><strong>%2</strong>")
+ .tqarg(this->params()->legendText( dataset ))
+ .tqarg(value, 0, 'f', 2)
);
}