diff options
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib')
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/BarGraph.cpp | 4 | ||||
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cpp | 8 | ||||
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/DummyDisplay.cpp | 2 | ||||
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp | 12 | ||||
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/LogFile.cpp | 4 | ||||
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/SensorDisplay.cpp | 8 | ||||
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/SensorLogger.cpp | 6 | ||||
-rw-r--r-- | ksysguard/gui/SensorDisplayLib/SignalPlotter.cpp | 2 |
8 files changed, 23 insertions, 23 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/BarGraph.cpp b/ksysguard/gui/SensorDisplayLib/BarGraph.cpp index 8d2b5e302..1a1608b6c 100644 --- a/ksysguard/gui/SensorDisplayLib/BarGraph.cpp +++ b/ksysguard/gui/SensorDisplayLib/BarGraph.cpp @@ -161,10 +161,10 @@ void BarGraph::paintEvent( TQPaintEvent* ) if ( showLabels ) { p.drawText( b * barWidth + 3, h - ( 2 * fm.lineSpacing() ) - 2, - barWidth - 2 * 3, fm.lineSpacing(), Qt::AlignCenter, + barWidth - 2 * 3, fm.lineSpacing(), TQt::AlignCenter, footers[ b ] ); p.drawText( b * barWidth + 3, h - fm.lineSpacing() - 2, - barWidth - 2 * 3, fm.lineSpacing(), Qt::AlignCenter, + barWidth - 2 * 3, fm.lineSpacing(), TQt::AlignCenter, TQString( "%1" ).arg( samples[ b ] ) ); } } diff --git a/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cpp b/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cpp index ee03f9e94..9b05d6806 100644 --- a/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cpp +++ b/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cpp @@ -47,7 +47,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name ) TQFrame *page = addPage( i18n( "Range" ) ); TQGridLayout *pageLayout = new TQGridLayout( page, 3, 1, 0, spacingHint() ); - TQGroupBox *groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Title" ), page ); + TQGroupBox *groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Title" ), page ); TQGridLayout *boxLayout = new TQGridLayout( groupBox->layout(), 1, 1 ); mTitle = new KLineEdit( groupBox ); @@ -56,7 +56,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name ) pageLayout->addWidget( groupBox, 0, 0 ); - groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Display Range" ), page ); + groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Display Range" ), page ); boxLayout = new TQGridLayout( groupBox->layout(), 1, 5 ); boxLayout->setColStretch( 2, 1 ); @@ -84,7 +84,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name ) page = addPage( i18n( "Alarms" ) ); pageLayout = new TQGridLayout( page, 3, 1, 0, spacingHint() ); - groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Alarm for Minimum Value" ), page ); + groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Alarm for Minimum Value" ), page ); boxLayout = new TQGridLayout( groupBox->layout(), 1, 4 ); boxLayout->setColStretch( 1, 1 ); @@ -102,7 +102,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name ) pageLayout->addWidget( groupBox, 0, 0 ); - groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Alarm for Maximum Value" ), page ); + groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Alarm for Maximum Value" ), page ); boxLayout = new TQGridLayout( groupBox->layout(), 1, 4 ); boxLayout->setColStretch( 1, 1 ); diff --git a/ksysguard/gui/SensorDisplayLib/DummyDisplay.cpp b/ksysguard/gui/SensorDisplayLib/DummyDisplay.cpp index 13696c502..a9b8d21c0 100644 --- a/ksysguard/gui/SensorDisplayLib/DummyDisplay.cpp +++ b/ksysguard/gui/SensorDisplayLib/DummyDisplay.cpp @@ -49,7 +49,7 @@ void DummyDisplay::resizeEvent( TQResizeEvent* ) bool DummyDisplay::eventFilter( TQObject* object, TQEvent* event ) { if ( event->type() == TQEvent::MouseButtonRelease && - ( (TQMouseEvent*)event)->button() == Qt::LeftButton ) + ( (TQMouseEvent*)event)->button() == TQt::LeftButton ) setFocus(); return TQWidget::eventFilter( object, event ); diff --git a/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp b/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp index 9d388df63..447d9c718 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 ); diff --git a/ksysguard/gui/SensorDisplayLib/LogFile.cpp b/ksysguard/gui/SensorDisplayLib/LogFile.cpp index a8b22569d..763953163 100644 --- a/ksysguard/gui/SensorDisplayLib/LogFile.cpp +++ b/ksysguard/gui/SensorDisplayLib/LogFile.cpp @@ -181,8 +181,8 @@ LogFile::restoreSettings(TQDomElement& element) TQFont font; TQColorGroup cgroup = monitor->colorGroup(); - cgroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", Qt::green)); - cgroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", Qt::black)); + cgroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", TQt::green)); + cgroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", TQt::black)); monitor->setPalette(TQPalette(cgroup, cgroup, cgroup)); addSensor(element.attribute("hostName"), element.attribute("sensorName"), (element.attribute("sensorType").isEmpty() ? "logfile" : element.attribute("sensorType")), element.attribute("title")); diff --git a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cpp b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cpp index 4dfff7957..ac029e5e2 100644 --- a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cpp +++ b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cpp @@ -64,9 +64,9 @@ SensorDisplay::SensorDisplay( TQWidget *parent, const char *name, TQWhatsThis::add( this, "dummy" ); if(!nf) { - mFrame = new TQGroupBox( 2, Qt::Vertical, "", this, "displayFrame"); + mFrame = new TQGroupBox( 2, TQt::Vertical, "", this, "displayFrame"); mFrame->setFlat(true); - mFrame->setAlignment(Qt::AlignHCenter); + mFrame->setAlignment(TQt::AlignHCenter); mFrame->setInsideMargin(2); setTitle( title ); @@ -156,7 +156,7 @@ void SensorDisplay::resizeEvent( TQResizeEvent* ) bool SensorDisplay::eventFilter( TQObject *object, TQEvent *event ) { if ( event->type() == TQEvent::MouseButtonPress && - ( (TQMouseEvent*)event)->button() == Qt::RightButton ) { + ( (TQMouseEvent*)event)->button() == TQt::RightButton ) { TQPopupMenu pm; if ( mIsApplet ) { pm.insertItem( i18n( "Launch &System Guard"), 1 ); @@ -200,7 +200,7 @@ bool SensorDisplay::eventFilter( TQObject *object, TQEvent *event ) return true; } else if ( event->type() == TQEvent::MouseButtonRelease && - ( ( TQMouseEvent*)event)->button() == Qt::LeftButton ) { + ( ( TQMouseEvent*)event)->button() == TQt::LeftButton ) { setFocus(); } diff --git a/ksysguard/gui/SensorDisplayLib/SensorLogger.cpp b/ksysguard/gui/SensorDisplayLib/SensorLogger.cpp index 334a5b736..9cdf1f507 100644 --- a/ksysguard/gui/SensorDisplayLib/SensorLogger.cpp +++ b/ksysguard/gui/SensorDisplayLib/SensorLogger.cpp @@ -284,9 +284,9 @@ SensorLogger::restoreSettings(TQDomElement& element) { TQColorGroup cgroup = monitor->colorGroup(); - cgroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", Qt::green)); - cgroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", Qt::black)); - cgroup.setColor(TQColorGroup::Foreground, restoreColor(element, "alarmColor", Qt::red)); + cgroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", TQt::green)); + cgroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", TQt::black)); + cgroup.setColor(TQColorGroup::Foreground, restoreColor(element, "alarmColor", TQt::red)); monitor->setPalette(TQPalette(cgroup, cgroup, cgroup)); logSensors.clear(); diff --git a/ksysguard/gui/SensorDisplayLib/SignalPlotter.cpp b/ksysguard/gui/SensorDisplayLib/SignalPlotter.cpp index bcb0b821b..1568eab17 100644 --- a/ksysguard/gui/SensorDisplayLib/SignalPlotter.cpp +++ b/ksysguard/gui/SensorDisplayLib/SignalPlotter.cpp @@ -445,7 +445,7 @@ void SignalPlotter::paintEvent( TQPaintEvent* ) top = p.fontMetrics().height(); h -= top; int h0 = top - 2; // h0 is our new top. It's at least 5 pixels high - p.drawText(0, 0, x0, top - 2, Qt::AlignCenter, mTitle ); + p.drawText(0, 0, x0, top - 2, TQt::AlignCenter, mTitle ); p.drawLine( x0 - 1, 1, x0 - 1, h0 ); p.drawLine( 0, top - 1, w - 2, top - 1 ); |