summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/KSysGuardApplet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksysguard/gui/KSysGuardApplet.cpp')
-rw-r--r--ksysguard/gui/KSysGuardApplet.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/ksysguard/gui/KSysGuardApplet.cpp b/ksysguard/gui/KSysGuardApplet.cpp
index ae31d4a60..d5ae18b46 100644
--- a/ksysguard/gui/KSysGuardApplet.cpp
+++ b/ksysguard/gui/KSysGuardApplet.cpp
@@ -120,9 +120,9 @@ void KSysGuardApplet::preferences()
}
mSettingsDlg = new KSGAppletSettings( this );
- connect( mSettingsDlg, TQT_SIGNAL( applyClicked() ), TQT_SLOT( applySettings() ) );
- connect( mSettingsDlg, TQT_SIGNAL( okClicked() ), TQT_SLOT( applySettings() ) );
- connect( mSettingsDlg, TQT_SIGNAL( finished() ), TQT_SLOT( preferencesFinished() ) );
+ connect( mSettingsDlg, TQ_SIGNAL( applyClicked() ), TQ_SLOT( applySettings() ) );
+ connect( mSettingsDlg, TQ_SIGNAL( okClicked() ), TQ_SLOT( applySettings() ) );
+ connect( mSettingsDlg, TQ_SIGNAL( finished() ), TQ_SLOT( preferencesFinished() ) );
mSettingsDlg->setNumDisplay( mDockCount );
mSettingsDlg->setSizeRatio( (int) ( mSizeRatio * 100.0 + 0.5 ) );
@@ -142,7 +142,7 @@ void KSysGuardApplet::applySettings()
resizeDocks( mSettingsDlg->numDisplay() );
for ( uint i = 0; i < mDockCount; ++i )
- if ( !mDockList[ i ]->isA( TQFRAME_OBJECT_NAME_STRING ) )
+ if ( !mDockList[ i ]->isA( "TQFrame" ) )
((KSGRD::SensorDisplay*)mDockList[ i ])->setUpdateInterval( updateInterval() );
save();
@@ -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 ) );
@@ -201,7 +201,7 @@ void KSysGuardApplet::dropEvent( TQDropEvent *e )
return;
int dock = findDock( e->pos() );
- if ( mDockList[ dock ]->isA( TQFRAME_OBJECT_NAME_STRING ) ) {
+ if ( mDockList[ dock ]->isA( "TQFrame" ) ) {
if ( sensorType == "integer" || sensorType == "float" ) {
TDEPopupMenu popup;
TQWidget *wdg = 0;
@@ -232,8 +232,8 @@ void KSysGuardApplet::dropEvent( TQDropEvent *e )
mDockList[ dock ] = wdg;
layout();
- connect( wdg, TQT_SIGNAL( modified( bool ) ),
- TQT_SLOT( sensorDisplayModified( bool ) ) );
+ connect( wdg, TQ_SIGNAL( modified( bool ) ),
+ TQ_SLOT( sensorDisplayModified( bool ) ) );
mDockList[ dock ]->show();
}
@@ -246,7 +246,7 @@ void KSysGuardApplet::dropEvent( TQDropEvent *e )
}
}
- if ( !mDockList[ dock ]->isA( TQFRAME_OBJECT_NAME_STRING ) )
+ if ( !mDockList[ dock ]->isA( "TQFrame" ) )
((KSGRD::SensorDisplay*)mDockList[ dock ])->
addSensor( hostName, sensorName, sensorType, sensorDescr );
}
@@ -405,8 +405,8 @@ bool KSysGuardApplet::load()
delete mDockList[ dock ];
mDockList[ dock ] = newDisplay;
- connect( newDisplay, TQT_SIGNAL( modified( bool ) ),
- TQT_SLOT( sensorDisplayModified( bool ) ) );
+ connect( newDisplay, TQ_SIGNAL( modified( bool ) ),
+ TQ_SLOT( sensorDisplayModified( bool ) ) );
}
return true;
@@ -429,7 +429,7 @@ bool KSysGuardApplet::save()
TQStringList hosts;
uint i;
for ( i = 0; i < mDockCount; ++i )
- if ( !mDockList[ i ]->isA( TQFRAME_OBJECT_NAME_STRING ) )
+ if ( !mDockList[ i ]->isA( "TQFrame" ) )
((KSGRD::SensorDisplay*)mDockList[ i ])->hosts( hosts );
// save host information (name, shell, etc.)
@@ -449,7 +449,7 @@ bool KSysGuardApplet::save()
}
for ( i = 0; i < mDockCount; ++i )
- if ( !mDockList[ i ]->isA( TQFRAME_OBJECT_NAME_STRING ) ) {
+ if ( !mDockList[ i ]->isA( "TQFrame" ) ) {
TQDomElement element = doc.createElement( "display" );
ws.appendChild( element );
element.setAttribute( "dock", i );