summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-13 21:03:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-13 21:03:36 +0900
commitb965cbac5b21345e9dfc768a7e4f660ffa4aa72f (patch)
tree7fcff5d301752cbdcdfff64d8791aff1369b803f /ksysguard/gui
parent7d6d35b42e00d6b6658951871b29489bdec80714 (diff)
downloadtdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.tar.gz
tdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ksysguard/gui')
-rw-r--r--ksysguard/gui/KSysGuardApplet.cpp4
-rw-r--r--ksysguard/gui/SensorBrowser.cpp2
-rw-r--r--ksysguard/gui/SensorDisplayLib/BarGraph.cpp4
-rw-r--r--ksysguard/gui/SensorDisplayLib/DancingBarsSettings.cpp8
-rw-r--r--ksysguard/gui/SensorDisplayLib/DummyDisplay.cpp2
-rw-r--r--ksysguard/gui/SensorDisplayLib/FancyPlotterSettings.cpp12
-rw-r--r--ksysguard/gui/SensorDisplayLib/LogFile.cpp4
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorDisplay.cpp8
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorLogger.cpp6
-rw-r--r--ksysguard/gui/SensorDisplayLib/SignalPlotter.cpp2
-rw-r--r--ksysguard/gui/WorkSheetSettings.cpp8
-rw-r--r--ksysguard/gui/ksgrd/HostConnector.cpp4
-rw-r--r--ksysguard/gui/ksgrd/StyleSettings.cpp2
-rw-r--r--ksysguard/gui/ksysguard.cpp2
14 files changed, 34 insertions, 34 deletions
diff --git a/ksysguard/gui/KSysGuardApplet.cpp b/ksysguard/gui/KSysGuardApplet.cpp
index 517a2bbd5..e1c8db73e 100644
--- a/ksysguard/gui/KSysGuardApplet.cpp
+++ b/ksysguard/gui/KSysGuardApplet.cpp
@@ -156,7 +156,7 @@ void KSysGuardApplet::sensorDisplayModified( bool modified )
void KSysGuardApplet::layout()
{
- if ( orientation() == Qt::Horizontal ) {
+ if ( orientation() == TQt::Horizontal ) {
int h = height();
int w = (int) ( h * mSizeRatio + 0.5 );
for ( uint i = 0; i < mDockCount; ++i )
@@ -173,7 +173,7 @@ void KSysGuardApplet::layout()
int KSysGuardApplet::findDock( const TQPoint& point )
{
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
return ( point.x() / (int) ( height() * mSizeRatio + 0.5 ) );
else
return ( point.y() / (int) ( width() * mSizeRatio + 0.5 ) );
diff --git a/ksysguard/gui/SensorBrowser.cpp b/ksysguard/gui/SensorBrowser.cpp
index 801091d98..32f290460 100644
--- a/ksysguard/gui/SensorBrowser.cpp
+++ b/ksysguard/gui/SensorBrowser.cpp
@@ -240,7 +240,7 @@ void SensorBrowser::viewportMouseMoveEvent( TQMouseEvent *e )
* mouse tracking cannot be turned off. So we have to check each event
* whether the LMB is really pressed. */
- if ( !( e->state() & Qt::LeftButton ) )
+ if ( !( e->state() & TQt::LeftButton ) )
return;
TQListViewItem* item = itemAt( e->pos() );
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 );
diff --git a/ksysguard/gui/WorkSheetSettings.cpp b/ksysguard/gui/WorkSheetSettings.cpp
index 703be57d5..e985cfafa 100644
--- a/ksysguard/gui/WorkSheetSettings.cpp
+++ b/ksysguard/gui/WorkSheetSettings.cpp
@@ -45,24 +45,24 @@ WorkSheetSettings::WorkSheetSettings( TQWidget* parent, const char* name )
TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- TQGroupBox *group = new TQGroupBox( 0, Qt::Vertical, i18n( "Title" ), page );
+ TQGroupBox *group = new TQGroupBox( 0, TQt::Vertical, i18n( "Title" ), page );
group->layout()->setMargin( marginHint() );
group->layout()->setSpacing( spacingHint() );
TQGridLayout *groupLayout = new TQGridLayout( group->layout(), 1, 1 );
- groupLayout->setAlignment( Qt::AlignTop );
+ groupLayout->setAlignment( TQt::AlignTop );
mSheetTitle = new KLineEdit( group );
groupLayout->addWidget( mSheetTitle, 0, 0 );
topLayout->addWidget( group );
- group = new TQGroupBox( 0, Qt::Vertical, i18n( "Properties" ), page );
+ group = new TQGroupBox( 0, TQt::Vertical, i18n( "Properties" ), page );
group->layout()->setMargin( marginHint() );
group->layout()->setSpacing( spacingHint() );
groupLayout = new TQGridLayout( group->layout(), 3, 2 );
- groupLayout->setAlignment( Qt::AlignTop );
+ groupLayout->setAlignment( TQt::AlignTop );
TQLabel *label = new TQLabel( i18n( "Rows:" ), group );
groupLayout->addWidget( label, 0, 0 );
diff --git a/ksysguard/gui/ksgrd/HostConnector.cpp b/ksysguard/gui/ksgrd/HostConnector.cpp
index b6e85b795..da3974ce9 100644
--- a/ksysguard/gui/ksgrd/HostConnector.cpp
+++ b/ksysguard/gui/ksgrd/HostConnector.cpp
@@ -57,11 +57,11 @@ HostConnector::HostConnector( TQWidget *parent, const char *name )
mHostNameLabel->hide();
layout->addWidget( mHostNameLabel, 0, 1 );
- TQButtonGroup *group = new TQButtonGroup( 0, Qt::Vertical,
+ TQButtonGroup *group = new TQButtonGroup( 0, TQt::Vertical,
i18n( "Connection Type" ), page );
TQGridLayout *groupLayout = new TQGridLayout( group->layout(), 4, 4,
spacingHint() );
- groupLayout->setAlignment( Qt::AlignTop );
+ groupLayout->setAlignment( TQt::AlignTop );
mUseSsh = new TQRadioButton( i18n( "ssh" ), group );
mUseSsh->setEnabled( true );
diff --git a/ksysguard/gui/ksgrd/StyleSettings.cpp b/ksysguard/gui/ksgrd/StyleSettings.cpp
index b84d3e407..71a18b713 100644
--- a/ksysguard/gui/ksgrd/StyleSettings.cpp
+++ b/ksysguard/gui/ksgrd/StyleSettings.cpp
@@ -90,7 +90,7 @@ StyleSettings::StyleSettings( TQWidget *parent, const char *name )
mEditColorButton = new TQPushButton( i18n( "Change Color..." ), page );
mEditColorButton->setEnabled( false );
- layout->addWidget( mEditColorButton, 0, 1, Qt::AlignTop );
+ layout->addWidget( mEditColorButton, 0, 1, TQt::AlignTop );
connect( mColorListBox, TQT_SIGNAL( selectionChanged( TQListBoxItem* ) ),
TQT_SLOT( selectionChanged( TQListBoxItem* ) ) );
diff --git a/ksysguard/gui/ksysguard.cpp b/ksysguard/gui/ksysguard.cpp
index 937c5fdd1..2c2994eaa 100644
--- a/ksysguard/gui/ksysguard.cpp
+++ b/ksysguard/gui/ksysguard.cpp
@@ -76,7 +76,7 @@ TopLevel::TopLevel( const char *name )
mTimerId = -1;
mSplitter = new TQSplitter( this );
- mSplitter->setOrientation( Qt::Horizontal );
+ mSplitter->setOrientation( TQt::Horizontal );
mSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
setCentralWidget( mSplitter );