summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc')
-rw-r--r--ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc252
1 files changed, 126 insertions, 126 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc b/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc
index 9d4114bd3..de345e7b8 100644
--- a/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc
+++ b/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc
@@ -29,87 +29,87 @@
#include <klocale.h>
#include <knuminput.h>
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
-#include <qimage.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qwhatsthis.h>
-#include <qheader.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
+#include <tqgroupbox.h>
+#include <tqimage.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqwhatsthis.h>
+#include <tqheader.h>
#include "FancyPlotterSettings.h"
-FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, const char* name )
+FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
: KDialogBase( Tabbed, i18n( "Signal Plotter Settings" ), Ok | Apply | Cancel,
Ok, parent, name, false, true )
{
- QFrame *page = 0;
- QGridLayout *pageLayout = 0;
- QGridLayout *boxLayout = 0;
- QGroupBox *groupBox = 0;
- QLabel *label = 0;
+ TQFrame *page = 0;
+ TQGridLayout *pageLayout = 0;
+ TQGridLayout *boxLayout = 0;
+ TQGroupBox *groupBox = 0;
+ TQLabel *label = 0;
// Style page
page = addPage( i18n( "Style" ) );
- pageLayout = new QGridLayout( page, 3, 2, 0, spacingHint() );
+ pageLayout = new TQGridLayout( page, 3, 2, 0, spacingHint() );
- label = new QLabel( i18n( "Title:" ), page );
+ label = new TQLabel( i18n( "Title:" ), page );
pageLayout->addWidget( label, 0, 0 );
mTitle = new KLineEdit( page );
- QWhatsThis::add( mTitle, i18n( "Enter the title of the display here." ) );
+ TQWhatsThis::add( mTitle, i18n( "Enter the title of the display here." ) );
pageLayout->addWidget( mTitle, 0, 1 );
label->setBuddy( mTitle );
- QButtonGroup *buttonBox = new QButtonGroup( 2, Qt::Vertical,
+ TQButtonGroup *buttonBox = new TQButtonGroup( 2, Qt::Vertical,
i18n( "Graph Drawing Style" ), page );
- mUsePolygonStyle = new QRadioButton( i18n( "Basic polygons" ), buttonBox );
+ mUsePolygonStyle = new TQRadioButton( i18n( "Basic polygons" ), buttonBox );
mUsePolygonStyle->setChecked( true );
- mUseOriginalStyle = new QRadioButton( i18n( "Original - single line per data point" ), buttonBox );
+ mUseOriginalStyle = new TQRadioButton( i18n( "Original - single line per data point" ), buttonBox );
pageLayout->addMultiCellWidget( buttonBox, 1, 1, 0, 1 );
// Scales page
page = addPage( i18n( "Scales" ) );
- pageLayout = new QGridLayout( page, 2, 1, 0, spacingHint() );
+ pageLayout = new TQGridLayout( page, 2, 1, 0, spacingHint() );
- groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Vertical Scale" ), page );
- boxLayout = new QGridLayout( groupBox->layout(), 2, 5, spacingHint() );
+ groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Vertical Scale" ), page );
+ boxLayout = new TQGridLayout( groupBox->layout(), 2, 5, spacingHint() );
boxLayout->setColStretch( 2, 1 );
- mUseAutoRange = new QCheckBox( i18n( "Automatic range detection" ), groupBox );
- QWhatsThis::add( mUseAutoRange, i18n( "Check this box if you want the display range to adapt dynamically to the currently displayed values; if you do not check this, you have to specify the range you want in the fields below." ) );
+ mUseAutoRange = new TQCheckBox( i18n( "Automatic range detection" ), groupBox );
+ TQWhatsThis::add( mUseAutoRange, i18n( "Check this box if you want the display range to adapt dynamically to the currently displayed values; if you do not check this, you have to specify the range you want in the fields below." ) );
boxLayout->addMultiCellWidget( mUseAutoRange, 0, 0, 0, 4 );
- label = new QLabel( i18n( "Minimum value:" ), groupBox );
+ label = new TQLabel( i18n( "Minimum value:" ), groupBox );
boxLayout->addWidget( label, 1, 0 );
mMinValue = new KLineEdit( groupBox );
mMinValue->setAlignment( AlignRight );
mMinValue->setEnabled( false );
- QWhatsThis::add( mMinValue, i18n( "Enter the minimum value for the display here. If both values are 0, automatic range detection is enabled." ) );
+ TQWhatsThis::add( mMinValue, i18n( "Enter the minimum value for the display here. If both values are 0, automatic range detection is enabled." ) );
boxLayout->addWidget( mMinValue, 1, 1 );
label->setBuddy( mMinValue );
- label = new QLabel( i18n( "Maximum value:" ), groupBox );
+ label = new TQLabel( i18n( "Maximum value:" ), groupBox );
boxLayout->addWidget( label, 1, 3 );
mMaxValue = new KLineEdit( groupBox );
mMaxValue->setAlignment( AlignRight );
mMaxValue->setEnabled( false );
- QWhatsThis::add( mMaxValue, i18n( "Enter the maximum value for the display here. If both values are 0, automatic range detection is enabled." ) );
+ TQWhatsThis::add( mMaxValue, i18n( "Enter the maximum value for the display here. If both values are 0, automatic range detection is enabled." ) );
boxLayout->addWidget( mMaxValue, 1, 4 );
label->setBuddy( mMaxValue );
pageLayout->addWidget( groupBox, 0, 0 );
- groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Horizontal Scale" ), page );
- boxLayout = new QGridLayout( groupBox->layout(), 2, 2, spacingHint() );
+ groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Horizontal Scale" ), page );
+ boxLayout = new TQGridLayout( groupBox->layout(), 2, 2, spacingHint() );
boxLayout->setRowStretch( 1, 1 );
mHorizontalScale = new KIntNumInput( 1, groupBox );
@@ -117,47 +117,47 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, const char* name )
mHorizontalScale->setMaxValue( 50 );
boxLayout->addWidget( mHorizontalScale, 0, 0 );
- label = new QLabel( i18n( "pixel(s) per time period" ), groupBox );
+ label = new TQLabel( i18n( "pixel(s) per time period" ), groupBox );
boxLayout->addWidget( label, 0, 1 );
pageLayout->addWidget( groupBox, 1, 0 );
// Grid page
page = addPage( i18n( "Grid" ) );
- pageLayout = new QGridLayout( page, 3, 2, 0, spacingHint() );
+ pageLayout = new TQGridLayout( page, 3, 2, 0, spacingHint() );
- groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Lines" ), page );
- boxLayout = new QGridLayout( groupBox->layout(), 2, 5, spacingHint() );
+ groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Lines" ), page );
+ boxLayout = new TQGridLayout( groupBox->layout(), 2, 5, spacingHint() );
boxLayout->setColStretch( 1, 1 );
- mShowVerticalLines = new QCheckBox( i18n( "Vertical lines" ), groupBox );
- QWhatsThis::add( mShowVerticalLines, i18n( "Check this to activate the vertical lines if display is large enough." ) );
+ mShowVerticalLines = new TQCheckBox( i18n( "Vertical lines" ), groupBox );
+ TQWhatsThis::add( mShowVerticalLines, i18n( "Check this to activate the vertical lines if display is large enough." ) );
boxLayout->addWidget( mShowVerticalLines, 0, 0 );
- label = new QLabel( i18n( "Distance:" ), groupBox );
+ label = new TQLabel( i18n( "Distance:" ), groupBox );
boxLayout->addWidget( label, 0, 2 );
mVerticalLinesDistance = new KIntNumInput( 0, groupBox );
mVerticalLinesDistance->setMinValue( 10 );
mVerticalLinesDistance->setMaxValue( 120 );
- QWhatsThis::add( mVerticalLinesDistance, i18n( "Enter the distance between two vertical lines here." ) );
+ TQWhatsThis::add( mVerticalLinesDistance, i18n( "Enter the distance between two vertical lines here." ) );
boxLayout->addWidget( mVerticalLinesDistance , 0, 3 );
label->setBuddy( mVerticalLinesDistance );
- mVerticalLinesScroll = new QCheckBox( i18n( "Vertical lines scroll" ), groupBox );
+ mVerticalLinesScroll = new TQCheckBox( i18n( "Vertical lines scroll" ), groupBox );
boxLayout->addWidget( mVerticalLinesScroll, 0, 4 );
- mShowHorizontalLines = new QCheckBox( i18n( "Horizontal lines" ), groupBox );
- QWhatsThis::add( mShowHorizontalLines, i18n( "Check this to enable horizontal lines if display is large enough." ) );
+ mShowHorizontalLines = new TQCheckBox( i18n( "Horizontal lines" ), groupBox );
+ TQWhatsThis::add( mShowHorizontalLines, i18n( "Check this to enable horizontal lines if display is large enough." ) );
boxLayout->addWidget( mShowHorizontalLines, 1, 0 );
- label = new QLabel( i18n( "Count:" ), groupBox );
+ label = new TQLabel( i18n( "Count:" ), groupBox );
boxLayout->addWidget( label, 1, 2 );
mHorizontalLinesCount = new KIntNumInput( 0, groupBox );
mHorizontalLinesCount->setMinValue( 1 );
mHorizontalLinesCount->setMaxValue( 100 );
- QWhatsThis::add( mHorizontalLinesCount, i18n( "Enter the number of horizontal lines here." ) );
+ TQWhatsThis::add( mHorizontalLinesCount, i18n( "Enter the number of horizontal lines here." ) );
boxLayout->addWidget( mHorizontalLinesCount , 1, 3 );
label->setBuddy( mHorizontalLinesCount );
@@ -165,15 +165,15 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, const char* name )
pageLayout->addMultiCellWidget( groupBox, 0, 0, 0, 1 );
- groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Text" ), page );
- boxLayout = new QGridLayout( groupBox->layout(), 3, 4, spacingHint() );
+ groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Text" ), page );
+ boxLayout = new TQGridLayout( groupBox->layout(), 3, 4, spacingHint() );
boxLayout->setColStretch( 1, 1 );
- mShowLabels = new QCheckBox( i18n( "Labels" ), groupBox );
- QWhatsThis::add( mShowLabels, i18n( "Check this box if horizontal lines should be decorated with the values they mark." ) );
+ mShowLabels = new TQCheckBox( i18n( "Labels" ), groupBox );
+ TQWhatsThis::add( mShowLabels, i18n( "Check this box if horizontal lines should be decorated with the values they mark." ) );
boxLayout->addWidget( mShowLabels, 0, 0 );
- label = new QLabel( i18n( "Font size:" ), groupBox );
+ label = new TQLabel( i18n( "Font size:" ), groupBox );
boxLayout->addWidget( label, 0, 2 );
mFontSize = new KIntNumInput( 9, groupBox );
@@ -182,32 +182,32 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, const char* name )
boxLayout->addWidget( mFontSize, 0, 3 );
label->setBuddy( mFontSize );
- mShowTopBar = new QCheckBox( i18n( "Top bar" ), groupBox );
- QWhatsThis::add( mShowTopBar, i18n( "Check this to active the display title bar. This is probably only useful for applet displays. The bar is only visible if the display is large enough." ) );
+ mShowTopBar = new TQCheckBox( i18n( "Top bar" ), groupBox );
+ TQWhatsThis::add( mShowTopBar, i18n( "Check this to active the display title bar. This is probably only useful for applet displays. The bar is only visible if the display is large enough." ) );
boxLayout->addWidget( mShowTopBar, 1, 0 );
boxLayout->setRowStretch( 2, 1 );
pageLayout->addWidget( groupBox, 1, 0 );
- groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Colors" ), page );
- boxLayout = new QGridLayout( groupBox->layout(), 4, 2, spacingHint() );
+ groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Colors" ), page );
+ boxLayout = new TQGridLayout( groupBox->layout(), 4, 2, spacingHint() );
- label = new QLabel( i18n( "Vertical lines:" ), groupBox );
+ label = new TQLabel( i18n( "Vertical lines:" ), groupBox );
boxLayout->addWidget( label, 0, 0 );
mVerticalLinesColor = new KColorButton( groupBox );
boxLayout->addWidget( mVerticalLinesColor, 0, 1 );
label->setBuddy( mVerticalLinesColor );
- label = new QLabel( i18n( "Horizontal lines:" ), groupBox );
+ label = new TQLabel( i18n( "Horizontal lines:" ), groupBox );
boxLayout->addWidget( label, 1, 0 );
mHorizontalLinesColor = new KColorButton( groupBox );
boxLayout->addWidget( mHorizontalLinesColor, 1, 1 );
label->setBuddy( mHorizontalLinesColor );
- label = new QLabel( i18n( "Background:" ), groupBox );
+ label = new TQLabel( i18n( "Background:" ), groupBox );
boxLayout->addWidget( label, 2, 0 );
mBackgroundColor = new KColorButton( groupBox );
@@ -222,7 +222,7 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, const char* name )
// Sensors page
page = addPage( i18n( "Sensors" ) );
- pageLayout = new QGridLayout( page, 6, 2, 0, spacingHint() );
+ pageLayout = new TQGridLayout( page, 6, 2, 0, spacingHint() );
pageLayout->setRowStretch( 2, 1 );
pageLayout->setRowStretch( 5, 1 );
@@ -232,55 +232,55 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, const char* name )
mSensorView->addColumn( i18n( "Sensor" ) );
mSensorView->addColumn( i18n( "Unit" ) );
mSensorView->addColumn( i18n( "Status" ) );
- mSensorView->setResizeMode(QListView::LastColumn);
+ mSensorView->setResizeMode(TQListView::LastColumn);
mSensorView->header()->setResizeEnabled(false, 0);
mSensorView->hideColumn(0);
mSensorView->header()->resizeSection(0, 0);
mSensorView->setAllColumnsShowFocus( true );
pageLayout->addMultiCellWidget( mSensorView, 0, 5, 0, 0 );
mSensorView->setSortColumn ( -1 );
- mEditButton = new QPushButton( i18n( "Set Color..." ), page );
+ mEditButton = new TQPushButton( i18n( "Set Color..." ), page );
mEditButton->setEnabled( false );
- QWhatsThis::add( mEditButton, i18n( "Push this button to configure the color of the sensor in the diagram." ) );
+ TQWhatsThis::add( mEditButton, i18n( "Push this button to configure the color of the sensor in the diagram." ) );
pageLayout->addWidget( mEditButton, 0, 1 );
- mRemoveButton = new QPushButton( i18n( "Delete" ), page );
+ mRemoveButton = new TQPushButton( i18n( "Delete" ), page );
mRemoveButton->setEnabled( false );
- QWhatsThis::add( mRemoveButton, i18n( "Push this button to delete the sensor." ) );
+ TQWhatsThis::add( mRemoveButton, i18n( "Push this button to delete the sensor." ) );
pageLayout->addWidget( mRemoveButton, 1, 1 );
- mMoveUpButton = new QPushButton( i18n( "Move Up" ), page );
+ mMoveUpButton = new TQPushButton( i18n( "Move Up" ), page );
mMoveUpButton->setEnabled( false );
pageLayout->addWidget( mMoveUpButton, 3, 1 );
- mMoveDownButton = new QPushButton( i18n( "Move Down" ), page );
+ mMoveDownButton = new TQPushButton( i18n( "Move Down" ), page );
mMoveDownButton->setEnabled( false );
pageLayout->addWidget( mMoveDownButton, 4, 1 );
- connect( mUseAutoRange, SIGNAL( toggled( bool ) ), mMinValue,
- SLOT( setDisabled( bool ) ) );
- connect( mUseAutoRange, SIGNAL( toggled( bool ) ), mMaxValue,
- SLOT( setDisabled( bool ) ) );
- connect( mShowVerticalLines, SIGNAL( toggled( bool ) ), mVerticalLinesDistance,
- SLOT( setEnabled( bool ) ) );
- connect( mShowVerticalLines, SIGNAL( toggled( bool ) ), mVerticalLinesScroll,
- SLOT( setEnabled( bool ) ) );
- connect( mShowVerticalLines, SIGNAL( toggled( bool ) ), mVerticalLinesColor,
- SLOT( setEnabled( bool ) ) );
- connect( mShowHorizontalLines, SIGNAL( toggled( bool ) ), mHorizontalLinesCount,
- SLOT( setEnabled( bool ) ) );
- connect( mShowHorizontalLines, SIGNAL( toggled( bool ) ), mHorizontalLinesColor,
- SLOT( setEnabled( bool ) ) );
- connect( mShowHorizontalLines, SIGNAL( toggled( bool ) ), mShowLabels,
- SLOT( setEnabled( bool ) ) );
- connect( mSensorView, SIGNAL( selectionChanged( QListViewItem* ) ),
- SLOT( selectionChanged( QListViewItem* ) ) );
-
- connect( mEditButton, SIGNAL( clicked() ), SLOT( editSensor() ) );
- connect( mRemoveButton, SIGNAL( clicked() ), SLOT( removeSensor() ) );
- connect( mMoveUpButton, SIGNAL( clicked() ), SLOT( moveUpSensor() ) );
- connect( mMoveDownButton, SIGNAL( clicked() ), SLOT( moveDownSensor() ) );
- connect ( mSensorView, SIGNAL( doubleClicked( QListViewItem *, const QPoint &, int )), SLOT(editSensor()));
+ 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()));
KAcceleratorManager::manage( this );
}
@@ -289,12 +289,12 @@ FancyPlotterSettings::~FancyPlotterSettings()
{
}
-void FancyPlotterSettings::setTitle( const QString &title )
+void FancyPlotterSettings::setTitle( const TQString &title )
{
mTitle->setText( title );
}
-QString FancyPlotterSettings::title() const
+TQString FancyPlotterSettings::title() const
{
return mTitle->text();
}
@@ -313,7 +313,7 @@ bool FancyPlotterSettings::useAutoRange() const
void FancyPlotterSettings::setMinValue( double min )
{
- mMinValue->setText( QString::number( min ) );
+ mMinValue->setText( TQString::number( min ) );
}
double FancyPlotterSettings::minValue() const
@@ -323,7 +323,7 @@ double FancyPlotterSettings::minValue() const
void FancyPlotterSettings::setMaxValue( double max )
{
- mMaxValue->setText( QString::number( max ) );
+ mMaxValue->setText( TQString::number( max ) );
}
double FancyPlotterSettings::maxValue() const
@@ -367,12 +367,12 @@ bool FancyPlotterSettings::showVerticalLines() const
return mShowVerticalLines->isChecked();
}
-void FancyPlotterSettings::setVerticalLinesColor( const QColor &color )
+void FancyPlotterSettings::setVerticalLinesColor( const TQColor &color )
{
mVerticalLinesColor->setColor( color );
}
-QColor FancyPlotterSettings::verticalLinesColor() const
+TQColor FancyPlotterSettings::verticalLinesColor() const
{
return mVerticalLinesColor->color();
}
@@ -411,12 +411,12 @@ bool FancyPlotterSettings::showHorizontalLines() const
return mShowHorizontalLines->isChecked();
}
-void FancyPlotterSettings::setHorizontalLinesColor( const QColor &color )
+void FancyPlotterSettings::setHorizontalLinesColor( const TQColor &color )
{
mHorizontalLinesColor->setColor( color );
}
-QColor FancyPlotterSettings::horizontalLinesColor() const
+TQColor FancyPlotterSettings::horizontalLinesColor() const
{
return mHorizontalLinesColor->color();
}
@@ -461,12 +461,12 @@ int FancyPlotterSettings::fontSize() const
return mFontSize->value();
}
-void FancyPlotterSettings::setBackgroundColor( const QColor &color )
+void FancyPlotterSettings::setBackgroundColor( const TQColor &color )
{
mBackgroundColor->setColor( color );
}
-QColor FancyPlotterSettings::backgroundColor() const
+TQColor FancyPlotterSettings::backgroundColor() const
{
return mBackgroundColor->color();
}
@@ -474,16 +474,16 @@ void FancyPlotterSettings::clearDeleted()
{
mDeleted.clear();
}
-QValueList<int> FancyPlotterSettings::deleted() const
+TQValueList<int> FancyPlotterSettings::deleted() const
{
return mDeleted;
}
-QValueList<int> FancyPlotterSettings::order() const
+TQValueList<int> FancyPlotterSettings::order() const
{
- QValueList<int> newOrder;
+ TQValueList<int> newOrder;
- QListViewItemIterator it( mSensorView );
+ TQListViewItemIterator it( mSensorView );
for ( ; it.current(); ++it ) {
newOrder.prepend(it.current()->text(0).toInt());
}
@@ -493,46 +493,46 @@ QValueList<int> FancyPlotterSettings::order() const
void FancyPlotterSettings::resetOrder()
{
int i = mSensorView->childCount()-1;
- QListViewItemIterator it( mSensorView );
+ TQListViewItemIterator it( mSensorView );
for ( ; it.current(); ++it, --i) {
- it.current()->setText(0, QString::number(i));
+ it.current()->setText(0, TQString::number(i));
}
}
-void FancyPlotterSettings::setSensors( const QValueList< QStringList > &list )
+void FancyPlotterSettings::setSensors( const TQValueList< TQStringList > &list )
{
mSensorView->clear();
- QValueList< QStringList >::ConstIterator it;
+ TQValueList< TQStringList >::ConstIterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
- QListViewItem* lvi = new QListViewItem( mSensorView,
+ TQListViewItem* lvi = new TQListViewItem( mSensorView,
(*it)[ 0 ], // id
(*it)[ 1 ], // host name
(*it)[ 2 ], // sensor name
(*it)[ 3 ], // unit
(*it)[ 4 ] ); // status
- QPixmap pm( 12, 12 );
- pm.fill( QColor( (*it)[ 5 ] ) );
+ TQPixmap pm( 12, 12 );
+ pm.fill( TQColor( (*it)[ 5 ] ) );
lvi->setPixmap( 2, pm );
mSensorView->insertItem( lvi );
}
}
-QValueList< QStringList > FancyPlotterSettings::sensors() const
+TQValueList< TQStringList > FancyPlotterSettings::sensors() const
{
- QValueList< QStringList > list;
+ TQValueList< TQStringList > list;
- QListViewItemIterator it( mSensorView );
+ TQListViewItemIterator it( mSensorView );
for ( ; it.current(); ++it ) {
- QStringList entry;
+ TQStringList entry;
entry << it.current()->text( 0 );
entry << it.current()->text( 1 );
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 );
- QColor color( qRed( rgb ), qGreen( rgb ), qBlue( rgb ) );
+ TQColor color( qRed( rgb ), qGreen( rgb ), qBlue( rgb ) );
entry << ( color.name() );
list.prepend( entry );
@@ -543,15 +543,15 @@ QValueList< QStringList > FancyPlotterSettings::sensors() const
void FancyPlotterSettings::editSensor()
{
- QListViewItem* lvi = mSensorView->currentItem();
+ TQListViewItem* lvi = mSensorView->currentItem();
if ( !lvi )
return;
- QColor color = lvi->pixmap( 2 )->convertToImage().pixel( 1, 1 );
+ TQColor color = lvi->pixmap( 2 )->convertToImage().pixel( 1, 1 );
int result = KColorDialog::getColor( color, parentWidget() );
if ( result == KColorDialog::Accepted ) {
- QPixmap newPm( 12, 12 );
+ TQPixmap newPm( 12, 12 );
newPm.fill( color );
lvi->setPixmap( 2, newPm );
}
@@ -559,7 +559,7 @@ void FancyPlotterSettings::editSensor()
void FancyPlotterSettings::removeSensor()
{
- QListViewItem* lvi = mSensorView->currentItem();
+ TQListViewItem* lvi = mSensorView->currentItem();
if ( lvi ) {
//Note down the id of the one we are deleting
@@ -571,7 +571,7 @@ void FancyPlotterSettings::removeSensor()
* items can be deleted without forcing the user to select a new
* item between the deletes. If all items are deleted, the buttons
* are disabled again. */
- QListViewItem* newSelected = 0;
+ TQListViewItem* newSelected = 0;
if ( lvi->itemBelow() ) {
lvi->itemBelow()->setSelected( true );
newSelected = lvi->itemBelow();
@@ -583,10 +583,10 @@ void FancyPlotterSettings::removeSensor()
delete lvi;
- QListViewItemIterator it( mSensorView );
+ TQListViewItemIterator it( mSensorView );
for ( ; it.current(); ++it ) {
if(it.current()->text(0).toInt() > id)
- it.current()->setText(0, QString::number(it.current()->text(0).toInt() -1));
+ it.current()->setText(0, TQString::number(it.current()->text(0).toInt() -1));
}
@@ -598,7 +598,7 @@ void FancyPlotterSettings::removeSensor()
void FancyPlotterSettings::moveUpSensor()
{
if ( mSensorView->currentItem() != 0 ) {
- QListViewItem* item = mSensorView->currentItem()->itemAbove();
+ TQListViewItem* item = mSensorView->currentItem()->itemAbove();
if ( item ) {
if ( item->itemAbove() )
{
@@ -624,7 +624,7 @@ void FancyPlotterSettings::moveDownSensor()
}
}
-void FancyPlotterSettings::selectionChanged( QListViewItem *item )
+void FancyPlotterSettings::selectionChanged( TQListViewItem *item )
{
bool state = ( item != 0 );