diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
commit | a1bd60b34891ccc77056c190d7871bc4b14fe654 (patch) | |
tree | 713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kweather/serviceconfigwidget.cpp | |
parent | 8d92c3c2a4131996726cc7b625d3cd3caec296de (diff) | |
download | tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip |
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kweather/serviceconfigwidget.cpp')
-rw-r--r-- | kweather/serviceconfigwidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kweather/serviceconfigwidget.cpp b/kweather/serviceconfigwidget.cpp index 27a1013..8604f27 100644 --- a/kweather/serviceconfigwidget.cpp +++ b/kweather/serviceconfigwidget.cpp @@ -34,7 +34,7 @@ #include "serviceconfigwidget.h" #include "weatherservice_stub.h" -class StationItem : public QListViewItem +class StationItem : public TQListViewItem { public: StationItem( TQListView *view, const TQString &name, const TQString &uid ) @@ -55,8 +55,8 @@ class StationItem : public QListViewItem static void parseStationEntry( const TQString &line, TQString &name, TQString &uid ); -ServiceConfigWidget::ServiceConfigWidget( TQWidget *parent, const char *name ) - : wsPrefs( parent, name ), mService(0) +ServiceConfigWidget::ServiceConfigWidget( TQWidget *tqparent, const char *name ) + : wsPrefs( tqparent, name ), mService(0) { mService = new WeatherService_stub( "KWeatherService", "WeatherService" ); connect( mAllStations, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), TQT_SLOT( addStation() ) ); @@ -194,7 +194,7 @@ void ServiceConfigWidget::loadLocations() parseStationEntry( entryIt.data(), station, uid ); new StationItem( stateItem, station, uid ); mStationMap.insert( uid, TQString( "%1, %2" ) - .arg( station ).arg( *stateIt ) ); + .tqarg( station ).tqarg( *stateIt ) ); } } } @@ -224,7 +224,7 @@ void parseStationEntry( const TQString &line, TQString &name, TQString &uid ) for ( uint i = 0; i < list.count(); ++i ) { if ( inName ) { if ( list[ i ].endsWith( "\\" ) ) { - name.append( list[ i ].replace( "\\", " " ) ); + name.append( list[ i ].tqreplace( "\\", " " ) ); } else { name.append( list[ i ] ); inName = false; |