summaryrefslogtreecommitdiffstats
path: root/kwin/data
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kwin/data
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/data')
-rw-r--r--kwin/data/update_default_rules.cpp10
-rw-r--r--kwin/data/update_window_settings.cpp62
2 files changed, 36 insertions, 36 deletions
diff --git a/kwin/data/update_default_rules.cpp b/kwin/data/update_default_rules.cpp
index 78adc6164..e43323ec9 100644
--- a/kwin/data/update_default_rules.cpp
+++ b/kwin/data/update_default_rules.cpp
@@ -21,7 +21,7 @@ int main( int argc, char* argv[] )
if( argc != 2 )
return 1;
KInstance inst( "kwin_update_default_rules" );
- QString file = locate( "data", QString( "kwin/default_rules/" ) + argv[ 1 ] );
+ TQString file = locate( "data", TQString( "kwin/default_rules/" ) + argv[ 1 ] );
if( file.isEmpty())
{
kdWarning() << "File " << argv[ 1 ] << " not found!" << endl;
@@ -37,11 +37,11 @@ int main( int argc, char* argv[] )
group <= count;
++group )
{
- QMap< QString, QString > entries = src_cfg.entryMap( QString::number( group ));
+ TQMap< TQString, TQString > entries = src_cfg.entryMap( TQString::number( group ));
++pos;
- dest_cfg.deleteGroup( QString::number( pos ));
- dest_cfg.setGroup( QString::number( pos ));
- for( QMap< QString, QString >::ConstIterator it = entries.begin();
+ dest_cfg.deleteGroup( TQString::number( pos ));
+ dest_cfg.setGroup( TQString::number( pos ));
+ for( TQMap< TQString, TQString >::ConstIterator it = entries.begin();
it != entries.end();
++it )
dest_cfg.writeEntry( it.key(), *it );
diff --git a/kwin/data/update_window_settings.cpp b/kwin/data/update_window_settings.cpp
index 369c1e4ea..0a39850d7 100644
--- a/kwin/data/update_window_settings.cpp
+++ b/kwin/data/update_window_settings.cpp
@@ -17,16 +17,16 @@ License. See the file "COPYING" for the exact licensing terms.
struct SessionInfo
{
- QCString sessionId;
- QCString windowRole;
- QCString wmCommand;
- QCString wmClientMachine;
- QCString resourceName;
- QCString resourceClass;
+ TQCString sessionId;
+ TQCString windowRole;
+ TQCString wmCommand;
+ TQCString wmClientMachine;
+ TQCString resourceName;
+ TQCString resourceClass;
- QRect geometry;
- QRect restore;
- QRect fsrestore;
+ TQRect geometry;
+ TQRect restore;
+ TQRect fsrestore;
int maximized;
int fullscreen;
int desktop;
@@ -43,7 +43,7 @@ struct SessionInfo
bool fake; // fake session, i.e. 'save window settings', not SM restored
};
-QPtrList<SessionInfo> fakeSession;
+TQPtrList<SessionInfo> fakeSession;
static const char* const window_type_names[] =
{
@@ -69,28 +69,28 @@ void loadFakeSessionInfo( KConfig* config )
int count = config->readNumEntry( "count" );
for ( int i = 1; i <= count; i++ )
{
- QString n = QString::number(i);
+ TQString n = TQString::number(i);
SessionInfo* info = new SessionInfo;
fakeSession.append( info );
- info->windowRole = config->readEntry( QString("windowRole")+n ).latin1();
- info->resourceName = config->readEntry( QString("resourceName")+n ).latin1();
- info->resourceClass = config->readEntry( QString("resourceClass")+n ).lower().latin1();
- info->wmClientMachine = config->readEntry( QString("clientMachine")+n ).latin1();
- info->geometry = config->readRectEntry( QString("geometry")+n );
- info->restore = config->readRectEntry( QString("restore")+n );
- info->fsrestore = config->readRectEntry( QString("fsrestore")+n );
- info->maximized = config->readNumEntry( QString("maximize")+n, 0 );
- info->fullscreen = config->readNumEntry( QString("fullscreen")+n, 0 );
- info->desktop = config->readNumEntry( QString("desktop")+n, 0 );
- info->minimized = config->readBoolEntry( QString("iconified")+n, FALSE );
- info->onAllDesktops = config->readBoolEntry( QString("sticky")+n, FALSE );
- info->shaded = config->readBoolEntry( QString("shaded")+n, FALSE );
- info->keepAbove = config->readBoolEntry( QString("staysOnTop")+n, FALSE );
- info->keepBelow = config->readBoolEntry( QString("keepBelow")+n, FALSE );
- info->skipTaskbar = config->readBoolEntry( QString("skipTaskbar")+n, FALSE );
- info->skipPager = config->readBoolEntry( QString("skipPager")+n, FALSE );
- info->userNoBorder = config->readBoolEntry( QString("userNoBorder")+n, FALSE );
- info->windowType = txtToWindowType( config->readEntry( QString("windowType")+n ).latin1());
+ info->windowRole = config->readEntry( TQString("windowRole")+n ).latin1();
+ info->resourceName = config->readEntry( TQString("resourceName")+n ).latin1();
+ info->resourceClass = config->readEntry( TQString("resourceClass")+n ).lower().latin1();
+ info->wmClientMachine = config->readEntry( TQString("clientMachine")+n ).latin1();
+ info->geometry = config->readRectEntry( TQString("geometry")+n );
+ info->restore = config->readRectEntry( TQString("restore")+n );
+ info->fsrestore = config->readRectEntry( TQString("fsrestore")+n );
+ info->maximized = config->readNumEntry( TQString("maximize")+n, 0 );
+ info->fullscreen = config->readNumEntry( TQString("fullscreen")+n, 0 );
+ info->desktop = config->readNumEntry( TQString("desktop")+n, 0 );
+ info->minimized = config->readBoolEntry( TQString("iconified")+n, FALSE );
+ info->onAllDesktops = config->readBoolEntry( TQString("sticky")+n, FALSE );
+ info->shaded = config->readBoolEntry( TQString("shaded")+n, FALSE );
+ info->keepAbove = config->readBoolEntry( TQString("staysOnTop")+n, FALSE );
+ info->keepBelow = config->readBoolEntry( TQString("keepBelow")+n, FALSE );
+ info->skipTaskbar = config->readBoolEntry( TQString("skipTaskbar")+n, FALSE );
+ info->skipPager = config->readBoolEntry( TQString("skipPager")+n, FALSE );
+ info->userNoBorder = config->readBoolEntry( TQString("userNoBorder")+n, FALSE );
+ info->windowType = txtToWindowType( config->readEntry( TQString("windowType")+n ).latin1());
info->active = false;
info->fake = true;
}
@@ -106,7 +106,7 @@ void writeRules( KConfig& cfg )
if( info->resourceName.isEmpty() && info->resourceClass.isEmpty())
continue;
++pos;
- cfg.setGroup( QString::number( pos ));
+ cfg.setGroup( TQString::number( pos ));
cfg.writeEntry( "description", ( const char* ) ( info->resourceClass + " (KDE3.2)" ));
cfg.writeEntry( "wmclass", ( const char* )( info->resourceName + ' ' + info->resourceClass ));
cfg.writeEntry( "wmclasscomplete", true );