summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /ksysguard/gui/SensorDisplayLib
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib')
-rw-r--r--ksysguard/gui/SensorDisplayLib/BarGraph.cc4
-rw-r--r--ksysguard/gui/SensorDisplayLib/DancingBars.cc12
-rw-r--r--ksysguard/gui/SensorDisplayLib/DancingBars.h2
-rw-r--r--ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cc10
-rw-r--r--ksysguard/gui/SensorDisplayLib/FancyPlotter.cc10
-rw-r--r--ksysguard/gui/SensorDisplayLib/FancyPlotter.h2
-rw-r--r--ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc20
-rw-r--r--ksysguard/gui/SensorDisplayLib/ListView.cc50
-rw-r--r--ksysguard/gui/SensorDisplayLib/ListView.h6
-rw-r--r--ksysguard/gui/SensorDisplayLib/ListViewSettingsWidget.ui12
-rw-r--r--ksysguard/gui/SensorDisplayLib/LogFile.cc12
-rw-r--r--ksysguard/gui/SensorDisplayLib/LogFileSettings.ui20
-rw-r--r--ksysguard/gui/SensorDisplayLib/MultiMeter.cc6
-rw-r--r--ksysguard/gui/SensorDisplayLib/MultiMeterSettingsWidget.ui40
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessController.cc20
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessController.h2
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessList.cc12
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessList.h2
-rw-r--r--ksysguard/gui/SensorDisplayLib/ReniceDlg.cc4
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorDisplay.cc14
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorLogger.cc34
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorLogger.h4
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui14
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorLoggerSettingsWidget.ui12
-rw-r--r--ksysguard/gui/SensorDisplayLib/SignalPlotter.cc6
25 files changed, 165 insertions, 165 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/BarGraph.cc b/ksysguard/gui/SensorDisplayLib/BarGraph.cc
index 8d2b5e302..8c6ed7910 100644
--- a/ksysguard/gui/SensorDisplayLib/BarGraph.cc
+++ b/ksysguard/gui/SensorDisplayLib/BarGraph.cc
@@ -52,7 +52,7 @@ BarGraph::BarGraph( TQWidget *parent, const char *name )
// Anything smaller than this does not make sense.
setMinimumSize( 16, 16 );
- setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding,
+ tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding,
TQSizePolicy::Expanding, false ) );
}
@@ -111,7 +111,7 @@ void BarGraph::paintEvent( TQPaintEvent* )
/* Draw white line along the bottom and the right side of the
* widget to create a 3D like look. */
- p.setPen( TQColor( colorGroup().light() ) );
+ p.setPen( TQColor( tqcolorGroup().light() ) );
p.drawLine( 0, h - 1, w - 1, h - 1 );
p.drawLine( w - 1, 0, w - 1, h - 1 );
diff --git a/ksysguard/gui/SensorDisplayLib/DancingBars.cc b/ksysguard/gui/SensorDisplayLib/DancingBars.cc
index 3917fc86b..e2b3917f5 100644
--- a/ksysguard/gui/SensorDisplayLib/DancingBars.cc
+++ b/ksysguard/gui/SensorDisplayLib/DancingBars.cc
@@ -53,7 +53,7 @@ DancingBars::DancingBars( TQWidget *parent, const char *name, const TQString &ti
else
mPlotter = new BarGraph( frame() );
- setMinimumSize( sizeHint() );
+ setMinimumSize( tqsizeHint() );
/* All RMB clicks to the mPlotter widget will be handled by
* SensorDisplay::eventFilter. */
@@ -147,7 +147,7 @@ void DancingBars::applySettings()
removeSensor( i );
}
- repaint();
+ tqrepaint();
setModified( true );
}
@@ -158,7 +158,7 @@ void DancingBars::applyStyle()
mPlotter->backgroundColor = KSGRD::Style->backgroundColor();
mPlotter->fontSize = KSGRD::Style->fontSize();
- repaint();
+ tqrepaint();
setModified( true );
}
@@ -231,12 +231,12 @@ void DancingBars::resizeEvent( TQResizeEvent* )
frame()->setGeometry( 0, 0, width(), height() );
}
-TQSize DancingBars::sizeHint()
+TQSize DancingBars::tqsizeHint()
{
if ( noFrame() )
- return ( mPlotter->sizeHint() );
+ return ( mPlotter->tqsizeHint() );
else
- return ( frame()->sizeHint() );
+ return ( frame()->tqsizeHint() );
}
void DancingBars::answerReceived( int id, const TQString &answer )
diff --git a/ksysguard/gui/SensorDisplayLib/DancingBars.h b/ksysguard/gui/SensorDisplayLib/DancingBars.h
index 3ccc03f86..35feaa07f 100644
--- a/ksysguard/gui/SensorDisplayLib/DancingBars.h
+++ b/ksysguard/gui/SensorDisplayLib/DancingBars.h
@@ -54,7 +54,7 @@ class DancingBars : public KSGRD::SensorDisplay
void updateSamples( const TQMemArray<double> &samples );
- virtual TQSize sizeHint();
+ virtual TQSize tqsizeHint();
virtual void answerReceived( int id, const TQString &answer );
diff --git a/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cc b/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cc
index 1b97cc25f..1a1476d8a 100644
--- a/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cc
+++ b/ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cc
@@ -48,7 +48,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name )
TQGridLayout *pageLayout = new TQGridLayout( page, 3, 1, 0, spacingHint() );
TQGroupBox *groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Title" ), page );
- TQGridLayout *boxLayout = new TQGridLayout( groupBox->layout(), 1, 1 );
+ TQGridLayout *boxLayout = new TQGridLayout( groupBox->tqlayout(), 1, 1 );
mTitle = new KLineEdit( groupBox );
TQWhatsThis::add( mTitle, i18n( "Enter the title of the display here." ) );
@@ -57,7 +57,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name )
pageLayout->addWidget( groupBox, 0, 0 );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Display Range" ), page );
- boxLayout = new TQGridLayout( groupBox->layout(), 1, 5 );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 1, 5 );
boxLayout->setColStretch( 2, 1 );
TQLabel *label = new TQLabel( i18n( "Minimum value:" ), groupBox );
@@ -85,7 +85,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name )
pageLayout = new TQGridLayout( page, 3, 1, 0, spacingHint() );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Alarm for Minimum Value" ), page );
- boxLayout = new TQGridLayout( groupBox->layout(), 1, 4 );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 1, 4 );
boxLayout->setColStretch( 1, 1 );
mUseLowerLimit = new TQCheckBox( i18n( "Enable alarm" ), groupBox );
@@ -103,7 +103,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 );
- boxLayout = new TQGridLayout( groupBox->layout(), 1, 4 );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 1, 4 );
boxLayout->setColStretch( 1, 1 );
mUseUpperLimit = new TQCheckBox( i18n( "Enable alarm" ), groupBox );
@@ -167,7 +167,7 @@ DancingBarsSettings::DancingBarsSettings( TQWidget* parent, const char* name )
mSensorView->addColumn( i18n( "Sensor" ) );
mSensorView->addColumn( i18n( "Label" ) );
mSensorView->addColumn( i18n( "Unit" ) );
- mSensorView->addColumn( i18n( "Status" ) );
+ mSensorView->addColumn( i18n( "tqStatus" ) );
mSensorView->setAllColumnsShowFocus( true );
pageLayout->addMultiCellWidget( mSensorView, 0, 2, 0, 0 );
diff --git a/ksysguard/gui/SensorDisplayLib/FancyPlotter.cc b/ksysguard/gui/SensorDisplayLib/FancyPlotter.cc
index 0434877bb..912a85e42 100644
--- a/ksysguard/gui/SensorDisplayLib/FancyPlotter.cc
+++ b/ksysguard/gui/SensorDisplayLib/FancyPlotter.cc
@@ -52,7 +52,7 @@ FancyPlotter::FancyPlotter( TQWidget* parent, const char* name,
mPlotter->setTitle( title );
mPlotter->setThinFrame(!isApplet); //if we aren't an applet, draw a thin white frame on the left and bottom, for a 3d effect
- setMinimumSize( sizeHint() );
+ setMinimumSize( tqsizeHint() );
/* All RMB clicks to the mPlotter widget will be handled by
* SensorDisplay::eventFilter. */
@@ -182,7 +182,7 @@ void FancyPlotter::applySettings()
for ( uint i = 0; i < sensors().count(); ++i )
mPlotter->beamColors()[ i ] = TQColor( list[i][ 5 ] );
- mPlotter->repaint();
+ mPlotter->tqrepaint();
setModified( true );
}
@@ -281,12 +281,12 @@ void FancyPlotter::resizeEvent( TQResizeEvent* )
frame()->setGeometry( 0, 0, width(), height() );
}
-TQSize FancyPlotter::sizeHint()
+TQSize FancyPlotter::tqsizeHint()
{
if ( noFrame() )
- return mPlotter->sizeHint();
+ return mPlotter->tqsizeHint();
else
- return frame()->sizeHint();
+ return frame()->tqsizeHint();
}
void FancyPlotter::answerReceived( int id, const TQString &answer )
diff --git a/ksysguard/gui/SensorDisplayLib/FancyPlotter.h b/ksysguard/gui/SensorDisplayLib/FancyPlotter.h
index 2f0e36c60..00d88223a 100644
--- a/ksysguard/gui/SensorDisplayLib/FancyPlotter.h
+++ b/ksysguard/gui/SensorDisplayLib/FancyPlotter.h
@@ -66,7 +66,7 @@ class FancyPlotter : public KSGRD::SensorDisplay
bool removeSensor( uint pos );
- virtual TQSize sizeHint(void);
+ virtual TQSize tqsizeHint(void);
virtual void answerReceived( int id, const TQString &answer );
diff --git a/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc b/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc
index de345e7b8..0609a139c 100644
--- a/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc
+++ b/ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cc
@@ -79,7 +79,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout = new TQGridLayout( page, 2, 1, 0, spacingHint() );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Vertical Scale" ), page );
- boxLayout = new TQGridLayout( groupBox->layout(), 2, 5, spacingHint() );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 2, 5, spacingHint() );
boxLayout->setColStretch( 2, 1 );
mUseAutoRange = new TQCheckBox( i18n( "Automatic range detection" ), groupBox );
@@ -90,7 +90,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
boxLayout->addWidget( label, 1, 0 );
mMinValue = new KLineEdit( groupBox );
- mMinValue->setAlignment( AlignRight );
+ mMinValue->tqsetAlignment( AlignRight );
mMinValue->setEnabled( false );
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 );
@@ -100,7 +100,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
boxLayout->addWidget( label, 1, 3 );
mMaxValue = new KLineEdit( groupBox );
- mMaxValue->setAlignment( AlignRight );
+ mMaxValue->tqsetAlignment( AlignRight );
mMaxValue->setEnabled( false );
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 );
@@ -109,7 +109,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout->addWidget( groupBox, 0, 0 );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Horizontal Scale" ), page );
- boxLayout = new TQGridLayout( groupBox->layout(), 2, 2, spacingHint() );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 2, 2, spacingHint() );
boxLayout->setRowStretch( 1, 1 );
mHorizontalScale = new KIntNumInput( 1, groupBox );
@@ -127,7 +127,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout = new TQGridLayout( page, 3, 2, 0, spacingHint() );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Lines" ), page );
- boxLayout = new TQGridLayout( groupBox->layout(), 2, 5, spacingHint() );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 2, 5, spacingHint() );
boxLayout->setColStretch( 1, 1 );
mShowVerticalLines = new TQCheckBox( i18n( "Vertical lines" ), groupBox );
@@ -166,7 +166,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout->addMultiCellWidget( groupBox, 0, 0, 0, 1 );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Text" ), page );
- boxLayout = new TQGridLayout( groupBox->layout(), 3, 4, spacingHint() );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 3, 4, spacingHint() );
boxLayout->setColStretch( 1, 1 );
mShowLabels = new TQCheckBox( i18n( "Labels" ), groupBox );
@@ -191,7 +191,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
pageLayout->addWidget( groupBox, 1, 0 );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Colors" ), page );
- boxLayout = new TQGridLayout( groupBox->layout(), 4, 2, spacingHint() );
+ boxLayout = new TQGridLayout( groupBox->tqlayout(), 4, 2, spacingHint() );
label = new TQLabel( i18n( "Vertical lines:" ), groupBox );
boxLayout->addWidget( label, 0, 0 );
@@ -231,7 +231,7 @@ FancyPlotterSettings::FancyPlotterSettings( TQWidget* parent, const char* name )
mSensorView->addColumn( i18n( "Host" ) );
mSensorView->addColumn( i18n( "Sensor" ) );
mSensorView->addColumn( i18n( "Unit" ) );
- mSensorView->addColumn( i18n( "Status" ) );
+ mSensorView->addColumn( i18n( "tqStatus" ) );
mSensorView->setResizeMode(TQListView::LastColumn);
mSensorView->header()->setResizeEnabled(false, 0);
mSensorView->hideColumn(0);
@@ -532,7 +532,7 @@ TQValueList< TQStringList > FancyPlotterSettings::sensors() const
entry << it.current()->text( 3 );
entry << it.current()->text( 4 );
QRgb rgb = it.current()->pixmap( 2 )->convertToImage().pixel( 1, 1 );
- TQColor color( qRed( rgb ), qGreen( rgb ), qBlue( rgb ) );
+ TQColor color( tqRed( rgb ), tqGreen( rgb ), tqBlue( rgb ) );
entry << ( color.name() );
list.prepend( entry );
@@ -549,7 +549,7 @@ void FancyPlotterSettings::editSensor()
return;
TQColor color = lvi->pixmap( 2 )->convertToImage().pixel( 1, 1 );
- int result = KColorDialog::getColor( color, parentWidget() );
+ int result = KColorDialog::getColor( color, tqparentWidget() );
if ( result == KColorDialog::Accepted ) {
TQPixmap newPm( 12, 12 );
newPm.fill( color );
diff --git a/ksysguard/gui/SensorDisplayLib/ListView.cc b/ksysguard/gui/SensorDisplayLib/ListView.cc
index c980196e6..cd14bccfb 100644
--- a/ksysguard/gui/SensorDisplayLib/ListView.cc
+++ b/ksysguard/gui/SensorDisplayLib/ListView.cc
@@ -105,7 +105,7 @@ int PrivateListViewItem::compare( TQListViewItem *item, int col, bool ascending
PrivateListView::PrivateListView(TQWidget *parent, const char *name)
: TQListView(parent, name)
{
- TQColorGroup cg = colorGroup();
+ TQColorGroup cg = tqcolorGroup();
cg.setColor(TQColorGroup::Link, KSGRD::Style->firstForegroundColor());
cg.setColor(TQColorGroup::Text, KSGRD::Style->secondForegroundColor());
@@ -251,7 +251,7 @@ ListView::answerReceived(int id, const TQString& answer)
switch (id)
{
case 100: {
- /* We have received the answer to a '?' command that contains
+ /* We have received the answer to a '?' command that tqcontains
* the information about the table headers. */
KSGRD::SensorTokenizer lines(answer, '\n');
if (lines.count() != 2)
@@ -290,12 +290,12 @@ ListView::restoreSettings(TQDomElement& element)
{
addSensor(element.attribute("hostName"), element.attribute("sensorName"), (element.attribute("sensorType").isEmpty() ? "listview" : element.attribute("sensorType")), element.attribute("title"));
- TQColorGroup colorGroup = monitor->colorGroup();
- colorGroup.setColor(TQColorGroup::Link, restoreColor(element, "gridColor", KSGRD::Style->firstForegroundColor()));
- colorGroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", KSGRD::Style->secondForegroundColor()));
- colorGroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", KSGRD::Style->backgroundColor()));
+ TQColorGroup tqcolorGroup = monitor->tqcolorGroup();
+ tqcolorGroup.setColor(TQColorGroup::Link, restoreColor(element, "gridColor", KSGRD::Style->firstForegroundColor()));
+ tqcolorGroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", KSGRD::Style->secondForegroundColor()));
+ tqcolorGroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", KSGRD::Style->backgroundColor()));
- monitor->setPalette(TQPalette(colorGroup, colorGroup, colorGroup));
+ monitor->setPalette(TQPalette(tqcolorGroup, tqcolorGroup, tqcolorGroup));
SensorDisplay::restoreSettings(element);
@@ -311,10 +311,10 @@ ListView::saveSettings(TQDomDocument& doc, TQDomElement& element, bool save)
element.setAttribute("sensorName", sensors().at(0)->name());
element.setAttribute("sensorType", sensors().at(0)->type());
- TQColorGroup colorGroup = monitor->colorGroup();
- saveColor(element, "gridColor", colorGroup.color(TQColorGroup::Link));
- saveColor(element, "textColor", colorGroup.color(TQColorGroup::Text));
- saveColor(element, "backgroundColor", colorGroup.color(TQColorGroup::Base));
+ TQColorGroup tqcolorGroup = monitor->tqcolorGroup();
+ saveColor(element, "gridColor", tqcolorGroup.color(TQColorGroup::Link));
+ saveColor(element, "textColor", tqcolorGroup.color(TQColorGroup::Text));
+ saveColor(element, "backgroundColor", tqcolorGroup.color(TQColorGroup::Base));
SensorDisplay::saveSettings(doc, element);
@@ -331,10 +331,10 @@ ListView::configureSettings()
Q_CHECK_PTR(lvs);
connect(lvs, TQT_SIGNAL(applyClicked()), TQT_SLOT(applySettings()));
- TQColorGroup colorGroup = monitor->colorGroup();
- lvs->setGridColor(colorGroup.color(TQColorGroup::Link));
- lvs->setTextColor(colorGroup.color(TQColorGroup::Text));
- lvs->setBackgroundColor(colorGroup.color(TQColorGroup::Base));
+ TQColorGroup tqcolorGroup = monitor->tqcolorGroup();
+ lvs->setGridColor(tqcolorGroup.color(TQColorGroup::Link));
+ lvs->setTextColor(tqcolorGroup.color(TQColorGroup::Text));
+ lvs->setBackgroundColor(tqcolorGroup.color(TQColorGroup::Base));
lvs->setTitle(title());
if (lvs->exec())
@@ -347,11 +347,11 @@ ListView::configureSettings()
void
ListView::applySettings()
{
- TQColorGroup colorGroup = monitor->colorGroup();
- colorGroup.setColor(TQColorGroup::Link, lvs->gridColor());
- colorGroup.setColor(TQColorGroup::Text, lvs->textColor());
- colorGroup.setColor(TQColorGroup::Base, lvs->backgroundColor());
- monitor->setPalette(TQPalette(colorGroup, colorGroup, colorGroup));
+ TQColorGroup tqcolorGroup = monitor->tqcolorGroup();
+ tqcolorGroup.setColor(TQColorGroup::Link, lvs->gridColor());
+ tqcolorGroup.setColor(TQColorGroup::Text, lvs->textColor());
+ tqcolorGroup.setColor(TQColorGroup::Base, lvs->backgroundColor());
+ monitor->setPalette(TQPalette(tqcolorGroup, tqcolorGroup, tqcolorGroup));
setTitle(lvs->title());
@@ -361,11 +361,11 @@ ListView::applySettings()
void
ListView::applyStyle()
{
- TQColorGroup colorGroup = monitor->colorGroup();
- colorGroup.setColor(TQColorGroup::Link, KSGRD::Style->firstForegroundColor());
- colorGroup.setColor(TQColorGroup::Text, KSGRD::Style->secondForegroundColor());
- colorGroup.setColor(TQColorGroup::Base, KSGRD::Style->backgroundColor());
- monitor->setPalette(TQPalette(colorGroup, colorGroup, colorGroup));
+ TQColorGroup tqcolorGroup = monitor->tqcolorGroup();
+ tqcolorGroup.setColor(TQColorGroup::Link, KSGRD::Style->firstForegroundColor());
+ tqcolorGroup.setColor(TQColorGroup::Text, KSGRD::Style->secondForegroundColor());
+ tqcolorGroup.setColor(TQColorGroup::Base, KSGRD::Style->backgroundColor());
+ monitor->setPalette(TQPalette(tqcolorGroup, tqcolorGroup, tqcolorGroup));
setModified(true);
}
diff --git a/ksysguard/gui/SensorDisplayLib/ListView.h b/ksysguard/gui/SensorDisplayLib/ListView.h
index 1c63d95cb..61d59e101 100644
--- a/ksysguard/gui/SensorDisplayLib/ListView.h
+++ b/ksysguard/gui/SensorDisplayLib/ListView.h
@@ -57,9 +57,9 @@ class PrivateListViewItem : public QListViewItem
public:
PrivateListViewItem(PrivateListView *parent = 0);
- void paintCell(TQPainter *p, const TQColorGroup &, int column, int width, int alignment) {
- TQColorGroup cgroup = _parent->colorGroup();
- TQListViewItem::paintCell(p, cgroup, column, width, alignment);
+ void paintCell(TQPainter *p, const TQColorGroup &, int column, int width, int tqalignment) {
+ TQColorGroup cgroup = _parent->tqcolorGroup();
+ TQListViewItem::paintCell(p, cgroup, column, width, tqalignment);
p->setPen(cgroup.color(TQColorGroup::Link));
p->drawLine(0, height() - 1, width - 1, height() - 1);
}
diff --git a/ksysguard/gui/SensorDisplayLib/ListViewSettingsWidget.ui b/ksysguard/gui/SensorDisplayLib/ListViewSettingsWidget.ui
index f61f30dd7..8e3bd6bff 100644
--- a/ksysguard/gui/SensorDisplayLib/ListViewSettingsWidget.ui
+++ b/ksysguard/gui/SensorDisplayLib/ListViewSettingsWidget.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>ListViewSettingsWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -55,7 +55,7 @@
<property name="title">
<string>Colors</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="vAlign" stdset="0">
@@ -68,7 +68,7 @@
</property>
<widget class="QLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<vbox>
<property name="name">
@@ -102,7 +102,7 @@
</widget>
<widget class="QLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<vbox>
<property name="name">
@@ -173,6 +173,6 @@
<function specifier="non virtual">setTextColor( const QColor &amp; c )</function>
<function specifier="non virtual">setGridColor( const QColor &amp; c )</function>
</functions>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/ksysguard/gui/SensorDisplayLib/LogFile.cc b/ksysguard/gui/SensorDisplayLib/LogFile.cc
index 7de7899ab..ac3170ff3 100644
--- a/ksysguard/gui/SensorDisplayLib/LogFile.cc
+++ b/ksysguard/gui/SensorDisplayLib/LogFile.cc
@@ -79,7 +79,7 @@ LogFile::addSensor(const TQString& hostName, const TQString& sensorName, const T
void LogFile::configureSettings(void)
{
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
lfs = new LogFileSettings(this);
Q_CHECK_PTR(lfs);
@@ -147,7 +147,7 @@ void LogFile::settingsRuleListSelected(int index)
void LogFile::applySettings(void)
{
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
cgroup.setColor(TQColorGroup::Text, lfs->fgColor->color());
cgroup.setColor(TQColorGroup::Base, lfs->bgColor->color());
@@ -166,7 +166,7 @@ void LogFile::applySettings(void)
void
LogFile::applyStyle()
{
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
cgroup.setColor(TQColorGroup::Text, KSGRD::Style->firstForegroundColor());
cgroup.setColor(TQColorGroup::Base, KSGRD::Style->backgroundColor());
@@ -179,7 +179,7 @@ bool
LogFile::restoreSettings(TQDomElement& element)
{
TQFont font;
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
cgroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", Qt::green));
cgroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", Qt::black));
@@ -212,8 +212,8 @@ LogFile::saveSettings(TQDomDocument& doc, TQDomElement& element, bool save)
element.setAttribute("font", monitor->font().toString());
- saveColor(element, "textColor", monitor->colorGroup().text());
- saveColor(element, "backgroundColor", monitor->colorGroup().base());
+ saveColor(element, "textColor", monitor->tqcolorGroup().text());
+ saveColor(element, "backgroundColor", monitor->tqcolorGroup().base());
for (TQStringList::Iterator it = filterRules.begin();
it != filterRules.end(); it++)
diff --git a/ksysguard/gui/SensorDisplayLib/LogFileSettings.ui b/ksysguard/gui/SensorDisplayLib/LogFileSettings.ui
index b5dcff0ee..8a021af46 100644
--- a/ksysguard/gui/SensorDisplayLib/LogFileSettings.ui
+++ b/ksysguard/gui/SensorDisplayLib/LogFileSettings.ui
@@ -5,7 +5,7 @@
<property name="name">
<cstring>LogFileSettings</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -72,7 +72,7 @@
</property>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -80,7 +80,7 @@
</property>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -106,7 +106,7 @@
</widget>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<vbox>
<property name="name">
@@ -142,7 +142,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -172,7 +172,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -264,7 +264,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -313,7 +313,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -340,6 +340,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/ksysguard/gui/SensorDisplayLib/MultiMeter.cc b/ksysguard/gui/SensorDisplayLib/MultiMeter.cc
index 8a9cc9b60..3a54aefd3 100644
--- a/ksysguard/gui/SensorDisplayLib/MultiMeter.cc
+++ b/ksysguard/gui/SensorDisplayLib/MultiMeter.cc
@@ -53,7 +53,7 @@ MultiMeter::MultiMeter(TQWidget* parent, const char* name,
Q_CHECK_PTR(lcd);
lcd->setSegmentStyle(TQLCDNumber::Filled);
setDigitColor(KSGRD::Style->backgroundColor());
- lcd->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,
+ lcd->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,
TQSizePolicy::Expanding, false));
setBackgroundColor(KSGRD::Style->backgroundColor());
@@ -225,7 +225,7 @@ MultiMeter::applySettings()
alarmDigitColor = mms->alarmDigitColor();
setBackgroundColor(mms->meterBackgroundColor());
- repaint();
+ tqrepaint();
setModified(true);
}
@@ -234,7 +234,7 @@ MultiMeter::applyStyle()
{
normalDigitColor = KSGRD::Style->firstForegroundColor();
setBackgroundColor(KSGRD::Style->backgroundColor());
- repaint();
+ tqrepaint();
setModified(true);
}
diff --git a/ksysguard/gui/SensorDisplayLib/MultiMeterSettingsWidget.ui b/ksysguard/gui/SensorDisplayLib/MultiMeterSettingsWidget.ui
index 7ecdef88f..9cc904ca1 100644
--- a/ksysguard/gui/SensorDisplayLib/MultiMeterSettingsWidget.ui
+++ b/ksysguard/gui/SensorDisplayLib/MultiMeterSettingsWidget.ui
@@ -5,7 +5,7 @@
<property name="name">
<cstring>MultiMeterSettingsWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -96,7 +96,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -121,7 +121,7 @@
<property name="enabled">
<bool>false</bool>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>70</width>
<height>0</height>
@@ -162,7 +162,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -187,7 +187,7 @@
<property name="enabled">
<bool>false</bool>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>70</width>
<height>0</height>
@@ -211,7 +211,7 @@
</property>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<vbox>
<property name="name">
@@ -245,7 +245,7 @@
</widget>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<vbox>
<property name="name">
@@ -334,14 +334,14 @@
<slot access="public" specifier="">update()</slot>
<slot access="public" specifier="">update(int,int,int,int)</slot>
<slot access="public" specifier="">update(const QRect&amp;)</slot>
- <slot access="public" specifier="">repaint()</slot>
- <slot access="public" specifier="">repaint(bool)</slot>
- <slot access="public" specifier="">repaint(int,int,int,int)</slot>
- <slot access="public" specifier="">repaint(int,int,int,int,bool)</slot>
- <slot access="public" specifier="">repaint(const QRect&amp;)</slot>
- <slot access="public" specifier="">repaint(const QRect&amp;,bool)</slot>
- <slot access="public" specifier="">repaint(const QRegion&amp;)</slot>
- <slot access="public" specifier="">repaint(const QRegion&amp;,bool)</slot>
+ <slot access="public" specifier="">tqrepaint()</slot>
+ <slot access="public" specifier="">tqrepaint(bool)</slot>
+ <slot access="public" specifier="">tqrepaint(int,int,int,int)</slot>
+ <slot access="public" specifier="">tqrepaint(int,int,int,int,bool)</slot>
+ <slot access="public" specifier="">tqrepaint(const QRect&amp;)</slot>
+ <slot access="public" specifier="">tqrepaint(const QRect&amp;,bool)</slot>
+ <slot access="public" specifier="">tqrepaint(const QRegion&amp;)</slot>
+ <slot access="public" specifier="">tqrepaint(const QRegion&amp;,bool)</slot>
<slot access="public" specifier="">show()</slot>
<slot access="public" specifier="">hide()</slot>
<slot access="public" specifier="">setShown(bool)</slot>
@@ -375,10 +375,10 @@
<slot access="protected" specifier="">chooseColor()</slot>
<property type="CString">name</property>
<property type="Bool">enabled</property>
- <property type="Rect">geometry</property>
+ <property type="Rect">tqgeometry</property>
<property type="SizePolicy">sizePolicy</property>
- <property type="Size">minimumSize</property>
- <property type="Size">maximumSize</property>
+ <property type="Size">tqminimumSize</property>
+ <property type="Size">tqmaximumSize</property>
<property type="Size">sizeIncrement</property>
<property type="Size">baseSize</property>
<property type="Color">paletteForegroundColor</property>
@@ -467,8 +467,8 @@
<function specifier="non virtual">setNormalDigitColor( const QColor &amp; c )</function>
<function specifier="non virtual">setAlarmDigitColor( const QColor &amp; c )</function>
</functions>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
</includehints>
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessController.cc b/ksysguard/gui/SensorDisplayLib/ProcessController.cc
index f02b02af9..ba607b7fe 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessController.cc
+++ b/ksysguard/gui/SensorDisplayLib/ProcessController.cc
@@ -56,7 +56,7 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
dict.insert("PPID", new TQString(i18n("PPID")));
dict.insert("UID", new TQString(i18n("UID")));
dict.insert("GID", new TQString(i18n("GID")));
- dict.insert("Status", new TQString(i18n("Status")));
+ dict.insert("tqStatus", new TQString(i18n("tqStatus")));
dict.insert("User%", new TQString(i18n("User%")));
dict.insert("System%", new TQString(i18n("System%")));
dict.insert("Nice", new TQString(i18n("Nice")));
@@ -65,7 +65,7 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
dict.insert("Login", new TQString(i18n("Login")));
dict.insert("Command", new TQString(i18n("Command")));
- // Setup the geometry management.
+ // Setup the tqgeometry management.
gm = new TQVBoxLayout(this, 10);
Q_CHECK_PTR(gm);
gm->addSpacing(15);
@@ -98,11 +98,11 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
cbFilter->insertItem(i18n("System Processes"), 1);
cbFilter->insertItem(i18n("User Processes"), 2);
cbFilter->insertItem(i18n("Own Processes"), 3);
- cbFilter->setMinimumSize(cbFilter->sizeHint());
+ cbFilter->setMinimumSize(cbFilter->tqsizeHint());
// Create the check box to switch between tree view and list view.
xbTreeView = new TQCheckBox(i18n("&Tree"), this, "xbTreeView");
Q_CHECK_PTR(xbTreeView);
- xbTreeView->setMinimumSize(xbTreeView->sizeHint());
+ xbTreeView->setMinimumSize(xbTreeView->tqsizeHint());
connect(xbTreeView, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(setTreeView(bool)));
@@ -116,13 +116,13 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
bRefresh = new KPushButton( KGuiItem( i18n( "&Refresh" ), "reload" ),
this, "bRefresh" );
Q_CHECK_PTR(bRefresh);
- bRefresh->setMinimumSize(bRefresh->sizeHint());
+ bRefresh->setMinimumSize(bRefresh->tqsizeHint());
connect(bRefresh, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateList()));
// Create the 'Kill' button.
bKill = new KPushButton(i18n("&Kill"), this, "bKill");
Q_CHECK_PTR(bKill);
- bKill->setMinimumSize(bKill->sizeHint());
+ bKill->setMinimumSize(bKill->tqsizeHint());
connect(bKill, TQT_SIGNAL(clicked()), this, TQT_SLOT(killProcess()));
/* Disable the kill button until we know that the daemon supports the
* kill command. */
@@ -147,7 +147,7 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
setPlotterWidget(pList);
- setMinimumSize(sizeHint());
+ setMinimumSize(tqsizeHint());
fixTabOrder();
}
@@ -247,7 +247,7 @@ ProcessController::killProcess()
KDialogBase *dlg = new KDialogBase ( i18n ("Kill Process"),
KDialogBase::Yes | KDialogBase::Cancel,
- KDialogBase::Yes, KDialogBase::Cancel, this->parentWidget(),
+ KDialogBase::Yes, KDialogBase::Cancel, this->tqparentWidget(),
"killconfirmation",
true, true, KGuiItem(i18n("Kill")));
@@ -298,7 +298,7 @@ ProcessController::answerReceived(int id, const TQString& answer)
{
case 1:
{
- /* We have received the answer to a ps? command that contains
+ /* We have received the answer to a ps? command that tqcontains
* the information about the table headers. */
KSGRD::SensorTokenizer lines(answer, '\n');
if (lines.count() != 2)
@@ -325,7 +325,7 @@ ProcessController::answerReceived(int id, const TQString& answer)
break;
}
case 2:
- /* We have received the answer to a ps command that contains a
+ /* We have received the answer to a ps command that tqcontains a
* list of processes with various additional information. */
pList->update(answer);
pListSearchLine->searchLine()->updateSearch(); //re-apply the filter
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessController.h b/ksysguard/gui/SensorDisplayLib/ProcessController.h
index 4e2bba034..f1b623780 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessController.h
+++ b/ksysguard/gui/SensorDisplayLib/ProcessController.h
@@ -44,7 +44,7 @@ extern KApplication* Kapp;
/**
* This widget implements a process list page. Besides the process
- * list which is implemented as a ProcessList, it contains two
+ * list which is implemented as a ProcessList, it tqcontains two
* comboxes and two buttons. The combo boxes are used to set the
* update rate and the process filter. The buttons are used to force
* an immediate update and to kill a process.
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessList.cc b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
index 2f5b3fe51..1a0dd5ee5 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessList.cc
+++ b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
@@ -611,7 +611,7 @@ ProcessList::addProcess(KSGRD::SensorPSLine* p, ProcessLVI* pli)
pix = KGlobal::iconLoader()->loadIcon(name, KIcon::Small,
KIcon::SizeSmall, KIcon::DefaultState,
0L, true);
- if (pix.isNull() || !pix.mask())
+ if (pix.isNull() || !pix.tqmask())
pix = KGlobal::iconLoader()->loadIcon("unknownapp", KIcon::User,
KIcon::SizeSmall);
@@ -634,9 +634,9 @@ ProcessList::addProcess(KSGRD::SensorPSLine* p, ProcessLVI* pli)
{
icon.fill();
bitBlt(&icon, 4, 0, &pix, 0, 0, pix.width(), pix.height());
- TQBitmap mask(24, 16, true);
- bitBlt(&mask, 4, 0, pix.mask(), 0, 0, pix.width(), pix.height());
- icon.setMask(mask);
+ TQBitmap tqmask(24, 16, true);
+ bitBlt(&tqmask, 4, 0, pix.tqmask(), 0, 0, pix.width(), pix.height());
+ icon.setMask(tqmask);
pix = icon;
}
iconCache.insert(name, new TQPixmap(pix));
@@ -909,7 +909,7 @@ ProcessList::selectAllItems(bool select)
for ( ; it.current(); ++it )
{
it.current()->setSelected(select);
- repaintItem(it.current());
+ tqrepaintItem(it.current());
if (select)
selectedPIds.append(it.current()->text(1).toInt());
}
@@ -928,7 +928,7 @@ ProcessList::selectAllChilds(int pid, bool select)
{
int currPId = it.current()->text(1).toInt();
it.current()->setSelected(select);
- repaintItem(it.current());
+ tqrepaintItem(it.current());
if (select)
selectedPIds.append(currPId);
else
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessList.h b/ksysguard/gui/SensorDisplayLib/ProcessList.h
index 370fe23fd..07c3aca20 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessList.h
+++ b/ksysguard/gui/SensorDisplayLib/ProcessList.h
@@ -106,7 +106,7 @@ public:
/**
* The udpate function can be used to update the displayed process
* list. A current list of processes is requested from the OS. In
- * case the list contains invalid or corrupted info, FALSE is
+ * case the list tqcontains invalid or corrupted info, FALSE is
* returned.
*/
bool update(const TQString& list);
diff --git a/ksysguard/gui/SensorDisplayLib/ReniceDlg.cc b/ksysguard/gui/SensorDisplayLib/ReniceDlg.cc
index dfd535883..8ba9129d0 100644
--- a/ksysguard/gui/SensorDisplayLib/ReniceDlg.cc
+++ b/ksysguard/gui/SensorDisplayLib/ReniceDlg.cc
@@ -43,12 +43,12 @@ ReniceDlg::ReniceDlg(TQWidget* parent, const char* name, int currentPPrio,
"the number is the higher the priority.\n\n"
"Please enter the desired nice level:").arg(pid);
message = new TQLabel(msg, page);
- message->setMinimumSize(message->sizeHint());
+ message->setMinimumSize(message->tqsizeHint());
vLay->addWidget(message);
/*
* Create a slider with an LCD display to the right using a horizontal
- * layout. The slider and the LCD are kept in sync through signals
+ * tqlayout. The slider and the LCD are kept in sync through signals
*/
input = new KIntNumInput(currentPPrio, page, 10);
input->setRange(-20, 19);
diff --git a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
index c80ad65ee..a2bc6bb7a 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
+++ b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
@@ -66,7 +66,7 @@ SensorDisplay::SensorDisplay( TQWidget *parent, const char *name,
if(!nf) {
mFrame = new TQGroupBox( 2, Qt::Vertical, "", this, "displayFrame");
mFrame->setFlat(true);
- mFrame->setAlignment(Qt::AlignHCenter);
+ mFrame->tqsetAlignment(Qt::AlignHCenter);
mFrame->setInsideMargin(2);
setTitle( title );
@@ -124,7 +124,7 @@ void SensorDisplay::configureUpdateInterval()
if ( dlg.useGlobalUpdate() ) {
mUseGlobalUpdateInterval = true;
- SensorBoard* sb = dynamic_cast<SensorBoard*>( parentWidget() );
+ SensorBoard* sb = dynamic_cast<SensorBoard*>( tqparentWidget() );
if ( !sb ) {
kdDebug(1215) << "dynamic cast lacks" << endl;
setUpdateInterval( 2 );
@@ -247,7 +247,7 @@ void SensorDisplay::updateWhatsThis()
void SensorDisplay::hosts( TQStringList& list )
{
for ( SensorProperties *s = mSensors.first(); s; s = mSensors.next() )
- if ( !list.contains( s->hostName() ) )
+ if ( !list.tqcontains( s->hostName() ) )
list.append( s->hostName() );
}
@@ -344,7 +344,7 @@ bool SensorDisplay::restoreSettings( TQDomElement &element )
} else {
mUseGlobalUpdateInterval = true;
- SensorBoard* sb = dynamic_cast<SensorBoard*>( parentWidget() );
+ SensorBoard* sb = dynamic_cast<SensorBoard*>( tqparentWidget() );
if ( !sb ) {
kdDebug(1215) << "dynamic cast lacks" << endl;
setUpdateInterval( 2 );
@@ -447,8 +447,8 @@ void SensorDisplay::setSensorOk( bool ok )
mErrorIndicator = new TQWidget( mPlotterWdg );
mErrorIndicator->setErasePixmap( errorIcon );
mErrorIndicator->resize( errorIcon.size() );
- if ( errorIcon.mask() )
- mErrorIndicator->setMask( *errorIcon.mask() );
+ if ( errorIcon.tqmask() )
+ mErrorIndicator->setMask( *errorIcon.tqmask() );
mErrorIndicator->move( 0, 0 );
mErrorIndicator->show();
}
@@ -463,7 +463,7 @@ void SensorDisplay::setTitle( const TQString &title )
}
/* Changing the frame title may increase the width of the frame and
- * hence breaks the layout. To avoid this, we save the original size
+ * hence breaks the tqlayout. To avoid this, we save the original size
* and restore it after we have set the frame title. */
TQSize s = mFrame->size();
diff --git a/ksysguard/gui/SensorDisplayLib/SensorLogger.cc b/ksysguard/gui/SensorDisplayLib/SensorLogger.cc
index 383bf525e..362f518e2 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorLogger.cc
+++ b/ksysguard/gui/SensorDisplayLib/SensorLogger.cc
@@ -50,7 +50,7 @@ LogSensor::LogSensor(TQListView *parent)
pixmap_waiting = UserIcon( "waiting" );
lvi->setPixmap(0, pixmap_waiting);
- lvi->setTextColor(monitor->colorGroup().text());
+ lvi->setTextColor(monitor->tqcolorGroup().text());
monitor->insertItem(lvi);
}
@@ -72,8 +72,8 @@ void
LogSensor::stopLogging(void)
{
lvi->setPixmap(0, pixmap_waiting);
- lvi->setTextColor(monitor->colorGroup().text());
- lvi->repaint();
+ lvi->setTextColor(monitor->tqcolorGroup().text());
+ lvi->tqrepaint();
timerOff();
}
@@ -104,21 +104,21 @@ LogSensor::answerReceived(int id, const TQString& answer)
{
timerOff();
lowerLimitActive = false;
- lvi->setTextColor(monitor->colorGroup().foreground());
- lvi->repaint();
+ lvi->setTextColor(monitor->tqcolorGroup().foreground());
+ lvi->tqrepaint();
KNotifyClient::event(monitor->winId(), "sensor_alarm", TQString("sensor '%1' at '%2' reached lower limit").arg(sensorName).arg(hostName));
timerOn();
} else if (upperLimitActive && value > upperLimit)
{
timerOff();
upperLimitActive = false;
- lvi->setTextColor(monitor->colorGroup().foreground());
- lvi->repaint();
+ lvi->setTextColor(monitor->tqcolorGroup().foreground());
+ lvi->tqrepaint();
KNotifyClient::event(monitor->winId(), "sensor_alarm", TQString("sensor '%1' at '%2' reached upper limit").arg(sensorName).arg(hostName));
timerOn();
}
- TQDate date = TQDateTime::currentDateTime().date();
- TQTime time = TQDateTime::currentDateTime().time();
+ TQDate date = TQDateTime::tqcurrentDateTime().date();
+ TQTime time = TQDateTime::tqcurrentDateTime().time();
stream << TQString("%1 %2 %3 %4 %5: %6\n").arg(date.shortMonthName(date.month())).arg(date.day()).arg(time.toString()).arg(hostName).arg(sensorName).arg(value);
}
@@ -139,7 +139,7 @@ SensorLogger::SensorLogger(TQWidget *parent, const char *name, const TQString& t
monitor->addColumn(i18n("Host Name"));
monitor->addColumn(i18n("Log File"));
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
cgroup.setColor(TQColorGroup::Text, KSGRD::Style->firstForegroundColor());
cgroup.setColor(TQColorGroup::Base, KSGRD::Style->backgroundColor());
cgroup.setColor(TQColorGroup::Foreground, KSGRD::Style->alarmColor());
@@ -232,7 +232,7 @@ SensorLogger::editSensor(LogSensor* sensor)
void
SensorLogger::configureSettings()
{
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
sls = new SensorLoggerSettings(this, "SensorLoggerSettings");
Q_CHECK_PTR(sls);
@@ -254,7 +254,7 @@ SensorLogger::configureSettings()
void
SensorLogger::applySettings()
{
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
setTitle(sls->title());
@@ -269,7 +269,7 @@ SensorLogger::applySettings()
void
SensorLogger::applyStyle(void)
{
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
cgroup.setColor(TQColorGroup::Text, KSGRD::Style->firstForegroundColor());
cgroup.setColor(TQColorGroup::Base, KSGRD::Style->backgroundColor());
@@ -282,7 +282,7 @@ SensorLogger::applyStyle(void)
bool
SensorLogger::restoreSettings(TQDomElement& element)
{
- TQColorGroup cgroup = monitor->colorGroup();
+ TQColorGroup cgroup = monitor->tqcolorGroup();
cgroup.setColor(TQColorGroup::Text, restoreColor(element, "textColor", Qt::green));
cgroup.setColor(TQColorGroup::Base, restoreColor(element, "backgroundColor", Qt::black));
@@ -319,9 +319,9 @@ SensorLogger::restoreSettings(TQDomElement& element)
bool
SensorLogger::saveSettings(TQDomDocument& doc, TQDomElement& element, bool save)
{
- saveColor(element, "textColor", monitor->colorGroup().text());
- saveColor(element, "backgroundColor", monitor->colorGroup().base());
- saveColor(element, "alarmColor", monitor->colorGroup().foreground());
+ saveColor(element, "textColor", monitor->tqcolorGroup().text());
+ saveColor(element, "backgroundColor", monitor->tqcolorGroup().base());
+ saveColor(element, "alarmColor", monitor->tqcolorGroup().foreground());
for (LogSensor* sensor = logSensors.first(); sensor != 0; sensor = logSensors.next())
{
diff --git a/ksysguard/gui/SensorDisplayLib/SensorLogger.h b/ksysguard/gui/SensorDisplayLib/SensorLogger.h
index 018e36bf9..c134da005 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorLogger.h
+++ b/ksysguard/gui/SensorDisplayLib/SensorLogger.h
@@ -44,10 +44,10 @@ public:
void setTextColor(const TQColor& color) { textColor = color; }
- void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) {
+ void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) {
TQColorGroup cgroup(cg);
cgroup.setColor(TQColorGroup::Text, textColor);
- TQListViewItem::paintCell(p, cgroup, column, width, alignment);
+ TQListViewItem::paintCell(p, cgroup, column, width, tqalignment);
}
diff --git a/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui b/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui
index 26d3b2d49..a281bb84b 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui
+++ b/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>SensorLoggerDlgWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -102,7 +102,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -127,7 +127,7 @@
<property name="enabled">
<bool>false</bool>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>70</width>
<height>0</height>
@@ -168,7 +168,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -193,7 +193,7 @@
<property name="enabled">
<bool>false</bool>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>70</width>
<height>0</height>
@@ -251,8 +251,8 @@
<function specifier="non virtual">setUpperLimit( double d )</function>
</functions>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/ksysguard/gui/SensorDisplayLib/SensorLoggerSettingsWidget.ui b/ksysguard/gui/SensorDisplayLib/SensorLoggerSettingsWidget.ui
index c86e671b2..849062674 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorLoggerSettingsWidget.ui
+++ b/ksysguard/gui/SensorDisplayLib/SensorLoggerSettingsWidget.ui
@@ -4,7 +4,7 @@
<property name="name">
<cstring>SensorLoggerSettingsWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -61,7 +61,7 @@
<property name="title">
<string>Colors</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="vAlign" stdset="0">
@@ -77,7 +77,7 @@
</property>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<vbox>
<property name="name">
@@ -111,7 +111,7 @@
</widget>
<widget class="QLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<vbox>
<property name="name">
@@ -175,6 +175,6 @@
<function specifier="non virtual">setBackgroundColor( const QColor &amp; c )</function>
<function specifier="non virtual">setAlarmColor( const QColor &amp; c )</function>
</functions>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc b/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc
index 3d4d9c6f6..835f072b2 100644
--- a/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc
+++ b/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc
@@ -50,7 +50,7 @@ SignalPlotter::SignalPlotter( TQWidget *parent, const char *name )
// Anything smaller than this does not make sense.
setMinimumSize( 16, 16 );
- setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding,
+ tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding,
TQSizePolicy::Expanding, false ) );
mShowVerticalLines = true;
@@ -390,7 +390,7 @@ void SignalPlotter::paintEvent( TQPaintEvent* )
uint w = width();
uint h = height();
- /* Do not do repaints when the widget is not yet setup properly. */
+ /* Do not do tqrepaints when the widget is not yet setup properly. */
if ( w <= 2 )
return;
@@ -401,7 +401,7 @@ void SignalPlotter::paintEvent( TQPaintEvent* )
pm.fill( mBackgroundColor );
/* Draw white line along the bottom and the right side of the
* widget to create a 3D like look. */
- p.setPen( TQColor( colorGroup().light() ) );
+ p.setPen( TQColor( tqcolorGroup().light() ) );
if(mShowThinFrame) {
p.drawLine( 0, h - 1, w - 1, h - 1 );
p.drawLine( w - 1, 0, w - 1, h - 1 );