summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp')
-rw-r--r--ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp b/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp
index ef53bab75..7e7e15d7d 100644
--- a/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp
+++ b/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp
@@ -65,7 +65,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout->addWidget( mTitle, 0, 1 );
label->setBuddy( mTitle );
- TQButtonGroup *buttonBox = new TQButtonGroup( 2, Qt::Vertical,
+ TQButtonGroup *buttonBox = new TQButtonGroup( 2, TQt::Vertical,
i18n( "Graph Drawing Style" ), page );
mUsePolygonStyle = new TQRadioButton( i18n( "Basic polygons" ), buttonBox );
@@ -78,7 +78,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
page = addPage( i18n( "Scales" ) );
pageLayout = new TQGridLayout( page, 2, 1, 0, spacingHint() );
- groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Vertical Scale" ), page );
+ groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Vertical Scale" ), page );
boxLayout = new TQGridLayout( groupBox->layout(), 2, 5, spacingHint() );
boxLayout->setColStretch( 2, 1 );
@@ -108,7 +108,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout->addWidget( groupBox, 0, 0 );
- groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Horizontal Scale" ), page );
+ groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Horizontal Scale" ), page );
boxLayout = new TQGridLayout( groupBox->layout(), 2, 2, spacingHint() );
boxLayout->setRowStretch( 1, 1 );
@@ -126,7 +126,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
page = addPage( i18n( "Grid" ) );
pageLayout = new TQGridLayout( page, 3, 2, 0, spacingHint() );
- groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Lines" ), page );
+ groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Lines" ), page );
boxLayout = new TQGridLayout( groupBox->layout(), 2, 5, spacingHint() );
boxLayout->setColStretch( 1, 1 );
@@ -165,7 +165,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout->addMultiCellWidget( groupBox, 0, 0, 0, 1 );
- groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Text" ), page );
+ groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Text" ), page );
boxLayout = new TQGridLayout( groupBox->layout(), 3, 4, spacingHint() );
boxLayout->setColStretch( 1, 1 );
@@ -190,7 +190,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout->addWidget( groupBox, 1, 0 );
- groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Colors" ), page );
+ groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Colors" ), page );
boxLayout = new TQGridLayout( groupBox->layout(), 4, 2, spacingHint() );
label = new TQLabel( i18n( "Vertical lines:" ), groupBox );
@@ -257,30 +257,30 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
mMoveDownButton->setEnabled( false );
pageLayout->addWidget( mMoveDownButton, 4, 1 );
- connect( mUseAutoRange, TQT_SIGNAL( toggled( bool ) ), mMinValue,
- TQT_SLOT( setDisabled( bool ) ) );
- connect( mUseAutoRange, TQT_SIGNAL( toggled( bool ) ), mMaxValue,
- TQT_SLOT( setDisabled( bool ) ) );
- connect( mShowVerticalLines, TQT_SIGNAL( toggled( bool ) ), mVerticalLinesDistance,
- TQT_SLOT( setEnabled( bool ) ) );
- connect( mShowVerticalLines, TQT_SIGNAL( toggled( bool ) ), mVerticalLinesScroll,
- TQT_SLOT( setEnabled( bool ) ) );
- connect( mShowVerticalLines, TQT_SIGNAL( toggled( bool ) ), mVerticalLinesColor,
- TQT_SLOT( setEnabled( bool ) ) );
- connect( mShowHorizontalLines, TQT_SIGNAL( toggled( bool ) ), mHorizontalLinesCount,
- TQT_SLOT( setEnabled( bool ) ) );
- connect( mShowHorizontalLines, TQT_SIGNAL( toggled( bool ) ), mHorizontalLinesColor,
- TQT_SLOT( setEnabled( bool ) ) );
- connect( mShowHorizontalLines, TQT_SIGNAL( toggled( bool ) ), mShowLabels,
- TQT_SLOT( setEnabled( bool ) ) );
- connect( mSensorView, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
- TQT_SLOT( selectionChanged( TQListViewItem* ) ) );
-
- connect( mEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( editSensor() ) );
- connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( removeSensor() ) );
- connect( mMoveUpButton, TQT_SIGNAL( clicked() ), TQT_SLOT( moveUpSensor() ) );
- connect( mMoveDownButton, TQT_SIGNAL( clicked() ), TQT_SLOT( moveDownSensor() ) );
- connect ( mSensorView, TQT_SIGNAL( doubleClicked( TQListViewItem *, const TQPoint &, int )), TQT_SLOT(editSensor()));
+ connect( mUseAutoRange, TQ_SIGNAL( toggled( bool ) ), mMinValue,
+ TQ_SLOT( setDisabled( bool ) ) );
+ connect( mUseAutoRange, TQ_SIGNAL( toggled( bool ) ), mMaxValue,
+ TQ_SLOT( setDisabled( bool ) ) );
+ connect( mShowVerticalLines, TQ_SIGNAL( toggled( bool ) ), mVerticalLinesDistance,
+ TQ_SLOT( setEnabled( bool ) ) );
+ connect( mShowVerticalLines, TQ_SIGNAL( toggled( bool ) ), mVerticalLinesScroll,
+ TQ_SLOT( setEnabled( bool ) ) );
+ connect( mShowVerticalLines, TQ_SIGNAL( toggled( bool ) ), mVerticalLinesColor,
+ TQ_SLOT( setEnabled( bool ) ) );
+ connect( mShowHorizontalLines, TQ_SIGNAL( toggled( bool ) ), mHorizontalLinesCount,
+ TQ_SLOT( setEnabled( bool ) ) );
+ connect( mShowHorizontalLines, TQ_SIGNAL( toggled( bool ) ), mHorizontalLinesColor,
+ TQ_SLOT( setEnabled( bool ) ) );
+ connect( mShowHorizontalLines, TQ_SIGNAL( toggled( bool ) ), mShowLabels,
+ TQ_SLOT( setEnabled( bool ) ) );
+ connect( mSensorView, TQ_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ TQ_SLOT( selectionChanged( TQListViewItem* ) ) );
+
+ connect( mEditButton, TQ_SIGNAL( clicked() ), TQ_SLOT( editSensor() ) );
+ connect( mRemoveButton, TQ_SIGNAL( clicked() ), TQ_SLOT( removeSensor() ) );
+ connect( mMoveUpButton, TQ_SIGNAL( clicked() ), TQ_SLOT( moveUpSensor() ) );
+ connect( mMoveDownButton, TQ_SIGNAL( clicked() ), TQ_SLOT( moveDownSensor() ) );
+ connect ( mSensorView, TQ_SIGNAL( doubleClicked( TQListViewItem *, const TQPoint &, int )), TQ_SLOT(editSensor()));
TDEAcceleratorManager::manage( this );
}
@@ -531,7 +531,7 @@ TQValueList< TQStringList > FancyPlotterSettings::sensors() const
entry << it.current()->text( 2 );
entry << it.current()->text( 3 );
entry << it.current()->text( 4 );
- QRgb rgb = it.current()->pixmap( 2 )->convertToImage().pixel( 1, 1 );
+ TQRgb rgb = it.current()->pixmap( 2 )->convertToImage().pixel( 1, 1 );
TQColor color( tqRed( rgb ), tqGreen( rgb ), tqBlue( rgb ) );
entry << ( color.name() );