Browse Source

Initial TQt conversion

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Slávek Banko 3 years ago
parent
commit
96603e8acb
15 changed files with 4149 additions and 4149 deletions
  1. 27
    27
      client/clientData.h
  2. 51
    51
      client/config/config.cpp
  3. 13
    13
      client/config/config.h
  4. 223
    223
      client/dominoclient.cpp
  5. 37
    37
      client/dominoclient.h
  6. 88
    88
      domino/data.h
  7. 1727
    1727
      domino/domino.cpp
  8. 218
    218
      domino/domino.h
  9. 568
    568
      domino/eventfilter.cpp
  10. 21
    21
      domino/misc.cpp
  11. 5
    5
      domino/misc.h
  12. 11
    11
      dominoConfig/configData.h
  13. 831
    831
      dominoConfig/dominoconf.cpp
  14. 317
    317
      dominoConfig/dominoconf.h
  15. 12
    12
      getimages/getimages.cpp

+ 27
- 27
client/clientData.h View File

@@ -18,20 +18,20 @@
18 18
 
19 19
 #ifndef _QEMBED_CLIENTDATA
20 20
 #define _QEMBED_CLIENTDATA
21
-#include <qimage.h>
22
-#include <qdict.h>
23
-static const QRgb client_bottom_lines_dark_data[] = {
21
+#include <tqimage.h>
22
+#include <tqdict.h>
23
+static const TQRgb client_bottom_lines_dark_data[] = {
24 24
     0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x44000000,0x44000000,0x44000000,0x44000000,
25 25
     0x44000000,0x44000000,0x44000000,0x44000000,0x44000000,0x44000000
26 26
 };
27 27
 
28 28
 /* Generated by qembed */
29
-static const QRgb client_bottomLines_data[] = {
29
+static const TQRgb client_bottomLines_data[] = {
30 30
     0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x13000000,0x13000000,0x13000000,0x13000000,
31 31
     0x13000000,0x13000000,0x13000000,0x13000000,0x13000000,0x13000000
32 32
 };
33 33
 
34
-static const QRgb clientButtonContour_data[] = {
34
+static const TQRgb clientButtonContour_data[] = {
35 35
     0x0,0x0,0x0,0x0,0x2000000,0x9000000,0xe000000,0xf000000,0xf000000,0xe000000,0x9000000,0x2000000,0x0,0x0,
36 36
     0x0,0x0,0x0,0x0,0x1000000,0x7000000,0x27000000,0x8c000000,0xc4000000,0xc9000000,0xc9000000,0xc4000000,0x8c000000,0x27000000,
37 37
     0x7000000,0x1000000,0x0,0x0,0x0,0x0,0xa000000,0x64000000,0xca000000,0x6a000000,0x1b000000,0xf000000,0xf000000,0x1b000000,
@@ -53,7 +53,7 @@ static const QRgb clientButtonContour_data[] = {
53 53
     0x0,0x0,0x0,0x0
54 54
 };
55 55
 
56
-static const QRgb clientButtonPressed_data[] = {
56
+static const TQRgb clientButtonPressed_data[] = {
57 57
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
58 58
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xb151515,0x400b0b0b,0x420d0d0d,0x420d0d0d,0x41090909,0xb151515,0x0,
59 59
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x39131313,0x6d010101,0x68000000,0x62000000,0x62000000,0x67000000,
@@ -75,7 +75,7 @@ static const QRgb clientButtonPressed_data[] = {
75 75
     0x0,0x0,0x0,0x0
76 76
 };
77 77
 
78
-static const QRgb clientButtonShadow_data[] = {
78
+static const TQRgb clientButtonShadow_data[] = {
79 79
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
80 80
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x16fdfdfd,0x52fdfdfd,0x6ffdfdfd,0x6ffdfdfd,0x50fdfdfd,0x16fdfdfd,0x0,
81 81
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xafdfdfd,0x7bfcfcfc,0x78fdfdfd,0x65ffffff,0x6ffdfdfd,0x6ffdfdfd,0x65ffffff,
@@ -97,18 +97,18 @@ static const QRgb clientButtonShadow_data[] = {
97 97
     0x3ffffff,0x0,0x0,0x0
98 98
 };
99 99
 
100
-static const QRgb client_close_6x6_data[] = {
100
+static const TQRgb client_close_6x6_data[] = {
101 101
     0x6c2a2a2a,0x6b2a2a2a,0x0,0x0,0x6b2a2a2a,0x702a2a2a,0x7b2a2a2a,0xd62a2a2a,0x5c2a2a2a,0x792a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x7b2a2a2a,
102 102
     0xd62a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x0,0x7b2a2a2a,0xd62a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x7b2a2a2a,0xd62a2a2a,0x782a2a2a,0x5e2a2a2a,
103 103
     0xd62a2a2a,0x782a2a2a,0x6c2a2a2a,0x782a2a2a,0x0,0x0,0x5e2a2a2a,0x6c2a2a2a
104 104
 };
105 105
 
106
-static const QRgb client_dot_4x4_data[] = {
106
+static const TQRgb client_dot_4x4_data[] = {
107 107
     0x422a2a2a,0x9b2a2a2a,0x9b2a2a2a,0x422a2a2a,0x9b2a2a2a,0xb02a2a2a,0xb02a2a2a,0x9b2a2a2a,0x9b2a2a2a,0xb02a2a2a,0xb02a2a2a,0x9b2a2a2a,0x422a2a2a,0x9b2a2a2a,
108 108
     0x9b2a2a2a,0x422a2a2a
109 109
 };
110 110
 
111
-static const QRgb client_edges_dark_data[] = {
111
+static const TQRgb client_edges_dark_data[] = {
112 112
     0x0,0x0,0x0,0x34000000,0x35000000,0x35000000,0x34000000,0x0,0x0,0x0,0x0,0x0,0x34000000,0x2b000000,
113 113
     0xe000000,0xe000000,0x2b000000,0x34000000,0x0,0x0,0x0,0x39000000,0x23000000,0x10000000,0x3000000,0x3000000,0x10000000,0x23000000,
114 114
     0x39000000,0x0,0x3000000,0x38000000,0x11000000,0x3000000,0x0,0x0,0x3000000,0x11000000,0x38000000,0x3000000,0x34000000,0x2a000000,
@@ -120,7 +120,7 @@ static const QRgb client_edges_dark_data[] = {
120 120
     0x0,0x41000000,0x44000000,0x44000000,0x41000000,0x0,0x0,0x0
121 121
 };
122 122
 
123
-static const QRgb client_edges_data[] = {
123
+static const TQRgb client_edges_data[] = {
124 124
     0x0,0x0,0x0,0x2fffffff,0x31ffffff,0x31ffffff,0x2fffffff,0x0,0x0,0x0,0x0,0x0,0x2effffff,0x25ffffff,
125 125
     0x11ffffff,0x11ffffff,0x25ffffff,0x2effffff,0x0,0x0,0x0,0x34ffffff,0x1fffffff,0xeffffff,0x3ffffff,0x3ffffff,0xeffffff,0x1fffffff,
126 126
     0x34ffffff,0x0,0x2ffffff,0x33ffffff,0xeffffff,0x3ffffff,0x0,0x0,0x3ffffff,0xeffffff,0x33ffffff,0x2ffffff,0x2fffffff,0x1fffffff,
@@ -132,17 +132,17 @@ static const QRgb client_edges_data[] = {
132 132
     0x0,0x12000000,0x13000000,0x13000000,0x12000000,0x0,0x0,0x0
133 133
 };
134 134
 
135
-static const QRgb client_help_5x8_data[] = {
135
+static const TQRgb client_help_5x8_data[] = {
136 136
     0x22a2a2a,0x772a2a2a,0xc22a2a2a,0xbd2a2a2a,0x302a2a2a,0x3b2a2a2a,0xd22a2a2a,0x612a2a2a,0x862a2a2a,0xbd2a2a2a,0x22a2a2a,0x22a2a2a,0x0,0x5b2a2a2a,
137 137
     0xba2a2a2a,0x0,0x0,0x462a2a2a,0xbd2a2a2a,0x3e2a2a2a,0x0,0x0,0xd12a2a2a,0x682a2a2a,0x0,0x0,0x0,0x542a2a2a,
138 138
     0x2a2a2a2a,0x0,0x0,0x0,0xb82a2a2a,0x5b2a2a2a,0x0,0x0,0x0,0x262a2a2a,0x82a2a2a,0x0
139 139
 };
140 140
 
141
-static const QRgb client_line_6x2_data[] = {
141
+static const TQRgb client_line_6x2_data[] = {
142 142
     0x852a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0x852a2a2a,0x432a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x432a2a2a
143 143
 };
144 144
 
145
-static const QRgb client_max_8x8_data[] = {
145
+static const TQRgb client_max_8x8_data[] = {
146 146
     0x0,0x0,0x0,0x852a2a2a,0x442a2a2a,0x0,0x0,0x0,0x0,0x0,0x0,0xbe2a2a2a,0x602a2a2a,0x0,
147 147
     0x0,0x0,0x12a2a2a,0x12a2a2a,0x0,0xbe2a2a2a,0x602a2a2a,0x0,0x0,0x0,0x852a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,
148 148
     0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0x852a2a2a,0x442a2a2a,0x602a2a2a,0x602a2a2a,0xbe2a2a2a,0x902a2a2a,0x622a2a2a,0x632a2a2a,0x452a2a2a,0x0,0x0,
@@ -150,27 +150,27 @@ static const QRgb client_max_8x8_data[] = {
150 150
     0x0,0x0,0x0,0x852a2a2a,0x442a2a2a,0x0,0x0,0x0
151 151
 };
152 152
 
153
-static const QRgb client_right_lines2_data[] = {
153
+static const TQRgb client_right_lines2_data[] = {
154 154
     0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,
155 155
     0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff
156 156
 };
157 157
 
158
-static const QRgb client_right_lines_dark_data[] = {
158
+static const TQRgb client_right_lines_dark_data[] = {
159 159
     0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,
160 160
     0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000
161 161
 };
162 162
 
163
-static const QRgb client_topLines2_data[] = {
163
+static const TQRgb client_topLines2_data[] = {
164 164
     0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,
165 165
     0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff
166 166
 };
167 167
 
168
-static const QRgb client_top_lines_dark_data[] = {
168
+static const TQRgb client_top_lines_dark_data[] = {
169 169
     0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x13000000,0x13000000,0x13000000,0x13000000,
170 170
     0x13000000,0x13000000,0x13000000,0x13000000,0x13000000,0x13000000
171 171
 };
172 172
 
173
-static const QRgb client_upArrow_6x8_data[] = {
173
+static const TQRgb client_upArrow_6x8_data[] = {
174 174
     0x0,0x0,0x492a2a2a,0x142a2a2a,0x0,0x0,0x0,0x4a2a2a2a,0xb92a2a2a,0xa82a2a2a,0x1e2a2a2a,0x0,0x572a2a2a,0xb92a2a2a,
175 175
     0xb92a2a2a,0xb82a2a2a,0xac2a2a2a,0x1d2a2a2a,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,
176 176
     0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,
@@ -182,7 +182,7 @@ static struct EmbedImage {
182 182
     int width, height, depth;
183 183
     const unsigned char *data;
184 184
     int numColors;
185
-    const QRgb *colorTable;
185
+    const TQRgb *colorTable;
186 186
     bool alpha;
187 187
     const char *name;
188 188
 } embed_image_vec[] = {
@@ -206,20 +206,20 @@ static struct EmbedImage {
206 206
 	{ 0, 0, 0, 0, 0, 0, 0, 0 }
207 207
 };
208 208
 
209
-static const QImage& qembed_findImage( const QString& name )
209
+static const TQImage& qembed_findImage( const TQString& name )
210 210
 {
211
-    static QDict<QImage> dict;
212
-    QImage* img = dict.find( name );
211
+    static TQDict<TQImage> dict;
212
+    TQImage* img = dict.find( name );
213 213
     if ( !img ) {
214 214
 	for ( int i = 0; embed_image_vec[i].data; i++ ) {
215 215
 	    if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) {
216
-		img = new QImage((uchar*)embed_image_vec[i].data,
216
+		img = new TQImage((uchar*)embed_image_vec[i].data,
217 217
 			    embed_image_vec[i].width,
218 218
 			    embed_image_vec[i].height,
219 219
 			    embed_image_vec[i].depth,
220
-			    (QRgb*)embed_image_vec[i].colorTable,
220
+			    (TQRgb*)embed_image_vec[i].colorTable,
221 221
 			    embed_image_vec[i].numColors,
222
-			    QImage::BigEndian );
222
+			    TQImage::BigEndian );
223 223
 		if ( embed_image_vec[i].alpha )
224 224
 		    img->setAlphaBuffer( TRUE );
225 225
 		dict.insert( name, img );
@@ -227,7 +227,7 @@ static const QImage& qembed_findImage( const QString& name )
227 227
 	    }
228 228
 	}
229 229
 	if ( !img ) {
230
-	    static QImage dummy;
230
+	    static TQImage dummy;
231 231
 	    return dummy;
232 232
 	}
233 233
     }

+ 51
- 51
client/config/config.cpp View File

@@ -23,15 +23,15 @@
23 23
 #include "config.h"
24 24
 #include <kglobal.h>
25 25
 #include <klocale.h>
26
-#include <qvbox.h>
27
-#include <qlayout.h>
28
-#include <qlabel.h>
29
-#include <qgroupbox.h>
30
-#include <qsettings.h>
26
+#include <tqvbox.h>
27
+#include <tqlayout.h>
28
+#include <tqlabel.h>
29
+#include <tqgroupbox.h>
30
+#include <tqsettings.h>
31 31
 
32 32
 extern "C"
33 33
 {
34
-	KDE_EXPORT QObject* allocate_config( KConfig* config, QWidget* parent )
34
+	KDE_EXPORT TQObject* allocate_config( KConfig* config, TQWidget* parent )
35 35
 	{
36 36
 		return(new DominoConfig(config, parent));
37 37
 	}
@@ -40,81 +40,81 @@ extern "C"
40 40
 // NOTE:
41 41
 // 'config' is a pointer to the kwindecoration modules open kwin config,
42 42
 //		  and is by default set to the "Style" group.
43
-// 'parent' is the parent of the QObject, which is a VBox inside the
43
+// 'parent' is the parent of the TQObject, which is a VBox inside the
44 44
 //		  Configure tab in kwindecoration
45 45
 
46
-DominoConfig::DominoConfig( KConfig* config, QWidget* parent )
47
-	: QObject( parent )
46
+DominoConfig::DominoConfig( KConfig* config, TQWidget* parent )
47
+	: TQObject( parent )
48 48
 {
49 49
 	conf = new KConfig("kwindominorc");
50 50
 	
51 51
 	KGlobal::locale()->insertCatalogue("kwin_clients");
52 52
 	
53
-	vBox = new QVBox( parent );
53
+	vBox = new TQVBox( parent );
54 54
 
55
-	customBorderColor = new QCheckBox( i18n("Custom border color"), vBox );
56
-	QHBox *hbox1 = new QHBox(vBox);
57
-	hbox1->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
55
+	customBorderColor = new TQCheckBox( i18n("Custom border color"), vBox );
56
+	TQHBox *hbox1 = new TQHBox(vBox);
57
+	hbox1->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
58 58
 	borderColor = new KColorButton(hbox1);
59 59
 	
60
-	customButtonColor = new QCheckBox( i18n("Custom button color"), vBox );
61
-	QHBox *hbox2 = new QHBox(vBox);
62
-	hbox2->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
60
+	customButtonColor = new TQCheckBox( i18n("Custom button color"), vBox );
61
+	TQHBox *hbox2 = new TQHBox(vBox);
62
+	hbox2->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
63 63
 	buttonColor = new KColorButton(hbox2);
64 64
 	
65
-	customButtonIconColor = new QCheckBox( i18n("Custom button icon color"), vBox );
66
-	QHBox *hbox3 = new QHBox(vBox);
67
-	hbox3->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
65
+	customButtonIconColor = new TQCheckBox( i18n("Custom button icon color"), vBox );
66
+	TQHBox *hbox3 = new TQHBox(vBox);
67
+	hbox3->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
68 68
 	buttonIconColor = new KColorButton(hbox3);
69 69
 	
70
-	customGradientColors = new QCheckBox( i18n("Custom gradient colors"), vBox);
71
-	QHBox *hbox4 = new QHBox(vBox);
72
-	hbox4->layout()->addItem(new QSpacerItem(22, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
70
+	customGradientColors = new TQCheckBox( i18n("Custom gradient colors"), vBox);
71
+	TQHBox *hbox4 = new TQHBox(vBox);
72
+	hbox4->layout()->addItem(new TQSpacerItem(22, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
73 73
 	
74
-	QVBox *vbox1 = new QVBox(hbox4);
75
-	new QLabel( i18n("Top gradient color"), vbox1);
74
+	TQVBox *vbox1 = new TQVBox(hbox4);
75
+	new TQLabel( i18n("Top gradient color"), vbox1);
76 76
 	topGradientColor = new KColorButton(vbox1);
77
-	new QLabel(i18n("Bottom gradient color"), vbox1);
77
+	new TQLabel(i18n("Bottom gradient color"), vbox1);
78 78
 	bottomGradientColor = new KColorButton(vbox1);
79 79
 	
80
-	showInactiveButtons = new QCheckBox( i18n("Show inactive buttons"), vBox );
81
-	showButtonIcons  = new QCheckBox( i18n("Show button icons"), vBox );
82
-	darkFrame  = new QCheckBox( i18n("Dark window frame"), vBox );
80
+	showInactiveButtons = new TQCheckBox( i18n("Show inactive buttons"), vBox );
81
+	showButtonIcons  = new TQCheckBox( i18n("Show button icons"), vBox );
82
+	darkFrame  = new TQCheckBox( i18n("Dark window frame"), vBox );
83 83
 	
84 84
 	
85 85
 	///////////////////////////////////////
86 86
 	
87 87
 	
88
-	QGroupBox* colorGb = new QGroupBox(vBox);
88
+	TQGroupBox* colorGb = new TQGroupBox(vBox);
89 89
 	colorGb->setTitle(i18n("Button contour colors:"));
90
-	colorGb->setColumnLayout(0, Qt::Vertical );
90
+	colorGb->setColumnLayout(0, TQt::Vertical );
91 91
 	colorGb->layout()->setSpacing( 6 );
92 92
 	colorGb->layout()->setMargin( 11 );
93 93
 	
94
-	QGridLayout* gbLayout = new QGridLayout( colorGb->layout(), 4, 2 );
95
-	gbLayout->setAlignment( Qt::AlignTop );
94
+	TQGridLayout* gbLayout = new TQGridLayout( colorGb->layout(), 4, 2 );
95
+	gbLayout->setAlignment( TQt::AlignTop );
96 96
 	
97
-	QLabel* labelSC = new QLabel(i18n("Standard color:"), colorGb);
97
+	TQLabel* labelSC = new TQLabel(i18n("Standard color:"), colorGb);
98 98
 	buttonContourColor = new KColorButton(colorGb);
99
-	buttonContourColor->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
100
-	QLabel* labelMC = new QLabel(i18n("Mouseover color:"), colorGb);
99
+	buttonContourColor->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Minimum);
100
+	TQLabel* labelMC = new TQLabel(i18n("Mouseover color:"), colorGb);
101 101
 	buttonMouseOverContourColor = new KColorButton(colorGb);
102
-	QLabel* labelPC = new QLabel(i18n("Pressed color:"), colorGb);
102
+	TQLabel* labelPC = new TQLabel(i18n("Pressed color:"), colorGb);
103 103
 	buttonPressedContourColor = new KColorButton(colorGb);
104 104
 	
105
-	useDominoStyleContourColors = new QCheckBox( i18n("Use domino style contour colors"), colorGb );
105
+	useDominoStyleContourColors = new TQCheckBox( i18n("Use domino style contour colors"), colorGb );
106 106
 	gbLayout->addMultiCellWidget(useDominoStyleContourColors, 0, 0, 0, 1);
107 107
 	
108 108
 	gbLayout->addWidget(labelSC, 1, 0);
109
-	gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
109
+	gbLayout->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
110 110
 	gbLayout->addWidget(buttonContourColor, 1, 1);
111 111
 	
112 112
 	gbLayout->addWidget(labelMC, 2, 0);
113
-	gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
113
+	gbLayout->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
114 114
 	gbLayout->addWidget(buttonMouseOverContourColor, 2, 1);
115 115
 	
116 116
 	gbLayout->addWidget(labelPC, 3, 0);
117
-	gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
117
+	gbLayout->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
118 118
 	gbLayout->addWidget(buttonPressedContourColor, 3, 1);
119 119
 	
120 120
 	
@@ -139,17 +139,17 @@ DominoConfig::DominoConfig( KConfig* config, QWidget* parent )
139 139
 	connect(customButtonIconColor, SIGNAL(toggled(bool)), buttonIconColor, SLOT(setEnabled(bool)));
140 140
 	
141 141
 	connect(customGradientColors, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
142
-	connect(topGradientColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
143
-	connect(bottomGradientColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
142
+	connect(topGradientColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
143
+	connect(bottomGradientColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
144 144
 	
145 145
 	
146 146
 	connect(customBorderColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
147
-	connect(borderColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
147
+	connect(borderColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
148 148
 	
149 149
 	connect(customButtonColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
150
-	connect(buttonColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
150
+	connect(buttonColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
151 151
 	connect(customButtonIconColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
152
-	connect(buttonIconColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
152
+	connect(buttonIconColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
153 153
 	
154 154
 	connect(showInactiveButtons, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
155 155
 	connect(showButtonIcons, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
@@ -157,9 +157,9 @@ DominoConfig::DominoConfig( KConfig* config, QWidget* parent )
157 157
 	
158 158
 	connect(useDominoStyleContourColors, SIGNAL(clicked()), this, SLOT(loadButtonContourColors()));
159 159
 	connect(useDominoStyleContourColors, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
160
-	connect(buttonContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
161
-	connect(buttonMouseOverContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
162
-	connect(buttonPressedContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
160
+	connect(buttonContourColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
161
+	connect(buttonMouseOverContourColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
162
+	connect(buttonPressedContourColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
163 163
 	
164 164
 	
165 165
 	// Make the widgets visible in kwindecoration valueChanged
@@ -245,7 +245,7 @@ void DominoConfig::save(KConfig*)
245 245
 void DominoConfig::defaults()
246 246
 {
247 247
 	
248
-	QColor background = vBox->paletteBackgroundColor();
248
+	TQColor background = vBox->paletteBackgroundColor();
249 249
 	
250 250
 	customBorderColor->setChecked(true);
251 251
 	borderColor->setColor("#777B7F");
@@ -269,9 +269,9 @@ void DominoConfig::defaults()
269 269
 
270 270
 void DominoConfig::loadButtonContourColors() {
271 271
 	
272
-	QColor background = vBox->paletteBackgroundColor();
272
+	TQColor background = vBox->paletteBackgroundColor();
273 273
 	if(useDominoStyleContourColors->isChecked()) {
274
-		QSettings s;
274
+		TQSettings s;
275 275
 		buttonContourColor->setColor(s.readEntry("/domino/Settings/buttonContourColor", background.dark(250).name()));
276 276
 		buttonMouseOverContourColor->setColor(s.readEntry("/domino/Settings/buttonMouseOverContourColor", background.dark(250).name()));
277 277
 		buttonPressedContourColor->setColor(s.readEntry("/domino/Settings/buttonPressedContourColor", background.dark(250).name()));

+ 13
- 13
client/config/config.h View File

@@ -23,17 +23,17 @@
23 23
 #ifndef DOMINOCONFIG_H
24 24
 #define DOMINOCONFIG_H
25 25
 
26
-#include <qcheckbox.h>
26
+#include <tqcheckbox.h>
27 27
 #include <kconfig.h>
28
-#include <qvbox.h>
28
+#include <tqvbox.h>
29 29
 #include <kcolorbutton.h>
30 30
 
31
-class DominoConfig: public QObject
31
+class DominoConfig: public TQObject
32 32
 {
33 33
 	Q_OBJECT
34 34
 
35 35
 	public:
36
-		DominoConfig( KConfig* config, QWidget* parent );
36
+		DominoConfig( KConfig* config, TQWidget* parent );
37 37
 		~DominoConfig();
38 38
 
39 39
 	// These public signals/slots work similar to KCM modules
@@ -50,22 +50,22 @@ class DominoConfig: public QObject
50 50
 		void loadButtonContourColors();
51 51
 	private:
52 52
 		KConfig* conf;
53
-		QVBox* vBox;
54
-		QCheckBox* customBorderColor;
53
+		TQVBox* vBox;
54
+		TQCheckBox* customBorderColor;
55 55
 		KColorButton* borderColor;
56
-		QCheckBox* customButtonColor;
56
+		TQCheckBox* customButtonColor;
57 57
 		KColorButton* buttonColor;
58
-		QCheckBox* customButtonIconColor;
58
+		TQCheckBox* customButtonIconColor;
59 59
 		KColorButton* buttonIconColor;
60 60
 		
61
-		QCheckBox* showInactiveButtons;
62
-		QCheckBox* showButtonIcons;
63
-		QCheckBox* customGradientColors;
61
+		TQCheckBox* showInactiveButtons;
62
+		TQCheckBox* showButtonIcons;
63
+		TQCheckBox* customGradientColors;
64 64
 		KColorButton* topGradientColor;
65 65
 		KColorButton* bottomGradientColor;
66
-		QCheckBox* darkFrame;
66
+		TQCheckBox* darkFrame;
67 67
 		
68
-		QCheckBox* useDominoStyleContourColors;
68
+		TQCheckBox* useDominoStyleContourColors;
69 69
 		KColorButton* buttonContourColor;
70 70
 		KColorButton* buttonMouseOverContourColor;
71 71
 		KColorButton* buttonPressedContourColor;

+ 223
- 223
client/dominoclient.cpp View File

@@ -25,16 +25,16 @@
25 25
 
26 26
 #include <kconfig.h>
27 27
 #include <kglobal.h>
28
-#include <qlayout.h>
29
-#include <qbitmap.h>
30
-#include <qimage.h>
31
-#include <qapplication.h>
32
-#include <qlabel.h>
33
-#include <qpixmap.h>
28
+#include <tqlayout.h>
29
+#include <tqbitmap.h>
30
+#include <tqimage.h>
31
+#include <tqapplication.h>
32
+#include <tqlabel.h>
33
+#include <tqpixmap.h>
34 34
 #include <X11/extensions/shape.h>
35
-#include <qwmatrix.h>
36
-#include <qpainter.h>
37
-#include <qsettings.h>
35
+#include <tqwmatrix.h>
36
+#include <tqpainter.h>
37
+#include <tqsettings.h>
38 38
 
39 39
 
40 40
 namespace Domino
@@ -46,53 +46,53 @@ const int titleEdgeTop = 3;
46 46
 const int titleEdgeBottom = 1;
47 47
 static int titleHeight;
48 48
 
49
-static QPixmap* buttonPix;
50
-static QPixmap* buttonHidePix;
51
-static QPixmap* titleBarPix;
52
-static QPixmap* borderTopLeftPix;
53
-static QPixmap* borderTopRightPix;
54
-static QPixmap* borderBottomPix;
55
-static QPixmap* borderBottomLeftPix;
56
-static QPixmap* borderBottomRightPix;
57
-static QPixmap* borderLeftPix;
58
-static QPixmap* borderRightPix;
59
-
60
-
61
-static QPixmap* closeButtonIcon;
62
-static QPixmap* minButtonIcon;
63
-static QPixmap* maxButtonIcon;
64
-static QPixmap* helpButtonIcon;
65
-static QPixmap* onAllDesktopsButtonIcon;
66
-static QPixmap* shadeButtonIcon;
67
-static QPixmap* aboveButtonIcon;
68
-static QPixmap* belowButtonIcon;
69
-
70
-static QPixmap* pressedCloseButtonIcon;
71
-static QPixmap* pressedMinButtonIcon;
72
-static QPixmap* pressedMaxButtonIcon;
73
-static QPixmap* pressedHelpButtonIcon;
74
-static QPixmap* pressedOnAllDesktopsButtonIcon;
75
-static QPixmap* pressedShadeButtonIcon;
76
-static QPixmap* pressedAboveButtonIcon;
77
-static QPixmap* pressedBelowButtonIcon;
78
-
79
-static QPixmap* mouseOverCloseButtonIcon;
80
-static QPixmap* mouseOverMinButtonIcon;
81
-static QPixmap* mouseOverMaxButtonIcon;
82
-static QPixmap* mouseOverHelpButtonIcon;
83
-static QPixmap* mouseOverOnAllDesktopsButtonIcon;
84
-static QPixmap* mouseOverShadeButtonIcon;
85
-static QPixmap* mouseOverAboveButtonIcon;
86
-static QPixmap* mouseOverBelowButtonIcon;
49
+static TQPixmap* buttonPix;
50
+static TQPixmap* buttonHidePix;
51
+static TQPixmap* titleBarPix;
52
+static TQPixmap* borderTopLeftPix;
53
+static TQPixmap* borderTopRightPix;
54
+static TQPixmap* borderBottomPix;
55
+static TQPixmap* borderBottomLeftPix;
56
+static TQPixmap* borderBottomRightPix;
57
+static TQPixmap* borderLeftPix;
58
+static TQPixmap* borderRightPix;
59
+
60
+
61
+static TQPixmap* closeButtonIcon;
62
+static TQPixmap* minButtonIcon;
63
+static TQPixmap* maxButtonIcon;
64
+static TQPixmap* helpButtonIcon;
65
+static TQPixmap* onAllDesktopsButtonIcon;
66
+static TQPixmap* shadeButtonIcon;
67
+static TQPixmap* aboveButtonIcon;
68
+static TQPixmap* belowButtonIcon;
69
+
70
+static TQPixmap* pressedCloseButtonIcon;
71
+static TQPixmap* pressedMinButtonIcon;
72
+static TQPixmap* pressedMaxButtonIcon;
73
+static TQPixmap* pressedHelpButtonIcon;
74
+static TQPixmap* pressedOnAllDesktopsButtonIcon;
75
+static TQPixmap* pressedShadeButtonIcon;
76
+static TQPixmap* pressedAboveButtonIcon;
77
+static TQPixmap* pressedBelowButtonIcon;
78
+
79
+static TQPixmap* mouseOverCloseButtonIcon;
80
+static TQPixmap* mouseOverMinButtonIcon;
81
+static TQPixmap* mouseOverMaxButtonIcon;
82
+static TQPixmap* mouseOverHelpButtonIcon;
83
+static TQPixmap* mouseOverOnAllDesktopsButtonIcon;
84
+static TQPixmap* mouseOverShadeButtonIcon;
85
+static TQPixmap* mouseOverAboveButtonIcon;
86
+static TQPixmap* mouseOverBelowButtonIcon;
87 87
 
88 88
 static bool buttonInputShape;
89
-static QBitmap* buttonShapeBitmap;
89
+static TQBitmap* buttonShapeBitmap;
90 90
 
91
-static QColor background;
92
-static QColor topGradientColor;
93
-static QColor bottomGradientColor;
94
-static QColor topBorderGradientColor;
95
-static QColor bottomBorderGradientColor;
91
+static TQColor background;
92
+static TQColor topGradientColor;
93
+static TQColor bottomGradientColor;
94
+static TQColor topBorderGradientColor;
95
+static TQColor bottomBorderGradientColor;
96 96
 static bool showButtonIcons;
97 97
 static bool showInactiveButtons;
98 98
 
@@ -106,8 +106,8 @@ DominoHandler::DominoHandler()
106 106
 {
107 107
 	int ignore, maj, min;
108 108
 	
109
-	if(XShapeQueryExtension(qt_xdisplay(), &ignore, &ignore) &&
110
-		  XShapeQueryVersion(qt_xdisplay(), &maj, &min) &&
109
+	if(XShapeQueryExtension(tqt_xdisplay(), &ignore, &ignore) &&
110
+		  XShapeQueryVersion(tqt_xdisplay(), &maj, &min) &&
111 111
 		  maj >= 1 && min >= 1) {
112 112
 		
113 113
 		buttonInputShape = true;
@@ -159,8 +159,8 @@ unsigned long DominoHandler::readConfig( bool update )
159 159
 	KConfig conf("kwindominorc");
160 160
 	conf.setGroup("General");
161 161
 	
162
-	titleHeight = QMAX(QFontMetrics(options()->font(true)).height(), 16);
163
-	background = qApp->palette().active().background();
162
+	titleHeight = TQMAX(TQFontMetrics(options()->font(true)).height(), 16);
163
+	background = tqApp->palette().active().background();
164 164
 	
165 165
 	customBorderColor = conf.readBoolEntry("customBorderColor", true);
166 166
 	borderColor = customBorderColor ? conf.readEntry("borderColor", "#777B7F") : background;
@@ -174,10 +174,10 @@ unsigned long DominoHandler::readConfig( bool update )
174 174
 	darkLines = conf.readBoolEntry("darkFrame", false);
175 175
 	
176 176
 	if(!conf.readBoolEntry( "customGradientColors", false)) {
177
-		topGradientColor = alphaBlendColors(background, Qt::white, 180);
178
-		bottomGradientColor = alphaBlendColors(background, Qt::black, 230);
179
-		topBorderGradientColor = alphaBlendColors(borderColor, Qt::white, 180);
180
-		bottomBorderGradientColor = alphaBlendColors(borderColor, Qt::black, 230);
177
+		topGradientColor = alphaBlendColors(background, TQt::white, 180);
178
+		bottomGradientColor = alphaBlendColors(background, TQt::black, 230);
179
+		topBorderGradientColor = alphaBlendColors(borderColor, TQt::white, 180);
180
+		bottomBorderGradientColor = alphaBlendColors(borderColor, TQt::black, 230);
181 181
 	}
182 182
 	else {
183 183
 		topGradientColor = conf.readEntry("topGradientColor", "#ffffff");
@@ -191,7 +191,7 @@ unsigned long DominoHandler::readConfig( bool update )
191 191
 	}
192 192
 	
193 193
 	if(conf.readBoolEntry("useDominoStyleContourColors", true)) {
194
-		QSettings s;
194
+		TQSettings s;
195 195
 		buttonContourColor = s.readEntry("/domino/Settings/buttonContourColor", background.dark(250).name());
196 196
 		buttonMouseOverContourColor = s.readEntry("/domino/Settings/buttonMouseOverContourColor", background.dark(250).name());
197 197
 		buttonPressedContourColor = s.readEntry("/domino/Settings/buttonPressedContourColor", background.dark(250).name());
@@ -210,10 +210,10 @@ unsigned long DominoHandler::readConfig( bool update )
210 210
 void DominoHandler::createPixmaps()
211 211
 {
212 212
 	
213
-	QImage edges;
214
-	QImage topLines;
215
-	QImage rightLines;
216
-	QImage bottomLines;
213
+	TQImage edges;
214
+	TQImage topLines;
215
+	TQImage rightLines;
216
+	TQImage bottomLines;
217 217
 	
218 218
 	if(darkLines) {
219 219
 		edges = qembed_findImage("client_edges_dark");
@@ -232,14 +232,14 @@ void DominoHandler::createPixmaps()
232 232
 	
233 233
 	
234 234
 	int titleBarHeight = titleHeight+titleEdgeTop+titleEdgeBottom;
235
-	QWMatrix m;
235
+	TQWMatrix m;
236 236
 	m.rotate(180);
237 237
 	
238
-	titleBarPix = new QPixmap(QSize(10, titleBarHeight));
238
+	titleBarPix = new TQPixmap(TQSize(10, titleBarHeight));
239 239
 	titleBarPix->fill(background);
240
-	QRect r(titleBarPix->rect());
241
-	QPainter p(titleBarPix);
242
-	QRect rect(r.x(), r.y(), r.width(), titleGradientHeight);
240
+	TQRect r(titleBarPix->rect());
241
+	TQPainter p(titleBarPix);
242
+	TQRect rect(r.x(), r.y(), r.width(), titleGradientHeight);
243 243
 	renderGradient(&p, rect, topGradientColor, background, "titleBar");
244 244
 	p.drawPixmap(0, 0, topLines);
245 245
 	p.end();
@@ -248,23 +248,23 @@ void DominoHandler::createPixmaps()
248 248
 	
249 249
 	///////// borders
250 250
 	// sides
251
-	QPixmap sideLinesRight =  rightLines;
251
+	TQPixmap sideLinesRight =  rightLines;
252 252
 	
253
-	borderRightPix = new QPixmap(5, 10);
253
+	borderRightPix = new TQPixmap(5, 10);
254 254
 	borderRightPix->fill(borderColor);
255 255
 	p.begin(borderRightPix);
256 256
 	p.drawPixmap(3, 0, sideLinesRight);
257 257
 	p.end();
258 258
 	
259
-	borderLeftPix = new QPixmap(borderRightPix->xForm(m));
259
+	borderLeftPix = new TQPixmap(borderRightPix->xForm(m));
260 260
 	// edges
261
-	borderTopLeftPix = new QPixmap(QSize(5, titleBarHeight));
261
+	borderTopLeftPix = new TQPixmap(TQSize(5, titleBarHeight));
262 262
 	borderTopLeftPix->fill(borderColor);
263 263
 	p.begin(borderTopLeftPix);
264
-	r = QRect(0, 0, 5, titleGradientHeight);
264
+	r = TQRect(0, 0, 5, titleGradientHeight);
265 265
 	// if the gradient color is equal to the background color, we make the border also flat.
266 266
 	renderGradient(&p, r, topGradientColor == background ? borderColor : topBorderGradientColor, borderColor, "borderTopLeftPix");
267
-	borderTopRightPix = new QPixmap(*borderTopLeftPix);
267
+	borderTopRightPix = new TQPixmap(*borderTopLeftPix);
268 268
 	p.drawPixmap(0, 1, edges, 0, 0, 5, 6);
269 269
 	p.drawTiledPixmap(0, 7, 2, titleBarHeight, sideLinesRight.xForm(m));
270 270
 	p.end();
@@ -274,12 +274,12 @@ void DominoHandler::createPixmaps()
274 274
 	p.end();
275 275
 	
276 276
 	
277
-	borderBottomRightPix = new QPixmap(QSize(5, bottomBorderHeight));
277
+	borderBottomRightPix = new TQPixmap(TQSize(5, bottomBorderHeight));
278 278
 	borderBottomRightPix->fill(borderColor);
279 279
 	p.begin(borderBottomRightPix);
280
-	r = QRect(0, bottomBorderHeight-6, 5, 6);
280
+	r = TQRect(0, bottomBorderHeight-6, 5, 6);
281 281
 	renderGradient(&p, r, borderColor, bottomGradientColor == background ? borderColor : bottomBorderGradientColor, "borderBottomRightPix");
282
-	borderBottomLeftPix = new QPixmap(*borderBottomRightPix);
282
+	borderBottomLeftPix = new TQPixmap(*borderBottomRightPix);
283 283
 	p.drawPixmap(0, bottomBorderHeight-7, edges, 5, 6, 5, 6);
284 284
 	p.drawPixmap(3, 0, sideLinesRight, 0, 0, 2, borderBottomLeftPix->height()-7);
285 285
 	p.end();
@@ -290,10 +290,10 @@ void DominoHandler::createPixmaps()
290 290
 	p.drawPixmap(0, 0, sideLinesRight.xForm(m),  0, 0, 2, borderBottomLeftPix->height()-7);
291 291
 	p.end();
292 292
 	
293
-	borderBottomPix = new QPixmap(QSize(10, bottomBorderHeight));
293
+	borderBottomPix = new TQPixmap(TQSize(10, bottomBorderHeight));
294 294
 	borderBottomPix->fill(background);
295 295
 	p.begin(borderBottomPix);
296
-	r = QRect(0, bottomBorderHeight-6, 10, 6);
296
+	r = TQRect(0, bottomBorderHeight-6, 10, 6);
297 297
 	renderGradient(&p, r, background, bottomGradientColor, "borderBottom");
298 298
 	p.drawPixmap(0, bottomBorderHeight-2, bottomLines);
299 299
 	p.end();
@@ -304,42 +304,42 @@ void DominoHandler::createPixmaps()
304 304
 	////////////////////////////////////////////////////////////////////////
305 305
 	
306 306
 	if(buttonInputShape) {
307
-		QRegion buttonClip(6,2,6,1);
308
-		buttonClip += QRegion(5,3,8,1);
309
-		buttonClip += QRegion(4,4,10,1);
310
-		buttonClip += QRegion(3,5,12,1);
311
-		buttonClip += QRegion(2,6,14,6);
312
-		buttonClip += QRegion(3,12,12,1);
313
-		buttonClip += QRegion(4,13,10,1);
314
-		buttonClip += QRegion(5,14,8,1);
315
-		buttonClip += QRegion(6,15,6,1);
307
+		TQRegion buttonClip(6,2,6,1);
308
+		buttonClip += TQRegion(5,3,8,1);
309
+		buttonClip += TQRegion(4,4,10,1);
310
+		buttonClip += TQRegion(3,5,12,1);
311
+		buttonClip += TQRegion(2,6,14,6);
312
+		buttonClip += TQRegion(3,12,12,1);
313
+		buttonClip += TQRegion(4,13,10,1);
314
+		buttonClip += TQRegion(5,14,8,1);
315
+		buttonClip += TQRegion(6,15,6,1);
316 316
 		
317
-		buttonShapeBitmap = new QBitmap(16, titleBarHeight, true);
318
-		QPainter p(buttonShapeBitmap);
317
+		buttonShapeBitmap = new TQBitmap(16, titleBarHeight, true);
318
+		TQPainter p(buttonShapeBitmap);
319 319
 		p.setClipRegion(buttonClip);
320
-		p.fillRect(QRect(0, 0, 16, titleBarHeight), Qt::color1);
320
+		p.fillRect(TQRect(0, 0, 16, titleBarHeight), TQt::color1);
321 321
 	}
322 322
 	
323
-	QPixmap* buttonShadow = new QPixmap(qembed_findImage("clientButtonShadow"));
324
-	QPixmap* buttonPressed = new QPixmap(qembed_findImage("clientButtonPressed"));
323
+	TQPixmap* buttonShadow = new TQPixmap(qembed_findImage("clientButtonShadow"));
324
+	TQPixmap* buttonPressed = new TQPixmap(qembed_findImage("clientButtonPressed"));
325 325
 	
326
-	buttonPix = new QPixmap(QSize(16, titleBarHeight));
326
+	buttonPix = new TQPixmap(TQSize(16, titleBarHeight));
327 327
 	p.begin(buttonPix);
328 328
 	p.drawTiledPixmap(0, 0, titleBarHeight, titleBarHeight, *titleBarPix, 0, titleEdgeTop);
329 329
 	
330 330
 	//////////// custom color
331
-	r = QRect(buttonPix->rect());
332
-	QRegion buttonClip(5,2,6,1);
333
-	buttonClip += QRegion(4,3,8,1);
334
-	buttonClip += QRegion(3,4,10,1);
335
-	buttonClip += QRegion(2,5,12,6);
336
-	buttonClip += QRegion(3,11,10,1);
337
-	buttonClip += QRegion(4,12,8,1);
338
-	buttonClip += QRegion(5,13,6,1);
331
+	r = TQRect(buttonPix->rect());
332
+	TQRegion buttonClip(5,2,6,1);
333
+	buttonClip += TQRegion(4,3,8,1);
334
+	buttonClip += TQRegion(3,4,10,1);
335
+	buttonClip += TQRegion(2,5,12,6);
336
+	buttonClip += TQRegion(3,11,10,1);
337
+	buttonClip += TQRegion(4,12,8,1);
338
+	buttonClip += TQRegion(5,13,6,1);
339 339
 	
340 340
 	p.setClipRegion(buttonClip);
341
-	p.fillRect(QRect(0, 0, r.width(), r.height()), buttonColor);
342
-	QRect gr(0, -3, r.width(), titleGradientHeight);
341
+	p.fillRect(TQRect(0, 0, r.width(), r.height()), buttonColor);
342
+	TQRect gr(0, -3, r.width(), titleGradientHeight);
343 343
 	renderGradient(&p, gr, topGradientColor, buttonColor, "titleBar");
344 344
 	p.setClipping(false);
345 345
 	///////////
@@ -347,14 +347,14 @@ void DominoHandler::createPixmaps()
347 347
 	p.end();
348 348
 	
349 349
 	
350
-	QPixmap* pressedButtonPix = new QPixmap(*buttonPix);
350
+	TQPixmap* pressedButtonPix = new TQPixmap(*buttonPix);
351 351
 	p.begin(pressedButtonPix);
352 352
 	p.drawPixmap(0, 0, tintImage(qembed_findImage("clientButtonContour"), buttonPressedContourColor));
353 353
 	p.drawPixmap(0, 0, *buttonPressed);
354 354
 	p.end();
355 355
 	
356 356
 	
357
-	QPixmap* mouseOverButtonPix = new QPixmap(*buttonPix);
357
+	TQPixmap* mouseOverButtonPix = new TQPixmap(*buttonPix);
358 358
 	p.begin(mouseOverButtonPix);
359 359
 	p.drawPixmap(0, 0, tintImage(qembed_findImage("clientButtonContour"), buttonMouseOverContourColor));
360 360
 	p.end();
@@ -365,7 +365,7 @@ void DominoHandler::createPixmaps()
365 365
 	p.end();
366 366
 	
367 367
 	
368
-	buttonHidePix = new QPixmap(QSize(buttonPix->width(), titleBarHeight));
368
+	buttonHidePix = new TQPixmap(TQSize(buttonPix->width(), titleBarHeight));
369 369
 	p.begin(buttonHidePix);
370 370
 	p.drawTiledPixmap(0, 0, buttonHidePix->width(), buttonHidePix->height(), *titleBarPix, 0, titleEdgeTop);
371 371
 	p.end();
@@ -376,75 +376,75 @@ void DominoHandler::createPixmaps()
376 376
 	///////// icons
377 377
 	///////////////////////////////////////////////////////////////////////
378 378
 	
379
-	QPixmap* icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("closeButtonIcon"), buttonIconColor) : qembed_findImage("closeButtonIcon"));
380
-	closeButtonIcon = new QPixmap(*buttonPix);
379
+	TQPixmap* icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("closeButtonIcon"), buttonIconColor) : qembed_findImage("closeButtonIcon"));
380
+	closeButtonIcon = new TQPixmap(*buttonPix);
381 381
 	bitBlt(closeButtonIcon, 5, 5, icon);
382
-	pressedCloseButtonIcon = new QPixmap(*pressedButtonPix);
382
+	pressedCloseButtonIcon = new TQPixmap(*pressedButtonPix);
383 383
 	bitBlt(pressedCloseButtonIcon, 5, 5, icon);
384
-	mouseOverCloseButtonIcon = new QPixmap(*mouseOverButtonPix);
384
+	mouseOverCloseButtonIcon = new TQPixmap(*mouseOverButtonPix);
385 385
 	bitBlt(mouseOverCloseButtonIcon, 5, 5, icon);
386 386
 	delete icon;
387 387
 	
388
-	icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("maxButtonIcon"), buttonIconColor) : qembed_findImage("maxButtonIcon"));
389
-	maxButtonIcon = new QPixmap(*buttonPix);
388
+	icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("maxButtonIcon"), buttonIconColor) : qembed_findImage("maxButtonIcon"));
389
+	maxButtonIcon = new TQPixmap(*buttonPix);
390 390
 	bitBlt(maxButtonIcon, 4, 4, icon);
391
-	pressedMaxButtonIcon = new QPixmap(*pressedButtonPix);
391
+	pressedMaxButtonIcon = new TQPixmap(*pressedButtonPix);
392 392
 	bitBlt(pressedMaxButtonIcon, 4, 4, icon);
393
-	mouseOverMaxButtonIcon = new QPixmap(*mouseOverButtonPix);
393
+	mouseOverMaxButtonIcon = new TQPixmap(*mouseOverButtonPix);
394 394
 	bitBlt(mouseOverMaxButtonIcon, 4, 4, icon);
395 395
 	delete icon;
396 396
 	
397
-	icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
398
-	minButtonIcon = new QPixmap(*buttonPix);
397
+	icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
398
+	minButtonIcon = new TQPixmap(*buttonPix);
399 399
 	bitBlt(minButtonIcon, 5, 9, icon);
400
-	pressedMinButtonIcon = new QPixmap(*pressedButtonPix);
400
+	pressedMinButtonIcon = new TQPixmap(*pressedButtonPix);
401 401
 	bitBlt(pressedMinButtonIcon, 5, 9, icon);
402
-	mouseOverMinButtonIcon = new QPixmap(*mouseOverButtonPix);
402
+	mouseOverMinButtonIcon = new TQPixmap(*mouseOverButtonPix);
403 403
 	bitBlt(mouseOverMinButtonIcon, 5, 9, icon);
404 404
 	delete icon;
405 405
 	
406
-	icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("helpButtonIcon"), buttonIconColor) : qembed_findImage("helpButtonIcon"));
407
-	helpButtonIcon = new QPixmap(*buttonPix);
406
+	icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("helpButtonIcon"), buttonIconColor) : qembed_findImage("helpButtonIcon"));
407
+	helpButtonIcon = new TQPixmap(*buttonPix);
408 408
 	bitBlt(helpButtonIcon, 5, 4, icon);
409
-	pressedHelpButtonIcon = new QPixmap(*pressedButtonPix);
409
+	pressedHelpButtonIcon = new TQPixmap(*pressedButtonPix);
410 410
 	bitBlt(pressedHelpButtonIcon, 5, 4, icon);
411
-	mouseOverHelpButtonIcon = new QPixmap(*mouseOverButtonPix);
411
+	mouseOverHelpButtonIcon = new TQPixmap(*mouseOverButtonPix);
412 412
 	bitBlt(mouseOverHelpButtonIcon, 5, 4, icon);
413 413
 	delete icon;
414 414
 	
415
-	icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("onAllDesktopsButtonIcon"), buttonIconColor) : qembed_findImage("onAllDesktopsButtonIcon"));
416
-	onAllDesktopsButtonIcon = new QPixmap(*buttonPix);
415
+	icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("onAllDesktopsButtonIcon"), buttonIconColor) : qembed_findImage("onAllDesktopsButtonIcon"));
416
+	onAllDesktopsButtonIcon = new TQPixmap(*buttonPix);
417 417
 	bitBlt(onAllDesktopsButtonIcon, 6, 6, icon);
418
-	pressedOnAllDesktopsButtonIcon = new QPixmap(*pressedButtonPix);
418
+	pressedOnAllDesktopsButtonIcon = new TQPixmap(*pressedButtonPix);
419 419
 	bitBlt(pressedOnAllDesktopsButtonIcon, 6, 6, icon);
420
-	mouseOverOnAllDesktopsButtonIcon = new QPixmap(*mouseOverButtonPix);
420
+	mouseOverOnAllDesktopsButtonIcon = new TQPixmap(*mouseOverButtonPix);
421 421
 	bitBlt(mouseOverOnAllDesktopsButtonIcon, 6, 6, icon);
422 422
 	delete icon;
423 423
 	
424
-	icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon"), buttonIconColor) : qembed_findImage("aboveButtonIcon"));
425
-	aboveButtonIcon = new QPixmap(*buttonPix);
424
+	icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon"), buttonIconColor) : qembed_findImage("aboveButtonIcon"));
425
+	aboveButtonIcon = new TQPixmap(*buttonPix);
426 426
 	bitBlt(aboveButtonIcon, 5, 4, icon);
427
-	pressedAboveButtonIcon = new QPixmap(*pressedButtonPix);
427
+	pressedAboveButtonIcon = new TQPixmap(*pressedButtonPix);
428 428
 	bitBlt(pressedAboveButtonIcon, 5, 4, icon);
429
-	mouseOverAboveButtonIcon = new QPixmap(*mouseOverButtonPix);
429
+	mouseOverAboveButtonIcon = new TQPixmap(*mouseOverButtonPix);
430 430
 	bitBlt(mouseOverAboveButtonIcon, 5, 4, icon);
431 431
 	delete icon;
432 432
 	
433
-	icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon").xForm(m), buttonIconColor) : qembed_findImage("aboveButtonIcon").xForm(m));
434
-	belowButtonIcon = new QPixmap(*buttonPix);
433
+	icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon").xForm(m), buttonIconColor) : qembed_findImage("aboveButtonIcon").xForm(m));
434
+	belowButtonIcon = new TQPixmap(*buttonPix);
435 435
 	bitBlt(belowButtonIcon, 5, 4, icon);
436
-	pressedBelowButtonIcon = new QPixmap(*pressedButtonPix);
436
+	pressedBelowButtonIcon = new TQPixmap(*pressedButtonPix);
437 437
 	bitBlt(pressedBelowButtonIcon, 5, 4, icon);
438
-	mouseOverBelowButtonIcon = new QPixmap(*mouseOverButtonPix);
438
+	mouseOverBelowButtonIcon = new TQPixmap(*mouseOverButtonPix);
439 439
 	bitBlt(mouseOverBelowButtonIcon, 5, 4, icon);
440 440
 	delete icon;
441 441
 	
442
-	icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
443
-	shadeButtonIcon = new QPixmap(*buttonPix);
442
+	icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
443
+	shadeButtonIcon = new TQPixmap(*buttonPix);
444 444
 	bitBlt(shadeButtonIcon, 5, 5, icon);
445
-	pressedShadeButtonIcon = new QPixmap(*pressedButtonPix);
445
+	pressedShadeButtonIcon = new TQPixmap(*pressedButtonPix);
446 446
 	bitBlt(pressedShadeButtonIcon, 5, 5, icon);
447
-	mouseOverShadeButtonIcon = new QPixmap(*mouseOverButtonPix);
447
+	mouseOverShadeButtonIcon = new TQPixmap(*mouseOverButtonPix);
448 448
 	bitBlt(mouseOverShadeButtonIcon, 5, 5, icon);
449 449
 	delete icon;
450 450
 	
@@ -531,7 +531,7 @@ DominoButton::DominoButton(ButtonType type, DominoClient *parent, const char *na
531 531
 	client = parent;
532 532
 #ifdef ShapeInput
533 533
 	if(buttonInputShape && buttonShapeBitmap ) {
534
-		XShapeCombineMask (qt_xdisplay(),
534
+		XShapeCombineMask (tqt_xdisplay(),
535 535
 				   winId(),
536 536
 				   ShapeInput,
537 537
 				   0,
@@ -551,7 +551,7 @@ DominoButton::~DominoButton()
551 551
 void DominoButton::reset(unsigned long changed)
552 552
 {
553 553
 	if (changed&SizeChange || changed&ManualReset) {
554
-		setBackgroundOrigin(QWidget::WidgetOrigin);
554
+		setBackgroundOrigin(TQWidget::WidgetOrigin);
555 555
 		setErasePixmap(showInactiveButtons ? *buttonPix : *buttonHidePix);
556 556
 	}
557 557
 	
@@ -564,7 +564,7 @@ void DominoButton::reset(unsigned long changed)
564 564
 }
565 565
 
566 566
 
567
-void DominoButton::drawButton(QPainter *p)
567
+void DominoButton::drawButton(TQPainter *p)
568 568
 {
569 569
 	if (!Domino_initialized)
570 570
 		return;
@@ -610,7 +610,7 @@ void DominoButton::drawButton(QPainter *p)
610 610
 
611 611
 
612 612
 
613
-void DominoButton::enterEvent(QEvent */*e*/)
613
+void DominoButton::enterEvent(TQEvent */*e*/)
614 614
 {
615 615
 	
616 616
 	if(!client->isActive() && !showInactiveButtons)
@@ -621,7 +621,7 @@ void DominoButton::enterEvent(QEvent */*e*/)
621 621
 }
622 622
 
623 623
 
624
-void DominoButton::leaveEvent(QEvent */*e*/)
624
+void DominoButton::leaveEvent(TQEvent */*e*/)
625 625
 {
626 626
 	isMouseOver=false;
627 627
 	repaint(false);
@@ -649,17 +649,17 @@ DominoClient::~DominoClient()
649 649
 	delete borderBottom;
650 650
 }
651 651
 
652
-QString DominoClient::visibleName() const
652
+TQString DominoClient::visibleName() const
653 653
 {
654 654
 	return "Domino";
655 655
 }
656 656
 
657
-QString DominoClient::defaultButtonsLeft() const
657
+TQString DominoClient::defaultButtonsLeft() const
658 658
 {
659 659
 	return "MF";
660 660
 }
661 661
 
662
-QString DominoClient::defaultButtonsRight() const
662
+TQString DominoClient::defaultButtonsRight() const
663 663
 {
664 664
 	return "HIAX";
665 665
 }
@@ -776,7 +776,7 @@ void DominoClient::init()
776 776
 	menuButton = 0;
777 777
 	globalMouseTracking = false;
778 778
 	titleBarMouseOver = false;
779
-	QWidget* w = new QWidget(KDecoration::initialParentWidget(), "clientMainWidget", WNoAutoErase|WStaticContents);
779
+	TQWidget* w = new TQWidget(KDecoration::initialParentWidget(), "clientMainWidget", WNoAutoErase|WStaticContents);
780 780
 	setMainWidget(w);
781 781
 	
782 782
 	widget()->setBackgroundMode(NoBackground);
@@ -794,48 +794,48 @@ void DominoClient::createLayout()
794 794
 	
795 795
 	int titleBarHeight = titleHeight+titleEdgeTop+titleEdgeBottom;
796 796
 	
797
-	mainlayout = new QGridLayout(widget(), 3, 3, 0);
797
+	mainlayout = new TQGridLayout(widget(), 3, 3, 0);
798 798
 	titleBar = new TitleBar(widget(), "titlebar");
799 799
 	titleBar->client = this;
800 800
 	titleBar->setMouseTracking(true);
801 801
 	
802
-	borderTopLeft = new QWidget(widget(), "borderTopLeft", Qt::WNoAutoErase);
802
+	borderTopLeft = new TQWidget(widget(), "borderTopLeft", TQt::WNoAutoErase);
803 803
 	borderTopLeft->setMouseTracking(true);
804
-	borderTopRight = new QWidget(widget(), "borderTopRight", Qt::WNoAutoErase);
804
+	borderTopRight = new TQWidget(widget(), "borderTopRight", TQt::WNoAutoErase);
805 805
 	borderTopRight->setMouseTracking(true);
806
-	borderBottomLeft = new QWidget(widget(), "borderBottomLeft", Qt::WNoAutoErase);
806
+	borderBottomLeft = new TQWidget(widget(), "borderBottomLeft", TQt::WNoAutoErase);
807 807
 	borderBottomLeft->setMouseTracking(true);
808
-	borderBottomRight = new QWidget(widget(), "borderBottomRight", Qt::WNoAutoErase);
808
+	borderBottomRight = new TQWidget(widget(), "borderBottomRight", TQt::WNoAutoErase);
809 809
 	borderBottomRight->setMouseTracking(true);
810
-	borderLeft = new QWidget(widget(), "borderLeft", Qt::WNoAutoErase);
810
+	borderLeft = new TQWidget(widget(), "borderLeft", TQt::WNoAutoErase);
811 811
 	borderLeft->setMouseTracking(true);
812
-	borderRight = new QWidget(widget(), "borderRight", Qt::WNoAutoErase);
812
+	borderRight = new TQWidget(widget(), "borderRight", TQt::WNoAutoErase);
813 813
 	borderRight->setMouseTracking(true);
814
-	borderBottom = new QWidget(widget(), "borderBottom", Qt::WNoAutoErase);
814
+	borderBottom = new TQWidget(widget(), "borderBottom", TQt::WNoAutoErase);
815 815
 	borderBottom->setMouseTracking(true);
816 816
 	
817 817
 	
818 818
 	titleBar->setFixedHeight(titleBarHeight);
819
-	titleBar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
819
+	titleBar->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
820 820
 	borderTopLeft->setFixedSize(borderWidth, titleBarHeight);
821 821
 	borderTopRight->setFixedSize(borderWidth, titleBarHeight);
822 822
 	
823 823
 	borderLeft->setFixedWidth(borderWidth);
824
-	borderLeft->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
824
+	borderLeft->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
825 825
 	borderRight->setFixedWidth(borderWidth);
826
-	borderRight->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
826
+	borderRight->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
827 827
 	
828 828
 	borderBottomLeft->setFixedSize(borderWidth, bottomBorderHeight);
829 829
 	borderBottomRight->setFixedSize(borderWidth, bottomBorderHeight);
830 830
 	borderBottom->setFixedHeight(bottomBorderHeight);
831
-	borderBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
831
+	borderBottom->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
832 832
 	
833 833
 	mainlayout->addWidget(titleBar, 0,1);
834 834
 	mainlayout->addWidget(borderTopLeft, 0,0);
835 835
 	mainlayout->addWidget(borderTopRight, 0,2);
836 836
 	
837 837
 	mainlayout->addWidget(borderLeft, 1,0);
838
-	mainlayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding));
838
+	mainlayout->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Expanding, TQSizePolicy::Expanding));
839 839
 	mainlayout->addWidget(borderRight, 1,2);
840 840
 	
841 841
 	mainlayout->addWidget(borderBottomLeft, 2,0);
@@ -883,38 +883,38 @@ void DominoClient::updateMask()
883 883
 		clearMask();
884 884
 		return;
885 885
 	}
886
-	QRect r(widget()->rect());
886
+	TQRect r(widget()->rect());
887 887
 	
888
-	QRegion mask(r.x()+5, r.y(), r.width()-10, r.height());
889
-	mask += QRect(r.x()+3, r.y()+1, r.width()-6, r.height()-2);
890
-	mask += QRect(r.x()+2, r.y()+2, r.width()-4, r.height()-4);
891
-	mask += QRect(r.x()+1, r.y()+3, r.width()-2, r.height()-6);
892
-	mask += QRect(r.x(), r.y()+5, r.width(), r.height()-10);
888
+	TQRegion mask(r.x()+5, r.y(), r.width()-10, r.height());
889
+	mask += TQRect(r.x()+3, r.y()+1, r.width()-6, r.height()-2);
890
+	mask += TQRect(r.x()+2, r.y()+2, r.width()-4, r.height()-4);
891
+	mask += TQRect(r.x()+1, r.y()+3, r.width()-2, r.height()-6);
892
+	mask += TQRect(r.x(), r.y()+5, r.width(), r.height()-10);
893 893
 	setMask(mask);
894 894
 	
895 895
 }
896 896
 
897 897
 void DominoClient::updateCaption()
898 898
 {
899
-	QRect r(titleBar->rect());
899
+	TQRect r(titleBar->rect());
900 900
 	
901
-	QPixmap* titleBar_pix = new QPixmap(r.size());
902
-	QPainter painter(titleBar_pix);
901
+	TQPixmap* titleBar_pix = new TQPixmap(r.size());
902
+	TQPainter painter(titleBar_pix);
903 903
 	painter.drawTiledPixmap(0, 0, r.width(), r.height(), *titleBarPix);
904 904
 	
905 905
 	int lw = buttonsLeftWidth()+3;
906 906
 	int rw = buttonsRightWidth();
907 907
 
908 908
 	painter.setFont(options()->font(true,false));
909
-	QFontMetrics fm = painter.fontMetrics();
909
+	TQFontMetrics fm = painter.fontMetrics();
910 910
 	int captionWidth = fm.width(caption());
911 911
 	int titleWidth = titleBar->width()-(lw+rw);
912 912
 	
913 913
 	
914
-	QRect re(titleWidth > captionWidth ? (titleWidth-captionWidth)/2+lw : lw, 0, titleWidth, r.height());
914
+	TQRect re(titleWidth > captionWidth ? (titleWidth-captionWidth)/2+lw : lw, 0, titleWidth, r.height());
915 915
 	painter.setClipRect(re);
916 916
 	painter.setPen(options()->color(KDecorationDefines::ColorFont, isActive()));
917
-	painter.drawText(QRect(lw, r.y(), r.width()-(rw+lw), r.height()), titleWidth > captionWidth ? Qt::AlignCenter : Qt::AlignLeft|Qt::AlignVCenter, caption());
917
+	painter.drawText(TQRect(lw, r.y(), r.width()-(rw+lw), r.height()), titleWidth > captionWidth ? TQt::AlignCenter : TQt::AlignLeft|TQt::AlignVCenter, caption());
918 918
 	painter.end();
919 919
 	
920 920
 	titleBar->setErasePixmap(*titleBar_pix);
@@ -931,10 +931,10 @@ void DominoClient::activeChange()
931 931
 void DominoClient::iconChange()
932 932
 {
933 933
 	if(menuButton) {
934
-		QPixmap pix(*buttonHidePix);
935
-		QPixmap icon = KDecoration::icon().pixmap(QIconSet::Small, QIconSet::Normal);
934
+		TQPixmap pix(*buttonHidePix);
935
+		TQPixmap icon = KDecoration::icon().pixmap(TQIconSet::Small, TQIconSet::Normal);
936 936
 		if(!icon.isNull())
937
-			bitBlt(&pix, 0, 0, &icon, 0, 0, -1, -1, Qt::CopyROP);
937
+			bitBlt(&pix, 0, 0, &icon, 0, 0, -1, -1, TQt::CopyROP);
938 938
 		menuButton->setErasePixmap(pix);
939 939
 	}
940 940
 	
@@ -982,7 +982,7 @@ void DominoClient::shadeChange()
982 982
 	
983 983
 }
984 984
 
985
-void DominoClient::resize( const QSize& s )
985
+void DominoClient::resize( const TQSize& s )
986 986
 {
987 987
 	widget()->resize( s );
988 988
 	if(maximizeMode() == MaximizeFull && !options()->moveResizeMaximizedWindows()) {
@@ -1004,7 +1004,7 @@ void DominoClient::resize( const QSize& s )
1004 1004
 }
1005 1005
 
1006 1006
 
1007
-void DominoClient::resizeEvent( QResizeEvent* ev )
1007
+void DominoClient::resizeEvent( TQResizeEvent* ev )
1008 1008
 {
1009 1009
 	
1010 1010
 	if (!Domino_initialized || ev->size() == ev->oldSize())
@@ -1018,45 +1018,45 @@ void DominoClient::updateWindowShape()
1018 1018
 {
1019 1019
 }
1020 1020
 
1021
-void DominoClient::showEvent(QShowEvent *)
1021
+void DominoClient::showEvent(TQShowEvent *)
1022 1022
 {
1023 1023
 }
1024 1024
 
1025
-void DominoClient::paintEvent( QPaintEvent* )
1025
+void DominoClient::paintEvent( TQPaintEvent* )
1026 1026
 {
1027 1027
 }
1028 1028
 
1029
-bool DominoClient::eventFilter(QObject*, QEvent* e)
1029
+bool DominoClient::eventFilter(TQObject*, TQEvent* e)
1030 1030
 {
1031 1031
 	switch(e->type()) {
1032
-		case QEvent::Resize:
1033
-			resizeEvent(static_cast<QResizeEvent*>(e));
1032
+		case TQEvent::Resize:
1033
+			resizeEvent(static_cast<TQResizeEvent*>(e));
1034 1034
 			return true;
1035
-		case QEvent::ApplicationPaletteChange:
1035
+		case TQEvent::ApplicationPaletteChange:
1036 1036
 			return false;
1037
-		case QEvent::Paint:
1038
-			paintEvent(static_cast<QPaintEvent*>(e));
1037
+		case TQEvent::Paint:
1038
+			paintEvent(static_cast<TQPaintEvent*>(e));
1039 1039
 			return true;
1040
-		case QEvent::MouseButtonDblClick:
1041
-			mouseDoubleClickEvent(static_cast<QMouseEvent*>(e));
1040
+		case TQEvent::MouseButtonDblClick:
1041
+			mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e));
1042 1042
 			return true;
1043
-		case QEvent::Wheel:
1043
+		case TQEvent::Wheel:
1044 1044
 			if(titleBar->hasMouse() || isSetShade())
1045
-				wheelEvent(static_cast<QWheelEvent*>(e));
1045
+				wheelEvent(static_cast<TQWheelEvent*>(e));
1046 1046
 			return true;
1047
-		case QEvent::MouseButtonPress:
1048
-			processMousePressEvent(static_cast<QMouseEvent*>(e));
1047
+		case TQEvent::MouseButtonPress:
1048
+			processMousePressEvent(static_cast<TQMouseEvent*>(e));
1049 1049
 			return true;
1050
-		case QEvent::Show:
1050
+		case TQEvent::Show:
1051 1051
 			return true;
1052
-		case QEvent::Enter:
1052
+		case TQEvent::Enter:
1053 1053
 			updateButtons();
1054 1054
 			return true;
1055
-		case QEvent::Leave:
1055
+		case TQEvent::Leave:
1056 1056
 			if(globalMouseTracking && !showInactiveButtons) {
1057 1057
 				globalMouseTracking = false;
1058
-				qApp->setGlobalMouseTracking( false );
1059
-				qApp->removeEventFilter(titleBar);
1058
+				tqApp->setGlobalMouseTracking( false );
1059
+				tqApp->removeEventFilter(titleBar);
1060 1060
 				titleBarMouseOver = false;
1061 1061
 			}
1062 1062
 			updateButtons();
@@ -1068,13 +1068,13 @@ bool DominoClient::eventFilter(QObject*, QEvent* e)
1068 1068
 }
1069 1069
 
1070 1070
 
1071
-void TitleBar::enterEvent(QEvent*)
1071
+void TitleBar::enterEvent(TQEvent*)
1072 1072
 {
1073 1073
 	if(!client->isActive() && !showInactiveButtons) {
1074 1074
 		if(!client->globalMouseTracking) {
1075 1075
 			client->globalMouseTracking = true;
1076
-			qApp->setGlobalMouseTracking( true );
1077
-			qApp->installEventFilter(this);
1076
+			tqApp->setGlobalMouseTracking( true );
1077
+			tqApp->installEventFilter(this);
1078 1078
 			client->titleBarMouseOver = true;
1079 1079
 			client->updateButtons();
1080 1080
 		}
@@ -1082,11 +1082,11 @@ void TitleBar::enterEvent(QEvent*)
1082 1082
 }
1083 1083
 
1084 1084
 
1085
-bool TitleBar::eventFilter(QObject*o, QEvent* e) {
1085
+bool TitleBar::eventFilter(TQObject*o, TQEvent* e) {
1086 1086
 	
1087
-	if(e->type() == QEvent::MouseMove && !showInactiveButtons && !client->isActive()) {
1088
-		QPoint pos = ((QMouseEvent*)e)->pos();
1089
-		if((dynamic_cast<QWidget*>(o) && geometry().contains(pos)) || dynamic_cast<QButton*>(o)) {
1087
+	if(e->type() == TQEvent::MouseMove && !showInactiveButtons && !client->isActive()) {
1088
+		TQPoint pos = ((TQMouseEvent*)e)->pos();
1089
+		if((dynamic_cast<TQWidget*>(o) && geometry().contains(pos)) || dynamic_cast<TQButton*>(o)) {
1090 1090
 			client->titleBarMouseOver = true;
1091 1091
 		}
1092 1092
 		else {
@@ -1101,16 +1101,16 @@ bool TitleBar::eventFilter(QObject*o, QEvent* e) {
1101 1101
 
1102 1102
 /////////////
1103 1103
 
1104
-void renderGradient(QPainter *painter, QRect &rect,
1105
-		    QColor &c1, QColor &c2, const char* /*name*/)
1104
+void renderGradient(TQPainter *painter, TQRect &rect,
1105
+		    TQColor &c1, TQColor &c2, const char* /*name*/)
1106 1106
 {
1107 1107
 	if((rect.width() <= 0)||(rect.height() <= 0))
1108 1108
 		return;
1109 1109
 	
1110
-	QPixmap *result;
1110
+	TQPixmap *result;
1111 1111
 	
1112
-	result = new QPixmap(10, rect.height());
1113
-	QPainter p(result);
1112
+	result = new TQPixmap(10, rect.height());
1113
+	TQPainter p(result);
1114 1114
 	
1115 1115
 	int r_h = result->rect().height();
1116 1116
 	int r_x, r_y, r_x2, r_y2;
@@ -1138,7 +1138,7 @@ void renderGradient(QPainter *painter, QRect &rect,
1138 1138
 		rl += rdelta;
1139 1139
 		gl += gdelta;
1140 1140
 		bl += bdelta;
1141
-		p.setPen(QColor(rl>>16, gl>>16, bl>>16));
1141
+		p.setPen(TQColor(rl>>16, gl>>16, bl>>16));
1142 1142
 		p.drawLine(r_x, r_y+y, r_x2, r_y+y);
1143 1143
 	}
1144 1144
 	p.end();
@@ -1149,34 +1149,34 @@ void renderGradient(QPainter *painter, QRect &rect,
1149 1149
 }
1150 1150
 
1151 1151
 
1152
-QColor alphaBlendColors(const QColor &bgColor, const QColor &fgColor, const int a)
1152
+TQColor alphaBlendColors(const TQColor &bgColor, const TQColor &fgColor, const int a)
1153 1153
 {
1154 1154
 
1155
-	QRgb rgb = bgColor.rgb();
1156
-	QRgb rgb_b = fgColor.rgb();
1155
+	TQRgb rgb = bgColor.rgb();
1156
+	TQRgb rgb_b = fgColor.rgb();
1157 1157
 	int alpha = a;
1158 1158
 	if(alpha>255) alpha = 255;
1159 1159
 	if(alpha<0) alpha = 0;
1160 1160
 	int inv_alpha = 255 - alpha;
1161 1161
 
1162
-	QColor result  = QColor( qRgb(qRed(rgb_b)*inv_alpha/255 + qRed(rgb)*alpha/255,
1163
-				 qGreen(rgb_b)*inv_alpha/255 + qGreen(rgb)*alpha/255,
1164
-				 qBlue(rgb_b)*inv_alpha/255 + qBlue(rgb)*alpha/255) );
1162
+	TQColor result  = TQColor( tqRgb(tqRed(rgb_b)*inv_alpha/255 + tqRed(rgb)*alpha/255,
1163
+				 tqGreen(rgb_b)*inv_alpha/255 + tqGreen(rgb)*alpha/255,
1164
+				 tqBlue(rgb_b)*inv_alpha/255 + tqBlue(rgb)*alpha/255) );
1165 1165
 
1166 1166
 	return result;
1167 1167
 }
1168 1168
 
1169
-QImage tintImage(const QImage &img, const QColor &tintColor) {
1169
+TQImage tintImage(const TQImage &img, const TQColor &tintColor) {
1170 1170
 	
1171
-	QImage *result = new QImage(img.width(), img.height(), 32, 0, QImage::IgnoreEndian);
1171
+	TQImage *result = new TQImage(img.width(), img.height(), 32, 0, TQImage::IgnoreEndian);
1172 1172
 	unsigned int *data = (unsigned int*) img.bits();
1173 1173
 	unsigned int *resultData = (unsigned int*) result->bits();
1174 1174
 	result->setAlphaBuffer( true );
1175 1175
 	int alpha;
1176 1176
 	int total = img.width()*img.height();
1177 1177
 	for ( int current = 0 ; current < total ; ++current ) {
1178
-		alpha = qAlpha( data[ current ] );
1179
-		resultData[ current ] = qRgba( tintColor.red(), tintColor.green(), tintColor.blue(), alpha );
1178
+		alpha = tqAlpha( data[ current ] );
1179
+		resultData[ current ] = tqRgba( tintColor.red(), tintColor.green(), tintColor.blue(), alpha );
1180 1180
 	}
1181 1181
 	return *result;
1182 1182
 }

+ 37
- 37
client/dominoclient.h View File

@@ -25,14 +25,14 @@
25 25
 
26 26
 #include <kcommondecoration.h>
27 27
 #include <kdecorationfactory.h>
28
-#include <qlayout.h>
28
+#include <tqlayout.h>
29 29
 
30 30
 namespace Domino {
31 31
 
32 32
 class DominoClient;
33 33
 class TitleBar;
34 34
 
35
-class DominoHandler: public QObject, public KDecorationFactory
35
+class DominoHandler: public TQObject, public KDecorationFactory
36 36
 {
37 37
 	public:
38 38
 		DominoHandler();
@@ -41,16 +41,16 @@ class DominoHandler: public QObject, public KDecorationFactory
41 41
 		bool reset( unsigned long changed );
42 42
 		virtual bool supports( Ability ability );
43 43
 		
44
-		QColor buttonContourColor;
45
-		QColor buttonMouseOverContourColor;
46
-		QColor buttonPressedContourColor;
44
+		TQColor buttonContourColor;
45
+		TQColor buttonMouseOverContourColor;
46
+		TQColor buttonPressedContourColor;
47 47
 		
48 48
 		bool customButtonColor;
49
-		QColor buttonColor;
49
+		TQColor buttonColor;
50 50
 		bool customButtonIconColor;
51
-		QColor buttonIconColor;
51
+		TQColor buttonIconColor;
52 52
 		bool customBorderColor;
53
-		QColor borderColor;
53
+		TQColor borderColor;
54 54
 		bool darkLines;
55 55
 		
56 56
 	private:
@@ -70,10 +70,10 @@ class DominoButton : public KCommonDecorationButton
70 70
 		void reset(unsigned long changed);
71 71
 
72 72
 	protected:
73
-		void enterEvent(QEvent *);
74
-		void leaveEvent(QEvent *);
75
-		void drawButton(QPainter *p);
76
-		void drawButtonLabel(QPainter*) {;}
73
+		void enterEvent(TQEvent *);
74
+		void leaveEvent(TQEvent *);
75
+		void drawButton(TQPainter *p);
76
+		void drawButtonLabel(TQPainter*) {;}
77 77
 
78 78
 		bool isMouseOver;
79 79
 		DominoClient* client;
@@ -87,9 +87,9 @@ class DominoClient : public KCommonDecoration
87 87
 		DominoClient( KDecorationBridge* b, KDecorationFactory* f );
88 88
 		~DominoClient();
89 89
 
90
-		virtual QString visibleName() const;
91
-		virtual QString defaultButtonsLeft() const;
92
-		virtual QString defaultButtonsRight() const;
90
+		virtual TQString visibleName() const;
91
+		virtual TQString defaultButtonsLeft() const;
92
+		virtual TQString defaultButtonsRight() const;
93 93
 		virtual bool decorationBehaviour(DecorationBehaviour behaviour) const;
94 94
 		virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton * = 0) const;
95 95
 		virtual KCommonDecorationButton *createButton(ButtonType type);
@@ -97,7 +97,7 @@ class DominoClient : public KCommonDecoration
97 97
 		
98 98
 		void init();
99 99
 		void reset( unsigned long changed );
100
-		void resize( const QSize& s );
100
+		void resize( const TQSize& s );
101 101
 		void updateMask();
102 102
 		
103 103
 		void updateWindowShape();
@@ -107,15 +107,15 @@ class DominoClient : public KCommonDecoration
107 107
 		void iconChange();
108 108
 		
109 109
 		TitleBar* titleBar;
110
-		QWidget* borderTopLeft;
111
-		QWidget* borderTopRight;
112
-		QWidget* borderBottomLeft;
113
-		QWidget* borderBottomRight;
114
-		QWidget* borderLeft;
115
-		QWidget* borderRight;
116
-		QWidget* borderBottom;
117
-		QGridLayout* mainlayout;
118
-		QButton* menuButton;
110
+		TQWidget* borderTopLeft;
111
+		TQWidget* borderTopRight;
112
+		TQWidget* borderBottomLeft;
113
+		TQWidget* borderBottomRight;
114
+		TQWidget* borderLeft;
115
+		TQWidget* borderRight;
116
+		TQWidget* borderBottom;
117
+		TQGridLayout* mainlayout;
118
+		TQButton* menuButton;
119 119
 		
120 120
 		void setPixmaps();
121 121
 		bool titleBarMouseOver;
@@ -126,31 +126,31 @@ class DominoClient : public KCommonDecoration
126 126
 		void menuButtonDestroyed();
127 127
 
128 128
 	protected:
129
-		bool eventFilter(QObject*, QEvent*);
130
-		void paintEvent(QPaintEvent*);
131
-		void resizeEvent(QResizeEvent*);
132
-		void showEvent(QShowEvent*);
129
+		bool eventFilter(TQObject*, TQEvent*);
130
+		void paintEvent(TQPaintEvent*);
131
+		void resizeEvent(TQResizeEvent*);
132
+		void showEvent(TQShowEvent*);
133 133
 
134 134
 	private:
135 135
 		
136 136
 		void createLayout();
137 137
 };
138 138
 
139
-class TitleBar : public QWidget
139
+class TitleBar : public TQWidget
140 140
 {
141 141
 	public:
142
-		TitleBar(QWidget* parent=0, const char* name=0) : QWidget(parent, name) {}
143
-		void enterEvent(QEvent * e);
144
-		bool eventFilter(QObject*, QEvent*);
142
+		TitleBar(TQWidget* parent=0, const char* name=0) : TQWidget(parent, name) {}
143
+		void enterEvent(TQEvent * e);
144
+		bool eventFilter(TQObject*, TQEvent*);
145 145
 		DominoClient* client;
146 146
 };
147 147
 
148 148
 
149 149
 
150
-void renderGradient(QPainter *painter, QRect &rect,
151
-	    QColor &c1, QColor &c2, const char* name = 0);
152
-QColor alphaBlendColors(const QColor &backgroundColor, const QColor &foregroundColor, const int alpha);
153
-QImage tintImage(const QImage &img, const QColor &tintColor);
150
+void renderGradient(TQPainter *painter, TQRect &rect,
151
+	    TQColor &c1, TQColor &c2, const char* name = 0);
152
+TQColor alphaBlendColors(const TQColor &backgroundColor, const TQColor &foregroundColor, const int alpha);
153
+TQImage tintImage(const TQImage &img, const TQColor &tintColor);
154 154
 }
155 155
 
156 156
 #endif

+ 88
- 88
domino/data.h View File

@@ -18,35 +18,35 @@
18 18
 
19 19
 #ifndef _QEMBED_1804289383
20 20
 #define _QEMBED_1804289383
21
-#include <qimage.h>
22
-#include <qdict.h>
23
-static const QRgb arrow_down_small_data[] = {
21
+#include <tqimage.h>
22
+#include <tqdict.h>
23
+static const TQRgb arrow_down_small_data[] = {
24 24
     0x2d000000,0x96000000,0x96000000,0x96000000,0x2e000000,0x1000000,0x79000000,0x99000000,0x7a000000,0x1000000,0x0,0x29000000,0x99000000,0x2b000000,
25 25
     0x0,0x0,0x0,0x4f000000,0x0,0x0
26 26
 };
27 27
 
28 28
 /* Generated by qembed */
29
-static const QRgb btn17H_data[] = {
29
+static const TQRgb btn17H_data[] = {
30 30
     0x0,0x0,0x0,0x0,0xc6000000,0xc6000000,0xc6000000,0xc6000000,0x23000000,0x23000000,0x23000000,0x23000000,0x23000000,0x23000000,
31 31
     0x23000000,0x23000000,0xc6000000,0xc6000000,0xc6000000,0xc6000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
32 32
 };
33 33
 
34
-static const QRgb btn17HRaisedShadow_data[] = {
34
+static const TQRgb btn17HRaisedShadow_data[] = {
35 35
     0x1e000000,0x1e000000,0x1e000000,0x1e000000,0x15000000,0x15000000,0x15000000,0x15000000,0x1effffff,0x1effffff,0x1effffff,0x1effffff,0x18ffffff,0x18ffffff,
36 36
     0x18ffffff,0x18ffffff,0x2000000,0x2000000,0x2000000,0x2000000,0x2d000000,0x2d000000,0x2d000000,0x2d000000,0x11000000,0x11000000,0x11000000,0x11000000
37 37
 };
38 38
 
39
-static const QRgb btn17HRaisedShadowPressed_data[] = {
39
+static const TQRgb btn17HRaisedShadowPressed_data[] = {
40 40
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x18ffffff,0x18ffffff,0x18ffffff,0x18ffffff,0x18ffffff,0x18ffffff,
41 41
     0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
42 42
 };
43 43
 
44
-static const QRgb btn17HSunkenShadow_data[] = {
44
+static const TQRgb btn17HSunkenShadow_data[] = {
45 45
     0x1c000000,0x1c000000,0x1c000000,0x1c000000,0x15000000,0x15000000,0x15000000,0x15000000,0x0,0x0,0x0,0x0,0x0,0x0,
46 46
     0x0,0x0,0x0,0x0,0x0,0x0,0x4effffff,0x4effffff,0x4effffff,0x4effffff,0x1effffff,0x1effffff,0x1effffff,0x1effffff
47 47
 };
48 48
 
49
-static const QRgb btn17_data[] = {
49
+static const TQRgb btn17_data[] = {
50 50
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
51 51
     0x2000000,0x2b000000,0x79000000,0xb3000000,0xb3000000,0x79000000,0x29000000,0x2000000,0x0,0x0,0x0,0x2000000,0x46000000,0xb9000000,
52 52
     0x76000000,0x33000000,0x33000000,0x77000000,0xb9000000,0x46000000,0x2000000,0x0,0x0,0x20000000,0xb5000000,0x49000000,0x4000000,0x1000000,
@@ -61,7 +61,7 @@ static const QRgb btn17_data[] = {
61 61
     0x0,0x0
62 62
 };
63 63
 
64
-static const QRgb btn17RaisedShadow3_data[] = {
64
+static const TQRgb btn17RaisedShadow3_data[] = {
65 65
     0x0,0x0,0x0,0x2000000,0x5000000,0xb000000,0xb000000,0x5000000,0x2000000,0x0,0x0,0x0,0x0,0x0,
66 66
     0x3000000,0xd000000,0x15000000,0x10000000,0x10000000,0x15000000,0xd000000,0x3000000,0x0,0x0,0x0,0x3000000,0xe000000,0xf000000,
67 67
     0x26f8f8f8,0x1dffffff,0x1effffff,0x26f8f8f8,0xf000000,0xe000000,0x3000000,0x0,0x0,0x8000000,0xe000000,0x1dffffff,0x17ffffff,0x8ffffff,
@@ -76,7 +76,7 @@ static const QRgb btn17RaisedShadow3_data[] = {
76 76
     0x0,0x0
77 77
 };
78 78
 
79
-static const QRgb btn17RaisedShadowPressed_data[] = {
79
+static const TQRgb btn17RaisedShadowPressed_data[] = {
80 80
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
81 81
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
82 82
     0x25ffffff,0x1dffffff,0x1effffff,0x25ffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1dffffff,0x17ffffff,0x8ffffff,
@@ -91,7 +91,7 @@ static const QRgb btn17RaisedShadowPressed_data[] = {
91 91
     0x0,0x0
92 92
 };
93 93
 
94
-static const QRgb btn17SunkenShadow_data[] = {
94
+static const TQRgb btn17SunkenShadow_data[] = {
95 95
     0x0,0x0,0x0,0x4000000,0xb000000,0x15000000,0x15000000,0xb000000,0x4000000,0x0,0x0,0x0,0x0,0x0,
96 96
     0x6000000,0x16000000,0x25000000,0x1c000000,0x1c000000,0x25000000,0x16000000,0x6000000,0x0,0x0,0x1ffffff,0x4000000,0x16000000,0x1b000000,
97 97
     0x3000000,0x0,0x0,0x3000000,0x1b000000,0x16000000,0x4000000,0x1ffffff,0x6d4d4d4,0xb000000,0x18000000,0x0,0x0,0x0,
@@ -106,32 +106,32 @@ static const QRgb btn17SunkenShadow_data[] = {
106 106
     0x1ffffff,0x0
107 107
 };
108 108
 
109
-static const QRgb btn17V_data[] = {
109
+static const TQRgb btn17V_data[] = {
110 110
     0x0,0xc6000000,0x23000000,0x23000000,0xc6000000,0x0,0x0,0xc6000000,0x23000000,0x23000000,0xc6000000,0x0,0x0,0xc6000000,
111 111
     0x23000000,0x23000000,0xc6000000,0x0,0x0,0xc6000000,0x23000000,0x23000000,0xc6000000,0x0
112 112
 };
113 113
 
114
-static const QRgb btn17VRaisedShadow_data[] = {
114
+static const TQRgb btn17VRaisedShadow_data[] = {
115 115
     0x16000000,0x0,0x18ffffff,0x18ffffff,0x0,0x16000000,0x16000000,0x0,0x18ffffff,0x18ffffff,0x0,0x16000000,0x16000000,0x0,
116 116
     0x18ffffff,0x18ffffff,0x0,0x16000000,0x16000000,0x0,0x18ffffff,0x18ffffff,0x0,0x16000000
117 117
 };
118 118
 
119
-static const QRgb btn17VRaisedShadowPressed_data[] = {
119
+static const TQRgb btn17VRaisedShadowPressed_data[] = {
120 120
     0x0,0x0,0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,
121 121
     0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,0x18ffffff,0x18ffffff,0x0,0x0
122 122
 };
123 123
 
124
-static const QRgb btn17VSunkenShadow_data[] = {
124
+static const TQRgb btn17VSunkenShadow_data[] = {
125 125
     0x22d9d9d9,0x0,0x0,0x0,0x0,0x22d9d9d9,0x22d9d9d9,0x0,0x0,0x0,0x0,0x22d9d9d9,0x22d9d9d9,0x0,
126 126
     0x0,0x0,0x0,0x22d9d9d9,0x22d9d9d9,0x0,0x0,0x0,0x0,0x22d9d9d9
127 127
 };
128 128
 
129
-static const QRgb btnPressedShadowHLines_data[] = {
129
+static const TQRgb btnPressedShadowHLines_data[] = {
130 130
     0x81000000,0x81000000,0x81000000,0x81000000,0x4a000000,0x4a000000,0x4a000000,0x4a000000,0x1f000000,0x1f000000,0x1f000000,0x1f000000,0x8000000,0x8000000,
131 131
     0x8000000,0x8000000,0x1e000000,0x1e000000,0x1e000000,0x1e000000
132 132
 };
133 133
 
134
-static const QRgb btnPressedShadowRectangular_data[] = {
134
+static const TQRgb btnPressedShadowRectangular_data[] = {
135 135
     0x9c000000,0x8c000000,0x84000000,0x81000000,0x81000000,0x81000000,0x81000000,0x84000000,0x8c000000,0x9c000000,0x7a000000,0x5e000000,0x50000000,0x4b000000,
136 136
     0x4a000000,0x4a000000,0x4b000000,0x4f000000,0x5e000000,0x7a000000,0x5e000000,0x3a000000,0x26000000,0x20000000,0x1f000000,0x1f000000,0x20000000,0x26000000,
137 137
     0x39000000,0x5e000000,0x50000000,0x26000000,0x11000000,0x0,0x0,0x0,0x0,0x11000000,0x26000000,0x50000000,0x4b000000,0x20000000,
@@ -141,7 +141,7 @@ static const QRgb btnPressedShadowRectangular_data[] = {
141 141
     0x1f000000,0x26000000,0x39000000,0x5e000000,0x0,0x0
142 142
 };
143 143
 
144
-static const QRgb btnPressedShadowRound_data[] = {
144
+static const TQRgb btnPressedShadowRound_data[] = {
145 145
     0x0,0x0,0x53000000,0x72000000,0x82000000,0x82000000,0x72000000,0x53000000,0x0,0x0,0x0,0x68000000,0x79000000,0x62000000,
146 146
     0x54000000,0x54000000,0x62000000,0x78000000,0x68000000,0x0,0x33000000,0x6e000000,0x4d000000,0x35000000,0x28000000,0x27000000,0x35000000,0x4d000000,
147 147
     0x6e000000,0x33000000,0x5a000000,0x4d000000,0x2b000000,0x17000000,0x7000000,0x7000000,0x17000000,0x2b000000,0x4d000000,0x5a000000,0x55000000,0x2e000000,
@@ -151,12 +151,12 @@ static const QRgb btnPressedShadowRound_data[] = {
151 151
     0x27000000,0x1b000000,0x0,0x0,0x0,0x0
152 152
 };
153 153
 
154
-static const QRgb btnPressedShadowVLines_data[] = {
154
+static const TQRgb btnPressedShadowVLines_data[] = {
155 155
     0x4a000000,0x1f000000,0x9000000,0x8000000,0x1e000000,0x4a000000,0x4a000000,0x1f000000,0x9000000,0x8000000,0x1e000000,0x4a000000,0x4a000000,0x1f000000,
156 156
     0x9000000,0x8000000,0x1e000000,0x4a000000,0x4a000000,0x1f000000,0x9000000,0x8000000,0x1e000000,0x4a000000
157 157
 };
158 158
 
159
-static const QRgb checkbox2inside_data[] = {
159
+static const TQRgb checkbox2inside_data[] = {
160 160
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
161 161
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
162 162
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
@@ -184,7 +184,7 @@ static const QRgb checkbox2inside_data[] = {
184 184
     0x0,0x0,0x0,0x0,0x0,0x0
185 185
 };
186 186
 
187
-static const QRgb checkbox2pressed_data[] = {
187
+static const TQRgb checkbox2pressed_data[] = {
188 188
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
189 189
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
190 190
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
@@ -212,7 +212,7 @@ static const QRgb checkbox2pressed_data[] = {
212 212
     0x0,0x0,0x0,0x0,0x0,0x0
213 213
 };
214 214
 
215
-static const QRgb checkbox2rect_data[] = {
215
+static const TQRgb checkbox2rect_data[] = {
216 216
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
217 217
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
218 218
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1a000000,0x6a000000,0xba000000,0xc8000000,
@@ -240,7 +240,7 @@ static const QRgb checkbox2rect_data[] = {
240 240
     0x0,0x0,0x0,0x0,0x0,0x0
241 241
 };
242 242
 
243
-static const QRgb checkbox2shadow_data[] = {
243
+static const TQRgb checkbox2shadow_data[] = {
244 244
     0x0,0x0,0x0,0x2000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,
245 245
     0x2000000,0x0,0x0,0x0,0x0,0x0,0x4000000,0xf222222,0x17212121,0x191e1e1e,0x191e1e1e,0x1a272727,0x1a272727,0x1a272727,
246 246
     0x1a272727,0x1a272727,0x191e1e1e,0x17212121,0xf222222,0x4000000,0x0,0x0,0x0,0x3555555,0x13505050,0x106f6f6f,0xfefefe,0xffffff,
@@ -268,7 +268,7 @@ static const QRgb checkbox2shadow_data[] = {
268 268
     0x3ffffff,0x3ffffff,0x2ffffff,0xffffff,0x0,0x0
269 269
 };
270 270
 
271
-static const QRgb checkListExclusiveIndicator_data[] = {
271
+static const TQRgb checkListExclusiveIndicator_data[] = {
272 272
     0x0,0x0,0x3000000,0x28000000,0x76000000,0x9c000000,0xa3000000,0x9c000000,0x76000000,0x28000000,0x3000000,0x0,0x0,0x0,
273 273
     0x4000000,0x61000000,0xad000000,0x71000000,0x42000000,0x31000000,0x42000000,0x71000000,0xad000000,0x61000000,0x4000000,0x0,0x3000000,0x65000000,
274 274
     0xaf000000,0x20000000,0x4000000,0x1000000,0x1000000,0x1000000,0x4000000,0x20000000,0xaf000000,0x65000000,0x3000000,0x29000000,0xb1000000,0x21000000,
@@ -284,7 +284,7 @@ static const QRgb checkListExclusiveIndicator_data[] = {
284 284
     0x0
285 285
 };
286 286
 
287
-static const QRgb checkmark_data[] = {
287
+static const TQRgb checkmark_data[] = {
288 288
     0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
289 289
     0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
290 290
     0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
@@ -307,7 +307,7 @@ static const QRgb checkmark_data[] = {
307 307
     0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff
308 308
 };
309 309
 
310
-static const QRgb dockBack_data[] = {
310
+static const TQRgb dockBack_data[] = {
311 311
     0x0,0x0,0x1ffffff,0x360c0c0c,0x65030303,0x79010101,0x79010101,0x65030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
312 312
     0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36141414,0x68000000,0x55000000,
313 313
     0x4f000000,0x3d5a5a5a,0x3c5c5c5c,0x4f000000,0x55000000,0x68000000,0x36141414,0x1ffffff,0x4ffffff,0x5a0b0b0b,0x55000000,0x4d000000,0x4c000000,0x3c606060,
@@ -331,7 +331,7 @@ static const QRgb dockBack_data[] = {
331 331
     0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
332 332
 };
333 333
 
334
-static const QRgb dockClose_data[] = {
334
+static const TQRgb dockClose_data[] = {
335 335
     0x0,0x0,0x1ffffff,0x360c0c0c,0x65030303,0x79010101,0x79010101,0x65030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
336 336
     0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36141414,0x68000000,0x3c7a7a7a,
337 337
     0x3f131313,0x4d000000,0x4d000000,0x3f131313,0x3e8a8a8a,0x68000000,0x36141414,0x1ffffff,0x4ffffff,0x5a0b0b0b,0x55000000,0x434a4a4a,0x23f4f4f4,0x32141414,
@@ -355,7 +355,7 @@ static const QRgb dockClose_data[] = {
355 355
     0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
356 356
 };
357 357
 
358
-static const QRgb dockStay_data[] = {
358
+static const TQRgb dockStay_data[] = {
359 359
     0x0,0x0,0x1ffffff,0x360c0c0c,0x65030303,0x79010101,0x79010101,0x65030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
360 360
     0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36141414,0x68000000,0x403b3b3b,
361 361
     0x3fa2a2a2,0x44b3b3b3,0x44b2b2b2,0x3fa2a2a2,0x403b3b3b,0x68000000,0x36141414,0x1ffffff,0x4ffffff,0x5a0b0b0b,0x55000000,0x277b7b7b,0x3d000000,0x4c000000,
@@ -379,7 +379,7 @@ static const QRgb dockStay_data[] = {
379 379
     0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
380 380
 };
381 381
 
382
-static const QRgb dockToDesktop2_data[] = {
382
+static const TQRgb dockToDesktop2_data[] = {
383 383
     0x0,0x0,0x1ffffff,0x360c0c0c,0x64030303,0x79010101,0x79010101,0x64030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
384 384
     0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36151515,0x68000000,0x55000000,
385 385
     0x4f000000,0x32707070,0x2d8d8d8d,0x30868686,0x3b5c5c5c,0x68000000,0x36151515,0x1ffffff,0x4ffffff,0x5a0c0c0c,0x55000000,0x4d000000,0x4c000000,0x2a8b8b8b,
@@ -403,13 +403,13 @@ static const QRgb dockToDesktop2_data[] = {
403 403
     0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
404 404
 };
405 405
 
406
-static const QRgb focusRectEdges_data[] = {
406
+static const TQRgb focusRectEdges_data[] = {
407 407
     0x0,0x3b000000,0xbb000000,0xbb000000,0x3b000000,0x0,0x33000000,0xc1000000,0x20000000,0x20000000,0xc1000000,0x33000000,0xbb000000,0x17000000,
408 408
     0x0,0x0,0x17000000,0xbb000000,0xbb000000,0x17000000,0x0,0x0,0x17000000,0xbb000000,0x33000000,0xc1000000,0x20000000,0x20000000,
409 409
     0xc1000000,0x33000000,0x0,0x3b000000,0xbb000000,0xbb000000,0x3b000000,0x0
410 410
 };
411 411
 
412
-static const QRgb groupBoxMask_small_data[] = {
412
+static const TQRgb groupBoxMask_small_data[] = {
413 413
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
414 414
     0x0,0x0,0x0,0x0,0x0,0x0,0x1bff0000,0x88ff0000,0xd1ff0000,0xffff0000,0xffff0000,0xd1ff0000,0x88ff0000,0x1bff0000,
415 415
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x64ff0000,0xf6ff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,
@@ -431,7 +431,7 @@ static const QRgb groupBoxMask_small_data[] = {
431 431
     0x0,0x0,0x0,0x0
432 432
 };
433 433
 
434
-static const QRgb groupBox_small_data[] = {
434
+static const TQRgb groupBox_small_data[] = {
435 435
     0xffffff,0xffffff,0xffffff,0xffffff,0x3ffffff,0xbffffff,0x13ffffff,0x17ffffff,0x17ffffff,0x13ffffff,0xbffffff,0x3ffffff,0xffffff,0xffffff,
436 436
     0xffffff,0xffffff,0xffffff,0xffffff,0x1ffffff,0xbffffff,0x27b8b8b8,0x464d4d4d,0x4e212121,0x48000000,0x48000000,0x4e212121,0x464d4d4d,0x27b8b8b8,
437 437
     0xbffffff,0x1ffffff,0xffffff,0xffffff,0xffffff,0x1ffffff,0xfffffff,0x40707070,0x44080808,0x37000000,0x29000000,0x21000000,0x20000000,0x28000000,
@@ -453,7 +453,7 @@ static const QRgb groupBox_small_data[] = {
453 453
     0x3ffffff,0xffffff,0xffffff,0xffffff
454 454
 };
455 455
 
456
-static const QRgb lineedit4edges_data[] = {
456
+static const TQRgb lineedit4edges_data[] = {
457 457
     0x0,0x1e121212,0x56141414,0x7a181818,0x7a181818,0x56141414,0x1e121212,0x0,0x1e000000,0x6c171717,0x51151515,0x3a131313,0x3a131313,0x51151515,
458 458
     0x6c171717,0x1e000000,0x4a000000,0x3f000000,0x1b111111,0xb111111,0xb111111,0x1b111111,0x3f000000,0x4a000000,0x4e000000,0x1d000000,0x5101010,0x20a0a0a,
459 459
     0x20a0a0a,0x5101010,0x1c000000,0x4e000000,0x4f000000,0xc000000,0x0,0x0,0x0,0x0,0xa000000,0x4f000000,0x36000000,0x14000000,
@@ -461,7 +461,7 @@ static const QRgb lineedit4edges_data[] = {
461 461
     0x0,0x11000000,0x1d000000,0x1f000000,0x1f000000,0x1d000000,0x11000000,0x0
462 462
 };
463 463
 
464
-static const QRgb lineedit4inside_data[] = {
464
+static const TQRgb lineedit4inside_data[] = {
465 465
     0x0,0x0,0x59ffffff,0xbfffffff,0xbfffffff,0x59ffffff,0x0,0x0,0x0,0x8cffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
466 466
     0x8cffffff,0x0,0x59ffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0x59ffffff,0xbfffffff,0xffffffff,0xffffffff,0xffffffff,
467 467
     0xffffffff,0xffffffff,0xffffffff,0xbfffffff,0xbfffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xbfffffff,0x59ffffff,0xffffffff,
@@ -469,25 +469,25 @@ static const QRgb lineedit4inside_data[] = {
469 469
     0x0,0x0,0x59ffffff,0xbfffffff,0xbfffffff,0x59ffffff,0x0,0x0
470 470
 };
471 471
 
472
-static const QRgb lineEditBtnEdges_d_data[] = {
472
+static const TQRgb lineEditBtnEdges_d_data[] = {
473 473
     0x0,0x66ededed,0xbeededed,0xbeededed,0x66ededed,0x0,0x66ededed,0xf1ededed,0xffededed,0xffededed,0xf1ededed,0x66ededed,0xbeededed,0xffededed,
474 474
     0xffededed,0xffededed,0xffededed,0xbeededed,0xbeededed,0xffededed,0xffededed,0xffededed,0xffededed,0xbeededed,0x66ededed,0xf1ededed,0xffededed,0xffededed,
475 475
     0xf1ededed,0x66ededed,0x0,0x66ededed,0xbeededed,0xbeededed,0x66ededed,0x0
476 476
 };
477 477
 
478
-static const QRgb lineEditBtnEdges_data[] = {
478
+static const TQRgb lineEditBtnEdges_data[] = {
479 479
     0x0,0x2fededed,0xafededed,0xafededed,0x2fededed,0x0,0x2fededed,0xefededed,0xffededed,0xffededed,0xefededed,0x2fededed,0xafededed,0xffededed,
480 480
     0xffededed,0xffededed,0xffededed,0xafededed,0xafededed,0xffededed,0xffededed,0xffededed,0xffededed,0xafededed,0x2fededed,0xefededed,0xffededed,0xffededed,
481 481
     0xefededed,0x2fededed,0x0,0x2fededed,0xafededed,0xafededed,0x2fededed,0x0
482 482
 };
483 483
 
484
-static const QRgb lineEditBtnShadow_data[] = {
484
+static const TQRgb lineEditBtnShadow_data[] = {
485 485
     0x0,0x1d000000,0x25000000,0x25000000,0x1d000000,0x0,0x1d000000,0x2b000000,0x1e000000,0x1e000000,0x2b000000,0x1d000000,0x18000000,0x16000000,
486 486
     0xc000000,0xc000000,0x16000000,0x18000000,0x13000000,0xa000000,0x2000000,0x2000000,0xa000000,0x13000000,0x1a000000,0xf000000,0x6000000,0x6000000,
487 487
     0xf000000,0x1a000000,0x0,0x19000000,0xb000000,0xb000000,0x19000000,0x0
488 488
 };
489 489
 
490
-static const QRgb lveTriangular_data[] = {
490
+static const TQRgb lveTriangular_data[] = {
491 491
     0x4c000000,0xb000000,0x0,0x0,0x0,0x0,0x0,0x7c000000,0x77000000,0x31000000,0x0,0x0,0x0,0x0,
492 492
     0x7c000000,0x7f000000,0x7f000000,0x60000000,0xd000000,0x0,0x0,0x7c000000,0x7f000000,0x7f000000,0x7f000000,0x7d000000,0x41000000,0x1000000,
493 493
     0x7c000000,0x7f000000,0x7f000000,0x7f000000,0x7f000000,0x7f000000,0x49000000,0x7c000000,0x7f000000,0x7f000000,0x7f000000,0x7d000000,0x41000000,0x1000000,
@@ -495,13 +495,13 @@ static const QRgb lveTriangular_data[] = {
495 495
     0x4c000000,0xb000000,0x0,0x0,0x0,0x0,0x0
496 496
 };
497 497
 
498
-static const QRgb menuItem_data[] = {
498
+static const TQRgb menuItem_data[] = {
499 499
     0x0,0x42000000,0xb3000000,0xc5000000,0x5c000000,0x3000000,0x36000000,0xff000000,0xff000000,0xff000000,0xff000000,0x62000000,0xa0000000,0xff000000,
500 500
     0xff000000,0xff000000,0xff000000,0xcc000000,0x92000000,0xff000000,0xff000000,0xff000000,0xff000000,0xbe000000,0x28000000,0xff000000,0xff000000,0xff000000,
501 501
     0xff000000,0x52000000,0x0,0x24000000,0x92000000,0xa4000000,0x3b000000,0x0
502 502
 };
503 503
 
504
-static const QRgb popup5_data[] = {
504
+static const TQRgb popup5_data[] = {
505 505
     0x0,0x0,0x3a575757,0xaf575757,0xfa575757,0xfa575757,0xaf575757,0x3a575757,0x0,0x0,0x0,0x5a575757,0xec575757,0x53575757,
506 506
     0x4575757,0x4575757,0x53575757,0xec575757,0x5a575757,0x0,0x22575757,0xeb575757,0x1c575757,0x0,0x0,0x0,0x0,0x1c575757,
507 507
     0xeb575757,0x22575757,0x9c575757,0x74575757,0x0,0x0,0x0,0x0,0x0,0x0,0x74575757,0x9c575757,0xd1575757,0x2c575757,
@@ -512,12 +512,12 @@ static const QRgb popup5_data[] = {
512 512
     0x0,0x0
513 513
 };
514 514
 
515
-static const QRgb progressShadow2_data[] = {
515
+static const TQRgb progressShadow2_data[] = {
516 516
     0xc6000000,0xb2000000,0xb2000000,0xc6000000,0x8d000000,0x65000000,0x65000000,0x8d000000,0x65000000,0x2f000000,0x2f000000,0x65000000,0x65000000,0x2e000000,
517 517
     0x2e000000,0x64000000
518 518
 };
519 519
 
520
-static const QRgb progressTile_data[] = {
520
+static const TQRgb progressTile_data[] = {
521 521
     0x6000000,0xa000000,0x10000000,0x16000000,0x1b000000,0x20000000,0x23000000,0x25000000,0x27000000,0x27000000,0x27000000,0x23000000,0x1f000000,0x19000000,
522 522
     0x12000000,0xc000000,0x7000000,0x3000000,0x2000000,0x3000000,0x3000000,0x6000000,0xa000000,0x10000000,0x16000000,0x1b000000,0x20000000,0x23000000,
523 523
     0x25000000,0x27000000,0x27000000,0x27000000,0x23000000,0x1f000000,0x19000000,0x12000000,0xc000000,0x7000000,0x3000000,0x2000000,0x2000000,0x3000000,
@@ -549,7 +549,7 @@ static const QRgb progressTile_data[] = {
549 549
     0x19000000,0x12000000,0xc000000,0x7000000,0x3000000,0x2000000,0x3000000,0x6000000
550 550
 };
551 551
 
552
-static const QRgb radio3circle_data[] = {
552
+static const TQRgb radio3circle_data[] = {
553 553
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
554 554
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2000000,0x8000000,0xd000000,0xd000000,0xd000000,0x8000000,
555 555
     0x2000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9000000,0x38000000,0xa4000000,0xb9000000,
@@ -573,7 +573,7 @@ static const QRgb radio3circle_data[] = {
573 573
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
574 574
 };
575 575
 
576
-static const QRgb radio3inside_data[] = {
576
+static const TQRgb radio3inside_data[] = {
577 577
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
578 578
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
579 579
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffffff,0xffffff,0xffffff,0xffffff,0x8ffffff,0x26ffffff,
@@ -597,7 +597,7 @@ static const QRgb radio3inside_data[] = {
597 597
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
598 598
 };
599 599
 
600
-static const QRgb radio3pressed_data[] = {
600
+static const TQRgb radio3pressed_data[] = {
601 601
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
602 602
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
603 603
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
@@ -621,7 +621,7 @@ static const QRgb radio3pressed_data[] = {
621 621
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
622 622
 };
623 623
 
624
-static const QRgb radio3shadow_data[] = {
624
+static const TQRgb radio3shadow_data[] = {
625 625
     0x0,0x0,0x0,0x0,0x1000000,0x3000000,0x7000000,0xa000000,0xc000000,0xa000000,0x7000000,0x3000000,0x1000000,0x0,
626 626
     0x0,0x0,0x0,0xffffff,0xffffff,0xffffff,0x2000000,0x8000000,0x10000000,0x1b090909,0x24151515,0x26141414,0x24151515,0x1b090909,
627 627
     0x11000000,0x8000000,0x2000000,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0x2000000,0xa000000,0x1b1c1c1c,0x2e2c2c2c,0xdffffff,0xbffffff,
@@ -645,17 +645,17 @@ static const QRgb radio3shadow_data[] = {
645 645
     0x21ffffff,0x1dffffff,0x14ffffff,0xaffffff,0x3ffffff,0xffffff,0xffffff,0xffffff,0xffffff
646 646
 };
647 647
 
648
-static const QRgb rb_dot2_data[] = {
648
+static const TQRgb rb_dot2_data[] = {
649 649
     0x221d1d1d,0x9f060606,0xcc010101,0x9f060606,0x221d1d1d,0xa2121212,0xd2010101,0xd2000000,0xd2010101,0xa2121212,0xd11f1f1f,0xd3060606,0xd2000000,0xd3060606,
650 650
     0xd11f1f1f,0xac393939,0xd71e1e1e,0xd5121212,0xd71e1e1e,0xac393939,0x27404040,0xaf424242,0xd8434343,0xaf424242,0x27404040
651 651
 };
652 652
 
653
-static const QRgb rb_dot2_shadow_data[] = {
653
+static const TQRgb rb_dot2_shadow_data[] = {
654 654
     0x4fefefe,0x4ffffff,0x1ffffff,0x4ffffff,0x4fcfcfc,0xcfafafa,0x1ffffff,0x0,0x1ffffff,0xcfafafa,0x1afcfcfc,0x5ffffff,0x1bfbfbf,0x5ffffff,
655 655
     0x1afcfcfc,0x27fdfdfd,0x1afcfcfc,0x10fafafa,0x1afcfcfc,0x27fdfdfd,0xafdfdfd,0x2efdfdfd,0x3afdfdfd,0x2efdfdfd,0xafdfdfd
656 656
 };
657 657
 
658
-static const QRgb scroll2BtnHContour2_data[] = {
658
+static const TQRgb scroll2BtnHContour2_data[] = {
659 659
     0xff000000,0xff000000,0xff000000,0xff000000,0xd5000000,0x78000000,0x40000000,0x11000000,0x0,0x0,0x11000000,0x40000000,0x78000000,0xd5000000,
660 660
     0xff000000,0xff000000,0xff000000,0xff000000,0x23000000,0x23000000,0x331b1b1b,0x30000000,0x95000000,0x2c000000,0x1000000,0x0,0x0,0x0,
661 661
     0x0,0x1000000,0x2c000000,0x95000000,0x30000000,0x331b1b1b,0x23000000,0x23000000,0x0,0xe000000,0x36000000,0xaa000000,0x2f000000,0x0,
@@ -678,7 +678,7 @@ static const QRgb scroll2BtnHContour2_data[] = {
678 678
     0xff000000,0xff000000,0xff000000,0xff000000
679 679
 };
680 680
 
681
-static const QRgb scroll2BtnHMask_data[] = {
681
+static const TQRgb scroll2BtnHMask_data[] = {
682 682
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
683 683
     0x0,0x0,0x0,0x0,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xb4ff0000,0x25ff0000,0x0,0x0,0x0,0x0,
684 684
     0x0,0x0,0x25ff0000,0xb4ff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0x8dff0000,0x1ff0000,0x0,
@@ -701,7 +701,7 @@ static const QRgb scroll2BtnHMask_data[] = {
701 701
     0x0,0x0,0x0,0x0
702 702
 };
703 703
 
704
-static const QRgb scroll2BtnHShadow2_data[] = {
704
+static const TQRgb scroll2BtnHShadow2_data[] = {
705 705
     0x0,0x0,0x0,0x0,0x0,0x0,0x13000000,0x12000000,0x7000000,0x7000000,0x12000000,0x13000000,0x0,0x0,
706 706
     0x0,0x0,0x0,0x0,0x17ffffff,0x17ffffff,0x12ffffff,0x19ffffff,0x16171717,0x24000000,0x17000000,0x7000000,0x2000000,0x2000000,
707 707
     0x7000000,0x17000000,0x24000000,0x16171717,0x19ffffff,0x12ffffff,0x17ffffff,0x17ffffff,0x0,0xcffffff,0x19ffffff,0x170b0b0b,0x21000000,0x11000000,
@@ -724,7 +724,7 @@ static const QRgb scroll2BtnHShadow2_data[] = {
724 724
     0x0,0x0,0x0,0x0
725 725
 };
726 726
 
727
-static const QRgb scroll2BtnVContour2_data[] = {
727
+static const TQRgb scroll2BtnVContour2_data[] = {
728 728
     0xff000000,0x23000000,0x0,0x2000000,0x11000000,0x1d000000,0x23000000,0x28000000,0x23000000,0x1d000000,0x11000000,0x2000000,0x0,0x23000000,
729 729
     0xff000000,0xff000000,0x23000000,0xe000000,0x25000000,0x55000000,0x8e000000,0xaf000000,0xb0000000,0xaf000000,0x8e000000,0x55000000,0x25000000,0xe000000,
730 730
     0x23000000,0xff000000,0xff000000,0x331b1b1b,0x36000000,0xa1000000,0x7c000000,0x28000000,0x1000000,0x0,0x1000000,0x28000000,0x7c000000,0xa1000000,
@@ -747,7 +747,7 @@ static const QRgb scroll2BtnVContour2_data[] = {
747 747
     0x2000000,0x0,0x23000000,0xff000000
748 748
 };
749 749
 
750
-static const QRgb scroll2BtnVMask_data[] = {
750
+static const TQRgb scroll2BtnVMask_data[] = {
751 751
     0x0,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,
752 752
     0x0,0x0,0xffff0000,0xffff0000,0xffff0000,0xfcff0000,0xbfff0000,0x88ff0000,0x76ff0000,0x88ff0000,0xbfff0000,0xfcff0000,0xffff0000,0xffff0000,
753 753
     0xffff0000,0x0,0x0,0xffff0000,0xffff0000,0xb4ff0000,0x24ff0000,0x0,0x0,0x0,0x0,0x0,0x24ff0000,0xb4ff0000,
@@ -770,7 +770,7 @@ static const QRgb scroll2BtnVMask_data[] = {
770 770
     0xffff0000,0xffff0000,0xffff0000,0x0
771 771
 };
772 772
 
773
-static const QRgb scroll2BtnVShadow2_data[] = {
773
+static const TQRgb scroll2BtnVShadow2_data[] = {
774 774
     0x0,0x17ffffff,0x0,0x5ffffff,0xeffffff,0x17ffffff,0x1bffffff,0x1cffffff,0x1bffffff,0x17ffffff,0xeffffff,0x5ffffff,0x0,0x17ffffff,
775 775
     0x0,0x0,0x17ffffff,0xcffffff,0x1bffffff,0x18ffffff,0x186a6a6a,0x1a000000,0x1e000000,0x1a000000,0x19666666,0x18ffffff,0x1bffffff,0xcffffff,
776 776
     0x17ffffff,0x0,0x0,0x12ffffff,0x19ffffff,0x112d2d2d,0x24000000,0x20000000,0x19000000,0x17000000,0x19000000,0x20000000,0x24000000,0x122a2a2a,
@@ -793,7 +793,7 @@ static const QRgb scroll2BtnVShadow2_data[] = {
793 793
     0x5ffffff,0x0,0x17ffffff,0x0
794 794
 };
795 795
 
796
-static const QRgb scroll2SliderHContour_data[] = {
796
+static const TQRgb scroll2SliderHContour_data[] = {
797 797
     0x0,0x0,0x0,0x0,0x0,0x0,0x64000000,0x8f000000,0x8f000000,0x64000000,0x0,0x0,0x0,0x0,
798 798
     0x0,0x0,0x0,0x0,0x0,0x0,0x18000000,0x9b000000,0x7c000000,0x3e000000,0x3e000000,0x7c000000,0x9b000000,0x18000000,
799 799
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1c000000,0xb2000000,0x44000000,0x1c000000,0xa000000,0xa000000,0x1c000000,
@@ -814,7 +814,7 @@ static const QRgb scroll2SliderHContour_data[] = {
814 814
     0x0,0x0
815 815
 };
816 816
 
817
-static const QRgb scroll2SliderHDockedContour_data[] = {
817
+static const TQRgb scroll2SliderHDockedContour_data[] = {
818 818
     0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,
819 819
     0xff000000,0xff000000,0x23000000,0x23000000,0x23000000,0x2b000000,0x44121212,0x9c000000,0x7c000000,0x3e000000,0x3e000000,0x7c000000,0x9c000000,0x44121212,
820 820
     0x2b000000,0x23000000,0x23000000,0x23000000,0x0,0x0,0xe000000,0x2f000000,0xb2000000,0x71000000,0x1c000000,0xa000000,0xa000000,0x1c000000,
@@ -835,7 +835,7 @@ static const QRgb scroll2SliderHDockedContour_data[] = {
835 835
     0xff000000,0xff000000
836 836
 };
837 837
 
838
-static const QRgb scroll2SliderHDockedShadow_data[] = {
838
+static const TQRgb scroll2SliderHDockedShadow_data[] = {
839 839
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
840 840
     0x0,0x0,0x17ffffff,0x17ffffff,0x17ffffff,0x17ffffff,0x11ffffff,0x16ffffff,0xbffffff,0x13ffffff,0x13ffffff,0xbffffff,0x16ffffff,0x11ffffff,
841 841
     0x17ffffff,0x17ffffff,0x17ffffff,0x17ffffff,0x0,0x0,0xaffffff,0x19ffffff,0x18ffffff,0x17ffffff,0x15ffffff,0x7ffffff,0x7ffffff,0x15ffffff,
@@ -856,7 +856,7 @@ static const QRgb scroll2SliderHDockedShadow_data[] = {
856 856
     0x0,0x0
857 857
 };
858 858
 
859
-static const QRgb scroll2SliderHMask_data[] = {
859
+static const TQRgb scroll2SliderHMask_data[] = {
860 860
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
861 861
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4bff0000,0xdaff0000,0xffff0000,0xffff0000,0xdaff0000,0x4bff0000,0x0,
862 862
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x72ff0000,0xfeff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,
@@ -877,7 +877,7 @@ static const QRgb scroll2SliderHMask_data[] = {
877 877
     0x0,0x0
878 878
 };
879 879
 
880
-static const QRgb scroll2SliderHShadow2_data[] = {
880
+static const TQRgb scroll2SliderHShadow2_data[] = {
881 881
     0x0,0x0,0x0,0x3000000,0xa000000,0x15000000,0x1f000000,0x17000000,0x17000000,0x1f000000,0x15000000,0xa000000,0x3000000,0x0,
882 882
     0x0,0x0,0x0,0x0,0x3000000,0xb000000,0x1a000000,0x1a000000,0xce9e9e9,0x13ffffff,0x13ffffff,0xce9e9e9,0x1a000000,0x1a000000,
883 883
     0xb000000,0x3000000,0x0,0x0,0x0,0x2000000,0xa000000,0x1a000000,0x1b000000,0x10ffffff,0x15ffffff,0x7ffffff,0x7ffffff,0x15ffffff,
@@ -898,7 +898,7 @@ static const QRgb scroll2SliderHShadow2_data[] = {
898 898
     0x0,0x0
899 899
 };
900 900
 
901
-static const QRgb scroll2SliderVContour_data[] = {
901
+static const TQRgb scroll2SliderVContour_data[] = {
902 902
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
903 903
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
904 904
     0x0,0x0,0x0,0x0,0x0,0x2000000,0x4a000000,0x98000000,0xb8000000,0xb9000000,0xb8000000,0x91000000,0x56000000,0x2000000,
@@ -919,7 +919,7 @@ static const QRgb scroll2SliderVContour_data[] = {
919 919
     0x0,0x0
920 920
 };
921 921
 
922
-static const QRgb scroll2SliderVDockedContour_data[] = {
922
+static const TQRgb scroll2SliderVDockedContour_data[] = {
923 923
     0xff000000,0x23000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x23000000,
924 924
     0xff000000,0xff000000,0x23000000,0x0,0x2000000,0x11000000,0x1d000000,0x23000000,0x23000000,0x23000000,0x1d000000,0x11000000,0x2000000,0x0,
925 925
     0x23000000,0xff000000,0xff000000,0x23000000,0xe000000,0x25000000,0x63000000,0x94000000,0xb8000000,0xb9000000,0xb8000000,0x94000000,0x63000000,0x25000000,
@@ -940,7 +940,7 @@ static const QRgb scroll2SliderVDockedContour_data[] = {
940 940
     0x23000000,0xff000000
941 941
 };
942 942
 
943
-static const QRgb scroll2SliderVDockedShadow_data[] = {
943
+static const TQRgb scroll2SliderVDockedShadow_data[] = {
944 944
     0x0,0x17ffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x17ffffff,
945 945
     0x0,0x0,0x17ffffff,0x0,0x5ffffff,0xdffffff,0x16ffffff,0x1effffff,0x1effffff,0x1effffff,0x16ffffff,0xdffffff,0x5ffffff,0x0,
946 946
     0x17ffffff,0x0,0x0,0x17ffffff,0xaffffff,0x19ffffff,0x1effffff,0x9ffffff,0x0,0x0,0x0,0x9ffffff,0x1effffff,0x19ffffff,
@@ -961,7 +961,7 @@ static const QRgb scroll2SliderVDockedShadow_data[] = {
961 961
     0x17ffffff,0x0
962 962
 };
963 963
 
964
-static const QRgb scroll2SliderVMask_data[] = {
964
+static const TQRgb scroll2SliderVMask_data[] = {
965 965
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
966 966
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
967 967
     0x0,0x0,0x0,0x0,0x0,0x0,0x3ff0000,0x40ff0000,0x77ff0000,0x89ff0000,0x77ff0000,0x40ff0000,0x3ff0000,0x0,
@@ -982,7 +982,7 @@ static const QRgb scroll2SliderVMask_data[] = {
982 982
     0x0,0x0
983 983
 };
984 984
 
985
-static const QRgb scroll2SliderVShadow2_data[] = {
985
+static const TQRgb scroll2SliderVShadow2_data[] = {
986 986
     0x0,0x0,0x0,0x1000000,0x2000000,0x4000000,0x5000000,0x6000000,0x5000000,0x4000000,0x2000000,0x1000000,0x0,0x0,
987 987
     0x0,0x0,0x0,0x2000000,0x6000000,0xc000000,0x12000000,0x16000000,0x16000000,0x16000000,0x12000000,0xc000000,0x6000000,0x2000000,
988 988
     0x0,0x0,0x0,0x3000000,0xa000000,0x16000000,0x20000000,0x15000000,0x16000000,0x16000000,0x16000000,0x15000000,0x20000000,0x16000000,
@@ -1003,7 +1003,7 @@ static const QRgb scroll2SliderVShadow2_data[] = {
1003 1003
     0x0,0x0
1004 1004
 };
1005 1005
 
1006
-static const QRgb scrollBarArrows_data[] = {
1006
+static const TQRgb scrollBarArrows_data[] = {
1007 1007
     0x0,0x0,0x0,0x23000000,0xa2000000,0xa2000000,0x23000000,0x0,0x0,0x0,0x0,0x0,0x4000000,0x77000000,
1008 1008
     0x4000000,0x0,0x0,0xa2000000,0xe5000000,0xeb000000,0xef000000,0xeb000000,0xe5000000,0xa2000000,0x0,0x0,0x42000000,0xbb000000,
1009 1009
     0xe5000000,0xe5000000,0xbb000000,0x42000000,0x0,0x0,0x0,0x0,0x7b000000,0xf5000000,0x7b000000,0x0,0x0,0x2a000000,
@@ -1018,29 +1018,29 @@ static const QRgb scrollBarArrows_data[] = {
1018 1018
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
1019 1019
 };
1020 1020
 
1021
-static const QRgb sizeGrip_data[] = {
1021
+static const TQRgb sizeGrip_data[] = {
1022 1022
     0x33bebebe,0x78bbbbbb,0x6bababab,0x278f8f8f,0x5e9d9d9d,0x6e9b9b9b,0x678a8a8a,0x4e6b6b6b,0x4b6c6c6c,0x576c6c6c,0x53595959,0x41363636,0x19282828,0x3a1e1e1e,
1023 1023
     0x390d0d0d,0x18000000
1024 1024
 };
1025 1025
 
1026
-static const QRgb sliderGrooveHBody_data[] = {
1026
+static const TQRgb sliderGrooveHBody_data[] = {
1027 1027
     0xb000000,0xb000000,0xb000000,0xb000000,0x9b353535,0x9b353535,0x9b353535,0x9b353535,0x92434343,0x92434343,0x92434343,0x92434343,0x8c535353,0x8c535353,
1028 1028
     0x8c535353,0x8c535353,0x86656565,0x86656565,0x86656565,0x86656565,0x2bfefefe,0x2bfefefe,0x2bfefefe,0x2bfefefe,0x9ffffff,0x9ffffff,0x9ffffff,0x9ffffff
1029 1029
 };
1030 1030
 
1031
-static const QRgb sliderGroove_h_data[] = {
1031
+static const TQRgb sliderGroove_h_data[] = {
1032 1032
     0x1000000,0x5000000,0x9000000,0x9000000,0x5000000,0x1000000,0x2000000,0x41353535,0x89353535,0x89353535,0x41353535,0x2000000,0x5999999,0x83444444,
1033 1033
     0x92434343,0x92434343,0x83444444,0x5999999,0x8dfdfdf,0x7f575757,0x8c535353,0x8c535353,0x7f575757,0x8dfdfdf,0x7ffffff,0x488e8e8e,0x7c6c6c6c,0x7c6c6c6c,
1034 1034
     0x488e8e8e,0x7ffffff,0x3ffffff,0x14fcfcfc,0x25ffffff,0x25ffffff,0x14fcfcfc,0x3ffffff,0x0,0x3ffffff,0x7ffffff,0x7ffffff,0x3ffffff,0x0
1035 1035
 };
1036 1036
 
1037
-static const QRgb sliderGroove_v_data[] = {
1037
+static const TQRgb sliderGroove_v_data[] = {
1038 1038
     0x1000000,0x2000000,0x5999999,0x8dfdfdf,0x7ffffff,0x3ffffff,0x0,0x5000000,0x41353535,0x83444444,0x7f575757,0x488e8e8e,0x14fcfcfc,0x3ffffff,
1039 1039
     0x9000000,0x89353535,0x92434343,0x8c535353,0x7c6c6c6c,0x25ffffff,0x7ffffff,0x9000000,0x89353535,0x92434343,0x8c535353,0x7c6c6c6c,0x25ffffff,0x7ffffff,
1040 1040
     0x5000000,0x41353535,0x83444444,0x7f575757,0x488e8e8e,0x14fcfcfc,0x3ffffff,0x1000000,0x2000000,0x5999999,0x8dfdfdf,0x7ffffff,0x3ffffff,0x0
1041 1041
 };
1042 1042
 
1043
-static const QRgb sliderHandle2inside2_data[] = {
1043
+static const TQRgb sliderHandle2inside2_data[] = {
1044 1044
     0x0,0x0,0x0,0x0,0x0,0xfffffff,0x39ffffff,0x51ffffff,0x39ffffff,0xfffffff,0x0,0x0,0x0,0x0,
1045 1045
     0x0,0x0,0xffffff,0xffffff,0x4ffffff,0x71ffffff,0xf4ffffff,0xffffffff,0xffffffff,0xffffffff,0xf3ffffff,0x6fffffff,0x3ffffff,0xffffff,
1046 1046
     0x0,0x0,0x0,0xffffff,0x4ffffff,0xabffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xabffffff,
@@ -1060,7 +1060,7 @@ static const QRgb sliderHandle2inside2_data[] = {
1060 1060
     0x0
1061 1061
 };
1062 1062
 
1063
-static const QRgb sliderHandle2circle_data[] = {
1063
+static const TQRgb sliderHandle2circle_data[] = {
1064 1064
 	0x0,0x0,0x0,0x0,0x1e8b8b8b,0x815e5e5e,0x95595959,0x995d5d5d,0x95595959,0x815e5e5e,0x1e8b8b8b,0x0,0x0,0x0,
1065 1065
 	0x0,0x0,0x0,0x0,0x6c5e5e5e,0x92585858,0x336e6e6e,0x0,0x0,0x0,0x336e6e6e,0x92585858,0x6c5e5e5e,0x0,
1066 1066
 	0x0,0x0,0x0,0x0,0x6f595959,0x75595959,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x75595959,
@@ -1080,7 +1080,7 @@ static const QRgb sliderHandle2circle_data[] = {
1080 1080
 	0x0
1081 1081
 };
1082 1082
 
1083
-static const QRgb sliderHandle2shadow_data[] = {
1083
+static const TQRgb sliderHandle2shadow_data[] = {
1084 1084
     0x0,0x0,0x1000000,0x3000000,0x5000000,0x4000000,0x2000000,0x5d5d5d,0x2000000,0x4000000,0x5000000,0x3000000,0x1000000,0x0,
1085 1085
     0x0,0x0,0x1000000,0x4000000,0x5000000,0xefefefe,0x32fefefe,0x45fefefe,0x4cfefefe,0x45fefefe,0x32fefefe,0xefefefe,0x5000000,0x4000000,
1086 1086
     0x1000000,0x0,0x1000000,0x4000000,0x6000000,0x17fefefe,0x3bfefefe,0x35fefefe,0x30fefefe,0x2efefefe,0x30fefefe,0x35fefefe,0x3bfefefe,0x17fefefe,
@@ -1100,7 +1100,7 @@ static const QRgb sliderHandle2shadow_data[] = {
1100 1100
     0x0
1101 1101
 };
1102 1102
 
1103
-static const QRgb spinBoxArrows_data[] = {
1103
+static const TQRgb spinBoxArrows_data[] = {
1104 1104
     0x0,0x0,0x0,0xd000000,0x0,0x0,0x0,0x0,0x0,0x24000000,0xa5000000,0x24000000,0x0,0x0,
1105 1105
     0x0,0x19000000,0xb5000000,0xff000000,0xb5000000,0x19000000,0x0,0x18000000,0x99000000,0xff000000,0xff000000,0xff000000,0x99000000,0x12000000,
1106 1106
     0x79000000,0xca000000,0xcc000000,0xd7000000,0xcc000000,0xca000000,0x78000000,0x79000000,0xca000000,0xcc000000,0xd7000000,0xcc000000,0xca000000,0x78000000,
@@ -1108,16 +1108,16 @@ static const QRgb spinBoxArrows_data[] = {
1108 1108
     0x0,0x0,0x24000000,0xa5000000,0x24000000,0x0,0x0,0x0,0x0,0x0,0xd000000,0x0,0x0,0x0
1109 1109
 };
1110 1110
 
1111
-static const QRgb tabHLines_data[] = {
1111
+static const TQRgb tabHLines_data[] = {
1112 1112
     0x4effffff,0x4effffff,0x4effffff,0x4effffff,0x1effffff,0x1effffff,0x1effffff,0x1effffff,0x19f9f9f9,0x19f9f9f9,0x19f9f9f9,0x19f9f9f9
1113 1113
 };
1114 1114
 
1115
-static const QRgb tabInsideWhiteLines_data[] = {
1115
+static const TQRgb tabInsideWhiteLines_data[] = {
1116 1116
     0x19ffffff,0x19ffffff,0x19ffffff,0x19ffffff,0x19ffffff,0x0,0x0,0x0,0x19ffffff,0x0,0x0,0x0,0x19ffffff,0x0,
1117 1117
     0x0,0x0
1118 1118
 };
1119 1119
 
1120
-static const QRgb tabInsideWhite_data[] = {
1120
+static const TQRgb tabInsideWhite_data[] = {
1121 1121
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
1122 1122
     0x0,0x0,0x0,0x0,0xaffffff,0x13ffffff,0x18ffffff,0x18ffffff,0x13ffffff,0xaffffff,0x0,0x0,0x0,0x0,
1123 1123
     0x0,0x0,0x3ffffff,0x17ffffff,0x14ffffff,0x9ffffff,0x3ffffff,0x3ffffff,0x9ffffff,0x14ffffff,0x17ffffff,0x3ffffff,0x0,0x0,
@@ -1134,11 +1134,11 @@ static const QRgb tabInsideWhite_data[] = {
1134 1134
     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
1135 1135
 };
1136 1136
 
1137
-static const QRgb tabVlines_data[] = {
1137
+static const TQRgb tabVlines_data[] = {
1138 1138
     0x1effffff,0x1effffff,0x1effffff,0x1effffff
1139 1139
 };
1140 1140
 
1141
-static const QRgb tabWidget_data[] = {
1141
+static const TQRgb tabWidget_data[] = {
1142 1142
     0x0,0x0,0x0,0x0,0x3000000,0xb000000,0x13000000,0x17000000,0x17000000,0x13000000,0xb000000,0x3000000,0x0,0x0,
1143 1143
     0x0,0x0,0x0,0x0,0x1000000,0xb000000,0x27474747,0x46b2b2b2,0x4ededede,0x48ffffff,0x48ffffff,0x4ededede,0x46b2b2b2,0x27474747,
1144 1144
     0xb000000,0x1000000,0x0,0x0,0x0,0x1000000,0xf000000,0x408f8f8f,0x44f7f7f7,0x37ffffff,0x29ffffff,0x21ffffff,0x20ffffff,0x28ffffff,
@@ -1160,7 +1160,7 @@ static const QRgb tabWidget_data[] = {
1160 1160
     0x3000000,0x0,0x0,0x0
1161 1161
 };
1162 1162
 
1163
-static const QRgb tooltipframe2_data[] = {
1163
+static const TQRgb tooltipframe2_data[] = {
1164 1164
     0x0,0x0,0x0,0xa575757,0x50575757,0x98575757,0xcc575757,0xcc575757,0x98575757,0x50575757,0xa575757,0x0,0x0,0x0,
1165 1165
     0x0,0x0,0x27575757,0xd3575757,0x99575757,0x56575757,0x1c575757,0x1c575757,0x56575757,0x99575757,0xd3575757,0x27575757,0x0,0x0,
1166 1166
     0x0,0x2d575757,0xe9575757,0x47575757,0x0,0x0,0x0,0x0,0x0,0x0,0x47575757,0xe9575757,0x2d575757,0x0,
@@ -1177,7 +1177,7 @@ static const QRgb tooltipframe2_data[] = {
1177 1177
     0x0,0x0,0x0,0xf575757,0x5d575757,0xa5575757,0xd9575757,0xd9575757,0xa5575757,0x5d575757,0xf575757,0x0,0x0,0x0
1178 1178
 };
1179 1179
 
1180
-static const QRgb toolBtnFrameThin_data[] = {
1180
+static const TQRgb toolBtnFrameThin_data[] = {
1181 1181
 	0x0,0x12000000,0x4e000000,0x9d000000,0x9d000000,0x4e000000,0x12000000,0x0,0xd000000,0x81000000,0x6d000000,0x19000000,0x19000000,0x6d000000,
1182 1182
 	0x81000000,0xd000000,0x4a000000,0x66000000,0x0,0x0,0x0,0x0,0x66000000,0x4a000000,0x9c000000,0x19000000,0x0,0x0,
1183 1183
 	0x0,0x0,0x19000000,0x9c000000,0x9c000000,0x19000000,0x0,0x0,0x0,0x0,0x19000000,0x9c000000,0x4a000000,0x66000000,
@@ -1190,7 +1190,7 @@ static struct EmbedImage {
1190 1190
 	int width, height, depth;
1191 1191
 	const unsigned char *data;
1192 1192
 	int numColors;
1193
-	const QRgb *colorTable;
1193
+	const TQRgb *colorTable;
1194 1194
 	bool alpha;
1195 1195
 	const char *name;
1196 1196
 	} embed_image_vec[] = {
@@ -1275,20 +1275,20 @@ static struct EmbedImage {
1275 1275
 		{ 0, 0, 0, 0, 0, 0, 0, 0 }
1276 1276
 };
1277 1277
 
1278
-static const QImage& qembed_findImage( const QString& name )
1278
+static const TQImage& qembed_findImage( const TQString& name )
1279 1279
 {
1280
-    static QDict<QImage> dict;
1281
-    QImage* img = dict.find( name );
1280
+    static TQDict<TQImage> dict;
1281
+    TQImage* img = dict.find( name );
1282 1282
     if ( !img ) {
1283 1283
 	for ( int i = 0; embed_image_vec[i].data; i++ ) {
1284 1284
 	    if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) {
1285
-		img = new QImage((uchar*)embed_image_vec[i].data,
1285
+		img = new TQImage((uchar*)embed_image_vec[i].data,
1286 1286
 			    embed_image_vec[i].width,
1287 1287
 			    embed_image_vec[i].height,
1288 1288
 			    embed_image_vec[i].depth,
1289
-			    (QRgb*)embed_image_vec[i].colorTable,
1289
+			    (TQRgb*)embed_image_vec[i].colorTable,
1290 1290
 			    embed_image_vec[i].numColors,
1291
-			    QImage::BigEndian );
1291
+			    TQImage::BigEndian );
1292 1292
 		if ( embed_image_vec[i].alpha )
1293 1293
 		    img->setAlphaBuffer( TRUE );
1294 1294
 		dict.insert( name, img );
@@ -1296,7 +1296,7 @@ static const QImage& qembed_findImage( const QString& name )
1296 1296
 	    }
1297 1297
 	}
1298 1298
 	if ( !img ) {
1299
-	    static QImage dummy;
1299
+	    static TQImage dummy;
1300 1300
 	    return dummy;
1301 1301
 	}
1302 1302
     }

+ 1727
- 1727
domino/domino.cpp
File diff suppressed because it is too large
View File


+ 218
- 218
domino/domino.h View File

@@ -42,11 +42,11 @@
42 42
 #define __DOMINO_H
43 43
 
44 44
 #include <kstyle.h>
45
-#include <qintcache.h>
45
+#include <tqintcache.h>
46 46
 #include <ktoolbarbutton.h>
47 47
 #include "misc.h"
48 48
 #include "data.h"
49
-#include <qpixmapcache.h>
49
+#include <tqpixmapcache.h>
50 50
 
51 51
 
52 52
 // #include <X11/extensions/Xrender.h>
@@ -80,11 +80,11 @@ class Rubber;
80 80
 
81 81
 	struct DSurface {
82 82
 		int numGradients;
83
-		QColor g1Color1;
84
-		QColor g1Color2;
85
-		QColor g2Color1;
86
-		QColor g2Color2;
87
-		QColor background;
83
+		TQColor g1Color1;
84
+		TQColor g1Color2;
85
+		TQColor g2Color1;
86
+		TQColor g2Color2;
87
+		TQColor background;
88 88
 		int g1Top;
89 89
 		int g1Bottom;
90 90
 		int g2Top;
@@ -108,112 +108,112 @@ public:
108 108
 		Palette_Widget
109 109
 	};
110 110
 	
111
-	void polish(QApplication* app );
112
-	void polish(QWidget* widget );
113
-	void polish( QPalette &p );
114
-	void unPolish(QWidget* widget );
111
+	void polish(TQApplication* app );
112
+	void polish(TQWidget* widget );
113
+	void polish( TQPalette &p );
114
+	void unPolish(TQWidget* widget );
115 115
 	
116 116
 	void drawKStylePrimitive(KStylePrimitive kpe,
117
-				QPainter* p,
118
-				const QWidget* widget,
119
-				const QRect &r,
120
-				const QColorGroup &cg,
117
+				TQPainter* p,
118
+				const TQWidget* widget,
119
+				const TQRect &r,
120
+				const TQColorGroup &cg,
121 121
 				SFlags flags = Style_Default,
122
-				const QStyleOption& = QStyleOption::Default ) const;
122
+				const TQStyleOption& = TQStyleOption::Default ) const;
123 123
 
124 124
 	void drawPrimitive(PrimitiveElement pe,
125
-				QPainter *p,
126
-				const QRect &r,
127
-				const QColorGroup &cg,
125
+				TQPainter *p,
126
+				const TQRect &r,
127
+				const TQColorGroup &cg,
128 128
 				SFlags flags = Style_Default,
129
-				const QStyleOption &opt = QStyleOption::Default ) const;
129
+				const TQStyleOption &opt = TQStyleOption::Default ) const;
130 130
 
131 131
 	void drawControl(ControlElement element,
132
-				QPainter *p,
133
-				const QWidget *widget,
134
-				const QRect &r,
135
-				const QColorGroup &cg,
132
+				TQPainter *p,
133
+				const TQWidget *widget,
134
+				const TQRect &r,
135
+				const TQColorGroup &cg,
136 136
 				SFlags flags = Style_Default,
137
-				const QStyleOption& = QStyleOption::Default ) const;
137
+				const TQStyleOption& = TQStyleOption::Default ) const;
138 138
 
139
-	void drawControlMask( ControlElement, QPainter *, const QWidget *, const QRect &, const QStyleOption &) const;
139
+	void drawControlMask( ControlElement, TQPainter *, const TQWidget *, const TQRect &, const TQStyleOption &) const;
140 140
 
141 141
 	void drawComplexControl(ComplexControl control,
142
-				QPainter *p,
143
-				const QWidget *widget,
144
-				const QRect &r,
145
-				const QColorGroup &cg,
142
+				TQPainter *p,
143
+				const TQWidget *widget,
144
+				const TQRect &r,
145
+				const TQColorGroup &cg,
146 146
 				SFlags flags = Style_Default,
147 147
 				SCFlags controls = SC_All,
148 148
 				SCFlags active = SC_None,
149
-				const QStyleOption& = QStyleOption::Default ) const;
149
+				const TQStyleOption& = TQStyleOption::Default ) const;
150 150
 
151 151
 	int pixelMetric(PixelMetric m,
152
-				const QWidget *widget = 0 ) const;
152
+				const TQWidget *widget = 0 ) const;
153 153
 
154
-	QRect subRect(SubRect r,
155
-				const QWidget *widget ) const;
154
+	TQRect subRect(SubRect r,
155
+				const TQWidget *widget ) const;
156 156
 
157
-	QRect querySubControlMetrics(ComplexControl control,
158
-				const QWidget *widget,
157
+	TQRect querySubControlMetrics(ComplexControl control,
158
+				const TQWidget *widget,
159 159
 				SubControl subcontrol,
160
-				const QStyleOption &opt = QStyleOption::Default ) const;
160
+				const TQStyleOption &opt = TQStyleOption::Default ) const;
161 161
 
162
-	QSize sizeFromContents(QStyle::ContentsType t,
163
-				const QWidget *w,
164
-				const QSize &s,
165
-				const QStyleOption &o) const;
162
+	TQSize sizeFromContents(TQStyle::ContentsType t,
163
+				const TQWidget *w,
164
+				const TQSize &s,
165
+				const TQStyleOption &o) const;
166 166
 
167
-	int styleHint(StyleHint, const QWidget * = 0,
168
-				const QStyleOption & = QStyleOption::Default,
169
-				QStyleHintReturn * = 0 ) const;
167
+	int styleHint(StyleHint, const TQWidget * = 0,
168
+				const TQStyleOption & = TQStyleOption::Default,
169
+				TQStyleHintReturn * = 0 ) const;
170 170
 	
171 171
 	
172
-	QPixmap stylePixmap(StylePixmap stylepixmap, const QWidget* widget, const QStyleOption& opt) const;
172
+	TQPixmap stylePixmap(StylePixmap stylepixmap, const TQWidget* widget, const TQStyleOption& opt) const;
173 173
 	
174
-	void drawItem( QPainter *p, const QRect &r,
175
-		       int flags, const QColorGroup &g, bool enabled,
176
-		       const QPixmap *pixmap, const QString &text,
177
-		       int len = -1, const QColor *penColor = 0) const;
174
+	void drawItem( TQPainter *p, const TQRect &r,
175
+		       int flags, const TQColorGroup &g, bool enabled,
176
+		       const TQPixmap *pixmap, const TQString &text,
177
+		       int len = -1, const TQColor *penColor = 0) const;
178 178
 	
179
-	void dominoDrawItem( QPainter *p, const QRect &r,
180
-		       int flags, const QColorGroup &g, bool enabled,
181
-		       const QPixmap *pixmap, const QString &text,
182
-		       int len = -1, const QColor *penColor = 0, bool buttonTextEffect = 0 ) const;
179
+	void dominoDrawItem( TQPainter *p, const TQRect &r,
180
+		       int flags, const TQColorGroup &g, bool enabled,
181
+		       const TQPixmap *pixmap, const TQString &text,
182
+		       int len = -1, const TQColor *penColor = 0, bool buttonTextEffect = 0 ) const;
183 183
 	
184
-	void setDominoButtonPalette(QWidget* widget, PaletteTyp type);
184
+	void setDominoButtonPalette(TQWidget* widget, PaletteTyp type);
185 185
 	
186
-	virtual void drawFocusIndicator(QPainter *p,
187
-				const QRect &r,
186
+	virtual void drawFocusIndicator(TQPainter *p,
187
+				const TQRect &r,
188 188
 				int flags,
189
-				const QColorGroup cg,
189
+				const TQColorGroup cg,
190 190
 				bool /*enabled*/,
191
-				const QPixmap*  /*pixmap*/,
192
-				const QString & text,
191
+				const TQPixmap*  /*pixmap*/,
192
+				const TQString & text,
193 193
 				int /*len = -1*/,
194
-				const QColor& highlight = 0,
194
+				const TQColor& highlight = 0,
195 195
 				bool drawLine = true,
196 196
 				bool isButton = false) const;
197 197
 	
198
-	QPixmap renderOutlineIcon(const QPixmap* icon) const;
198
+	TQPixmap renderOutlineIcon(const TQPixmap* icon) const;
199 199
 	
200
-	void renderSurface(QPainter *p,
201
-			   const QRect &r,
202
-			   const QColor &backgroundColor,
203
-			   const QColor &buttonColor,
204
-			   const QColor &highlightColor,
200
+	void renderSurface(TQPainter *p,
201
+			   const TQRect &r,
202
+			   const TQColor &backgroundColor,
203
+			   const TQColor &buttonColor,
204
+			   const TQColor &highlightColor,
205 205
 			   const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
206 206
 					   Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const;
207 207
 	
208
-	inline QWidget::BackgroundOrigin setPixmapOrigin(QWidget::BackgroundOrigin origin);
208
+	inline TQWidget::BackgroundOrigin setPixmapOrigin(TQWidget::BackgroundOrigin origin);
209 209
 	
210 210
 	mutable Rubber* rubber;
211
-	mutable QRect oldRubberRect;
211
+	mutable TQRect oldRubberRect;
212 212
 	mutable bool viewPortPressed;
213 213
 	mutable bool ignoreNextFocusRect;
214 214
 	uint _argbRubberBandColor;
215 215
 	mutable bool compositeManagerRunning;
216
-	const QWidget* rubberViewPort;
216
+	const TQWidget* rubberViewPort;
217 217
 	
218 218
 protected:
219 219
 	
@@ -235,25 +235,25 @@ protected:
235 235
 
236 236
 	struct TextEffectSettings {
237 237
 		TextEffect mode;
238
-		QColor color;
239
-		QColor buttonColor;
238
+		TQColor color;
239
+		TQColor buttonColor;
240 240
 		int opacity;
241 241
 		int buttonOpacity;
242
-		QPoint pos;
243
-		QPoint buttonPos;
242
+		TQPoint pos;
243
+		TQPoint buttonPos;
244 244
 	};
245 245
 
246 246
 	struct GroupBoxSettings {
247 247
 		bool tintBackground;
248 248
 		int brightness;
249 249
 		bool customColor;
250
-		QColor color;
250
+		TQColor color;
251 251
 	};
252 252
 
253 253
 	struct FocusIndicatorSettings {
254
-		QColor color;
254
+		TQColor color;
255 255
 		int opacity;
256
-		QColor buttonColor;
256
+		TQColor buttonColor;
257 257
 		int buttonOpacity;
258 258
 		bool drawUnderline;
259 259
 		bool indicateFocus;
@@ -308,51 +308,51 @@ protected:
308 308
 		PE_ScrollBarSubLine2 = 0xf000001
309 309
 	};
310 310
 	
311
-	void renderContour(QPainter *p,
312
-			const QRect &r,
313
-			const QColor &backgroundColor,
314
-			const QColor &contourColor,
311
+	void renderContour(TQPainter *p,
312
+			const TQRect &r,
313
+			const TQColor &backgroundColor,
314
+			const TQColor &contourColor,
315 315
 			const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
316 316
 				Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const;
317 317
 	
318
-	void renderButtonShadow(QPainter *p, const QRect &r, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
318
+	void renderButtonShadow(TQPainter *p, const TQRect &r, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
319 319
 			Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const;
320 320
 	
321
-	QPixmap* renderLineEditShadow(QWidget* widget, QRect rect, QColor bg, uint flags, bool reverse);
321
+	TQPixmap* renderLineEditShadow(TQWidget* widget, TQRect rect, TQColor bg, uint flags, bool reverse);
322 322
 	
323
-	inline void renderPixel(QPainter *p,
324
-		const QPoint &pos,
323
+	inline void renderPixel(TQPainter *p,
324
+		const TQPoint &pos,
325 325
 		const int alpha,
326
-		const QColor &color,
327
-		const QColor &background = QColor(),
326
+		const TQColor &color,
327
+		const TQColor &background = TQColor(),
328 328