summaryrefslogtreecommitdiffstats
path: root/kommander/editor/defs.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/editor/defs.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/editor/defs.cpp')
-rw-r--r--kommander/editor/defs.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kommander/editor/defs.cpp b/kommander/editor/defs.cpp
index fdf06ce9..9f158b6d 100644
--- a/kommander/editor/defs.cpp
+++ b/kommander/editor/defs.cpp
@@ -20,59 +20,59 @@
#include "defs.h"
-int size_type_to_int( QSizePolicy::SizeType t )
+int size_type_to_int( TQSizePolicy::SizeType t )
{
- if ( t == QSizePolicy::Fixed )
+ if ( t == TQSizePolicy::Fixed )
return 0;
- if ( t == QSizePolicy::Minimum )
+ if ( t == TQSizePolicy::Minimum )
return 1;
- if ( t == QSizePolicy::Maximum )
+ if ( t == TQSizePolicy::Maximum )
return 2;
- if ( t == QSizePolicy::Preferred )
+ if ( t == TQSizePolicy::Preferred )
return 3;
- if ( t == QSizePolicy::MinimumExpanding )
+ if ( t == TQSizePolicy::MinimumExpanding )
return 4;
- if ( t == QSizePolicy::Expanding )
+ if ( t == TQSizePolicy::Expanding )
return 5;
- if ( t == QSizePolicy::Ignored )
+ if ( t == TQSizePolicy::Ignored )
return 6;
return 0;
}
-QString size_type_to_string( QSizePolicy::SizeType t )
+TQString size_type_to_string( TQSizePolicy::SizeType t )
{
- if ( t == QSizePolicy::Fixed )
+ if ( t == TQSizePolicy::Fixed )
return "Fixed";
- if ( t == QSizePolicy::Minimum )
+ if ( t == TQSizePolicy::Minimum )
return "Minimum";
- if ( t == QSizePolicy::Maximum )
+ if ( t == TQSizePolicy::Maximum )
return "Maximum";
- if ( t == QSizePolicy::Preferred )
+ if ( t == TQSizePolicy::Preferred )
return "Preferred";
- if ( t == QSizePolicy::MinimumExpanding )
+ if ( t == TQSizePolicy::MinimumExpanding )
return "MinimumExpanding";
- if ( t == QSizePolicy::Expanding )
+ if ( t == TQSizePolicy::Expanding )
return "Expanding";
- if ( t == QSizePolicy::Ignored )
+ if ( t == TQSizePolicy::Ignored )
return "Ignored";
return 0;
}
-QSizePolicy::SizeType int_to_size_type( int i )
+TQSizePolicy::SizeType int_to_size_type( int i )
{
if ( i == 0 )
- return QSizePolicy::Fixed;
+ return TQSizePolicy::Fixed;
if ( i == 1 )
- return QSizePolicy::Minimum;
+ return TQSizePolicy::Minimum;
if ( i == 2 )
- return QSizePolicy::Maximum;
+ return TQSizePolicy::Maximum;
if ( i == 3 )
- return QSizePolicy::Preferred;
+ return TQSizePolicy::Preferred;
if ( i == 4 )
- return QSizePolicy::MinimumExpanding;
+ return TQSizePolicy::MinimumExpanding;
if ( i == 5 )
- return QSizePolicy::Expanding;
+ return TQSizePolicy::Expanding;
if ( i == 6 )
- return QSizePolicy::Ignored;
- return QSizePolicy::Preferred;
+ return TQSizePolicy::Ignored;
+ return TQSizePolicy::Preferred;
}