summaryrefslogtreecommitdiff
path: root/development/macosx/qt232-X11.patch
blob: 66e2877f03db1230b8a4ebecdedb312ded4d4a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/configs/darwin-g++-shared qt-2.3.2_changed/configs/darwin-g++-shared
--- qt-2.3.2/configs/darwin-g++-shared	Thu Jan  1 01:00:00 1970
+++ qt-2.3.2_changed/configs/darwin-g++-shared	Sun Nov 16 12:33:53 2003
@@ -0,0 +1,94 @@
+# Compiling
+INTERFACE_DECL_PATH 	= .
+SYSCONF_CXX		= g++
+SYSCONF_CC		= gcc
+DASHCROSS		= 
+
+# Compiling with support libraries
+SYSCONF_CXXFLAGS_X11	= -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
+SYSCONF_CXXFLAGS_QT	= -I$(QTDIR)/include
+SYSCONF_CXXFLAGS_OPENGL	= -I/usr/X11R6/include
+
+# Compiling YACC output
+SYSCONF_CXXFLAGS_YACC     = -Wno-unused -Wno-parentheses
+
+# Linking with support libraries
+SYSCONF_RPATH_X11	= -L/usr/X11R6/lib
+SYSCONF_RPATH_QT	= -L$(QTDIR)/lib
+SYSCONF_RPATH_OPENGL	= -L/usr/X11R6/lib
+
+# Linking with support libraries
+# X11
+SYSCONF_LFLAGS_X11	= -L/usr/X11R6/lib 
+SYSCONF_LIBS_X11	= -lXext -lX11 -lm
+# Qt, Qt+OpenGL
+SYSCONF_LFLAGS_QT	= -L$(QTDIR)/lib
+SYSCONF_LIBS_QT		= -lqt$(QT_THREAD_SUFFIX)
+SYSCONF_LIBS_QT_OPENGL	= 
+# OpenGL
+SYSCONF_LFLAGS_OPENGL	= -L/usr/X11R6/lib
+SYSCONF_LIBS_OPENGL	= -lGLU -lGL -lXmu
+# Yacc
+SYSCONF_LIBS_YACC	= 
+
+# Linking applications
+SYSCONF_LINK		= g++
+SYSCONF_LFLAGS		= 
+SYSCONF_LIBS		= 
+
+# Link flags for shared objects
+SYSCONF_LFLAGS_SHOBJ	= -dynamiclib
+
+# Flags for threading
+SYSCONF_CFLAGS_THREAD	= -pthread -D_THREAD_SAFE
+SYSCONF_CXXFLAGS_THREAD	= -pthread -D_THREAD_SAFE
+SYSCONF_LFLAGS_THREAD	= -pthread
+SYSCONF_LIBS_THREAD	= 
+
+# Meta-object compiler
+SYSCONF_MOC		= $(QTDIR)/bin/moc
+
+# UI compiler
+SYSCONF_UIC		= $(QTDIR)/bin/uic
+
+# Linking shared libraries
+#   - Build the $(TARGET) library, eg. lib$(TARGET).so.2.2.2
+#   - Place target in $(DESTDIR) - which has a trailing /
+#   - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH)
+#
+SYSCONF_LINK_SHLIB	= g++
+SYSCONF_LINK_TARGET_SHARED	= lib$(TARGET).dylib.$(VER_MAJ).$(VER_MIN).$(VER_PATCH)
+SYSCONF_LINK_LIB_SHARED	=  $(SYSCONF_LINK_SHLIB) -dynamiclib \
+				     $(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \
+				     $(OBJECTS) $(OBJMOC) $(LIBS) && \
+				 mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \
+				 cd $(DESTDIR) && \
+				 rm -f lib$(TARGET).dylib lib$(TARGET).dylib.$(VER_MAJ) lib$(TARGET).dylib.$(VER_MAJ).$(VER_MIN); \
+				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).dylib; \
+				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).dylib.$(VER_MAJ); \
+				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).dylib.$(VER_MAJ).$(VER_MIN)
+
+# Linking static libraries
+#   - Build the $(TARGET) library, eg. lib$(TARGET).a
+#   - Place target in $(DESTDIR) - which has a trailing /
+#
+SYSCONF_AR		= ar cqs
+SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a
+SYSCONF_LINK_LIB_STATIC	= rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \
+				 $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) 
+# Compiling application source
+SYSCONF_CXXFLAGS	= -pipe -fno-exceptions -O2 -Wall -W
+SYSCONF_CFLAGS		= -pipe -fno-exceptions -O2 -Wall -W
+# Default link type (static linking is still be used where required)
+SYSCONF_LINK_LIB	= $(SYSCONF_LINK_LIB_SHARED)
+SYSCONF_LINK_TARGET	= $(SYSCONF_LINK_TARGET_SHARED)
+# Compiling library source
+SYSCONF_CXXFLAGS_LIB	= -fPIC
+SYSCONF_CFLAGS_LIB	= -fPIC
+# Compiling shared-object source
+SYSCONF_CXXFLAGS_SHOBJ	= -fPIC
+SYSCONF_CFLAGS_SHOBJ	= -fPIC
+# Linking Qt
+SYSCONF_LIBS_QTLIB	= $(SYSCONF_LFLAGS_X11) $(QT_LIBS_MT) $(QT_LIBS_OPT)
+# Linking Qt applications
+SYSCONF_LIBS_QTAPP	= 
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/include/qconfig.h qt-2.3.2_changed/include/qconfig.h
--- qt-2.3.2/include/qconfig.h	Fri Jan 26 14:43:06 2001
+++ qt-2.3.2_changed/include/qconfig.h	Sun Nov 16 12:57:23 2003
@@ -1,10 +1 @@
-// Empty leaves all features enabled.  See doc/html/features.html for choices.
-
-// Note that disabling some features will produce a libqt that is not
-// compatible with other libqt builds. Such modifications are only
-// supported on Qt/Embedded where reducing the library size is important
-// and where the application-suite is often a fixed set.
-
-#ifndef QT_DLL
-#define QT_DLL // Internal
-#endif
+// Everything
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/include/qglobal.h qt-2.3.2_changed/include/qglobal.h
--- qt-2.3.2/include/qglobal.h	Mon Oct 29 15:21:15 2001
+++ qt-2.3.2_changed/include/qglobal.h	Sat Oct 25 13:08:27 2003
@@ -73,6 +73,8 @@
 
 #if defined(macintosh)
 #define _OS_MAC_
+#elif defined(__APPLE__)
+#define _OS_MACX_
 #elif defined(MSDOS) || defined(_MSDOS) || defined(__MSDOS__)
 #define _OS_MSDOS_
 #elif defined(OS2) || defined(_OS2) || defined(__OS2__)
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/include/qmodules.h qt-2.3.2_changed/include/qmodules.h
--- qt-2.3.2/include/qmodules.h	Fri Aug 31 17:00:56 2001
+++ qt-2.3.2_changed/include/qmodules.h	Sun Nov 16 12:57:23 2003
@@ -1,14 +1,12 @@
-#ifndef QT_H
-#endif // QT_H
-
+// These modules are licensed to you
 #define QT_MODULE_TOOLS
 #define QT_MODULE_KERNEL
 #define QT_MODULE_WIDGETS
 #define QT_MODULE_DIALOGS
-
 #define QT_MODULE_ICONVIEW
 #define QT_MODULE_WORKSPACE
-#define QT_MODULE_TABLE
+#define QT_MODULE_NETWORK
 #define QT_MODULE_CANVAS
+#define QT_MODULE_TABLE
 #define QT_MODULE_XML
-#define QT_MODULE_NETWORK
+#define QT_MODULE_OPENGL
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/src/network/qdns.cpp qt-2.3.2_changed/src/network/qdns.cpp
--- qt-2.3.2/src/network/qdns.cpp	Mon Oct 29 15:21:14 2001
+++ qt-2.3.2_changed/src/network/qdns.cpp	Sun Nov 16 13:11:41 2003
@@ -1981,7 +1981,7 @@
     domains = new QStrList( TRUE );
     domains->setAutoDelete( TRUE );
 
-    res_init();
+    //res_init(); (se)
     int i;
     // find the name servers to use
     for( i=0; i < MAXNS && i < _res.nscount; i++ ) {
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/src/network/qsocketdevice_unix.cpp qt-2.3.2_changed/src/network/qsocketdevice_unix.cpp
--- qt-2.3.2/src/network/qsocketdevice_unix.cpp	Mon Oct 29 15:21:14 2001
+++ qt-2.3.2_changed/src/network/qsocketdevice_unix.cpp	Sat Oct 25 13:08:27 2003
@@ -112,7 +112,7 @@
 #if defined(_OS_LINUX_) && defined(__GLIBC__) && ( __GLIBC__ >= 2 )
 // new linux is Single Unix 1998, not old linux
 #  define SOCKLEN_T socklen_t
-#elif defined(BSD4_4)
+#elif defined(BSD4_4) && !defined(_OS_MACX_)
 // BSD 4.4
 #  if defined(_OS_FREEBSD_) && __FreeBSD_version < 400000
 // FreeBSD 4.0 and higher
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/src/tools/qconfig.h qt-2.3.2_changed/src/tools/qconfig.h
--- qt-2.3.2/src/tools/qconfig.h	Fri Jan 26 14:43:06 2001
+++ qt-2.3.2_changed/src/tools/qconfig.h	Sun Nov 16 12:57:23 2003
@@ -1,10 +1 @@
-// Empty leaves all features enabled.  See doc/html/features.html for choices.
-
-// Note that disabling some features will produce a libqt that is not
-// compatible with other libqt builds. Such modifications are only
-// supported on Qt/Embedded where reducing the library size is important
-// and where the application-suite is often a fixed set.
-
-#ifndef QT_DLL
-#define QT_DLL // Internal
-#endif
+// Everything
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/src/tools/qglobal.h qt-2.3.2_changed/src/tools/qglobal.h
--- qt-2.3.2/src/tools/qglobal.h	Mon Oct 29 15:21:15 2001
+++ qt-2.3.2_changed/src/tools/qglobal.h	Sat Oct 25 13:08:27 2003
@@ -73,6 +73,8 @@
 
 #if defined(macintosh)
 #define _OS_MAC_
+#elif defined(__APPLE__)
+#define _OS_MACX_
 #elif defined(MSDOS) || defined(_MSDOS) || defined(__MSDOS__)
 #define _OS_MSDOS_
 #elif defined(OS2) || defined(_OS2) || defined(__OS2__)
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/src/tools/qmodules.h qt-2.3.2_changed/src/tools/qmodules.h
--- qt-2.3.2/src/tools/qmodules.h	Fri Aug 31 17:00:56 2001
+++ qt-2.3.2_changed/src/tools/qmodules.h	Sun Nov 16 12:57:23 2003
@@ -1,14 +1,12 @@
-#ifndef QT_H
-#endif // QT_H
-
+// These modules are licensed to you
 #define QT_MODULE_TOOLS
 #define QT_MODULE_KERNEL
 #define QT_MODULE_WIDGETS
 #define QT_MODULE_DIALOGS
-
 #define QT_MODULE_ICONVIEW
 #define QT_MODULE_WORKSPACE
-#define QT_MODULE_TABLE
+#define QT_MODULE_NETWORK
 #define QT_MODULE_CANVAS
+#define QT_MODULE_TABLE
 #define QT_MODULE_XML
-#define QT_MODULE_NETWORK
+#define QT_MODULE_OPENGL
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/src-mt.mk qt-2.3.2_changed/src-mt.mk
--- qt-2.3.2/src-mt.mk	Thu Jan  1 01:00:00 1970
+++ qt-2.3.2_changed/src-mt.mk	Sun Nov 16 12:57:23 2003
@@ -0,0 +1,2 @@
+all:
+	@echo "(not building threaded Qt)"
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/tools/qvfb/config.cpp qt-2.3.2_changed/tools/qvfb/config.cpp
--- qt-2.3.2/tools/qvfb/config.cpp	Thu Jan  1 01:00:00 1970
+++ qt-2.3.2_changed/tools/qvfb/config.cpp	Sun Nov 16 13:29:37 2003
@@ -0,0 +1,459 @@
+/****************************************************************************
+** Form implementation generated from reading ui file 'config.ui'
+**
+** Created: Sun Nov 16 13:29:37 2003
+**      by:  The User Interface Compiler (uic)
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+#include "config.h"
+
+#include <qbuttongroup.h>
+#include <qcombobox.h>
+#include <qgroupbox.h>
+#include <qlabel.h>
+#include <qpushbutton.h>
+#include <qradiobutton.h>
+#include <qslider.h>
+#include <qspinbox.h>
+#include "gammaview.h"
+#include <qlayout.h>
+#include <qvariant.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+
+/* 
+ *  Constructs a Config which is a child of 'parent', with the 
+ *  name 'name' and widget flags set to 'f' 
+ *
+ *  The dialog will by default be modeless, unless you set 'modal' to
+ *  TRUE to construct a modal dialog.
+ */
+Config::Config( QWidget* parent,  const char* name, bool modal, WFlags fl )
+    : QDialog( parent, name, modal, fl )
+{
+    if ( !name )
+	setName( "Config" );
+    resize( 481, 645 ); 
+    setCaption( tr( "Configure" ) );
+    setSizeGripEnabled( TRUE );
+    ConfigLayout = new QGridLayout( this ); 
+    ConfigLayout->setSpacing( 6 );
+    ConfigLayout->setMargin( 11 );
+
+    ButtonGroup2 = new QButtonGroup( this, "ButtonGroup2" );
+    ButtonGroup2->setTitle( tr( "Depth" ) );
+
+    depth_1 = new QRadioButton( ButtonGroup2, "depth_1" );
+    depth_1->setGeometry( QRect( 11, 19, 229, 19 ) ); 
+    depth_1->setText( tr( "1 bit monochrome" ) );
+
+    depth_4gray = new QRadioButton( ButtonGroup2, "depth_4gray" );
+    depth_4gray->setGeometry( QRect( 11, 44, 229, 19 ) ); 
+    depth_4gray->setText( tr( "4 bit grayscale" ) );
+
+    depth_8 = new QRadioButton( ButtonGroup2, "depth_8" );
+    depth_8->setGeometry( QRect( 11, 69, 229, 19 ) ); 
+    depth_8->setText( tr( "8 bit" ) );
+
+    depth_12 = new QRadioButton( ButtonGroup2, "depth_12" );
+    depth_12->setGeometry( QRect( 11, 94, 229, 19 ) ); 
+    depth_12->setText( tr( "12 (16) bit" ) );
+
+    depth_16 = new QRadioButton( ButtonGroup2, "depth_16" );
+    depth_16->setGeometry( QRect( 11, 119, 229, 19 ) ); 
+    depth_16->setText( tr( "16 bit" ) );
+
+    depth_32 = new QRadioButton( ButtonGroup2, "depth_32" );
+    depth_32->setGeometry( QRect( 11, 144, 229, 19 ) ); 
+    depth_32->setText( tr( "32 bit" ) );
+
+    ConfigLayout->addWidget( ButtonGroup2, 0, 1 );
+
+    Layout1 = new QHBoxLayout; 
+    Layout1->setSpacing( 6 );
+    Layout1->setMargin( 0 );
+    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+    Layout1->addItem( spacer );
+
+    buttonOk = new QPushButton( this, "buttonOk" );
+    buttonOk->setText( tr( "&OK" ) );
+    buttonOk->setAutoDefault( TRUE );
+    buttonOk->setDefault( TRUE );
+    Layout1->addWidget( buttonOk );
+
+    buttonCancel = new QPushButton( this, "buttonCancel" );
+    buttonCancel->setText( tr( "&Cancel" ) );
+    buttonCancel->setAutoDefault( TRUE );
+    Layout1->addWidget( buttonCancel );
+
+    ConfigLayout->addMultiCellLayout( Layout1, 3, 3, 0, 1 );
+
+    GroupBox1 = new QGroupBox( this, "GroupBox1" );
+    GroupBox1->setTitle( tr( "Gamma" ) );
+    GroupBox1->setColumnLayout(0, Qt::Vertical );
+    GroupBox1->layout()->setSpacing( 0 );
+    GroupBox1->layout()->setMargin( 0 );
+    GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
+    GroupBox1Layout->setAlignment( Qt::AlignTop );
+    GroupBox1Layout->setSpacing( 6 );
+    GroupBox1Layout->setMargin( 11 );
+
+    TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
+    TextLabel3->setText( tr( "Blue" ) );
+
+    GroupBox1Layout->addWidget( TextLabel3, 6, 0 );
+
+    bslider = new QSlider( GroupBox1, "bslider" );
+    QPalette pal;
+    QColorGroup cg;
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, QColor( 0, 0, 255) );
+    cg.setColor( QColorGroup::Light, QColor( 127, 127, 255) );
+    cg.setColor( QColorGroup::Midlight, QColor( 63, 63, 255) );
+    cg.setColor( QColorGroup::Dark, QColor( 0, 0, 127) );
+    cg.setColor( QColorGroup::Mid, QColor( 0, 0, 170) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setActive( cg );
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, QColor( 0, 0, 255) );
+    cg.setColor( QColorGroup::Light, QColor( 127, 127, 255) );
+    cg.setColor( QColorGroup::Midlight, QColor( 38, 38, 255) );
+    cg.setColor( QColorGroup::Dark, QColor( 0, 0, 127) );
+    cg.setColor( QColorGroup::Mid, QColor( 0, 0, 170) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setInactive( cg );
+    cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Button, QColor( 0, 0, 255) );
+    cg.setColor( QColorGroup::Light, QColor( 127, 127, 255) );
+    cg.setColor( QColorGroup::Midlight, QColor( 38, 38, 255) );
+    cg.setColor( QColorGroup::Dark, QColor( 0, 0, 127) );
+    cg.setColor( QColorGroup::Mid, QColor( 0, 0, 170) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setDisabled( cg );
+    bslider->setPalette( pal );
+    bslider->setMaxValue( 400 );
+    bslider->setValue( 100 );
+    bslider->setOrientation( QSlider::Horizontal );
+
+    GroupBox1Layout->addWidget( bslider, 6, 1 );
+
+    blabel = new QLabel( GroupBox1, "blabel" );
+    blabel->setText( tr( "1.0" ) );
+
+    GroupBox1Layout->addWidget( blabel, 6, 2 );
+    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+    GroupBox1Layout->addItem( spacer_2, 5, 1 );
+
+    TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
+    TextLabel2->setText( tr( "Green" ) );
+
+    GroupBox1Layout->addWidget( TextLabel2, 4, 0 );
+
+    gslider = new QSlider( GroupBox1, "gslider" );
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, QColor( 0, 255, 0) );
+    cg.setColor( QColorGroup::Light, QColor( 127, 255, 127) );
+    cg.setColor( QColorGroup::Midlight, QColor( 63, 255, 63) );
+    cg.setColor( QColorGroup::Dark, QColor( 0, 127, 0) );
+    cg.setColor( QColorGroup::Mid, QColor( 0, 170, 0) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setActive( cg );
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, QColor( 0, 255, 0) );
+    cg.setColor( QColorGroup::Light, QColor( 127, 255, 127) );
+    cg.setColor( QColorGroup::Midlight, QColor( 38, 255, 38) );
+    cg.setColor( QColorGroup::Dark, QColor( 0, 127, 0) );
+    cg.setColor( QColorGroup::Mid, QColor( 0, 170, 0) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setInactive( cg );
+    cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Button, QColor( 0, 255, 0) );
+    cg.setColor( QColorGroup::Light, QColor( 127, 255, 127) );
+    cg.setColor( QColorGroup::Midlight, QColor( 38, 255, 38) );
+    cg.setColor( QColorGroup::Dark, QColor( 0, 127, 0) );
+    cg.setColor( QColorGroup::Mid, QColor( 0, 170, 0) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setDisabled( cg );
+    gslider->setPalette( pal );
+    gslider->setMaxValue( 400 );
+    gslider->setValue( 100 );
+    gslider->setOrientation( QSlider::Horizontal );
+
+    GroupBox1Layout->addWidget( gslider, 4, 1 );
+
+    glabel = new QLabel( GroupBox1, "glabel" );
+    glabel->setText( tr( "1.0" ) );
+
+    GroupBox1Layout->addWidget( glabel, 4, 2 );
+
+    TextLabel7 = new QLabel( GroupBox1, "TextLabel7" );
+    TextLabel7->setText( tr( "All" ) );
+
+    GroupBox1Layout->addWidget( TextLabel7, 0, 0 );
+
+    TextLabel8 = new QLabel( GroupBox1, "TextLabel8" );
+    TextLabel8->setText( tr( "1.0" ) );
+
+    GroupBox1Layout->addWidget( TextLabel8, 0, 2 );
+
+    gammaslider = new QSlider( GroupBox1, "gammaslider" );
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, white );
+    cg.setColor( QColorGroup::Light, white );
+    cg.setColor( QColorGroup::Midlight, white );
+    cg.setColor( QColorGroup::Dark, QColor( 127, 127, 127) );
+    cg.setColor( QColorGroup::Mid, QColor( 170, 170, 170) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setActive( cg );
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, white );
+    cg.setColor( QColorGroup::Light, white );
+    cg.setColor( QColorGroup::Midlight, white );
+    cg.setColor( QColorGroup::Dark, QColor( 127, 127, 127) );
+    cg.setColor( QColorGroup::Mid, QColor( 170, 170, 170) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setInactive( cg );
+    cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Button, white );
+    cg.setColor( QColorGroup::Light, white );
+    cg.setColor( QColorGroup::Midlight, white );
+    cg.setColor( QColorGroup::Dark, QColor( 127, 127, 127) );
+    cg.setColor( QColorGroup::Mid, QColor( 170, 170, 170) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setDisabled( cg );
+    gammaslider->setPalette( pal );
+    gammaslider->setMaxValue( 400 );
+    gammaslider->setValue( 100 );
+    gammaslider->setOrientation( QSlider::Horizontal );
+
+    GroupBox1Layout->addWidget( gammaslider, 0, 1 );
+
+    TextLabel1_2 = new QLabel( GroupBox1, "TextLabel1_2" );
+    TextLabel1_2->setText( tr( "Red" ) );
+
+    GroupBox1Layout->addWidget( TextLabel1_2, 2, 0 );
+
+    rlabel = new QLabel( GroupBox1, "rlabel" );
+    rlabel->setText( tr( "1.0" ) );
+
+    GroupBox1Layout->addWidget( rlabel, 2, 2 );
+
+    rslider = new QSlider( GroupBox1, "rslider" );
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, QColor( 255, 0, 0) );
+    cg.setColor( QColorGroup::Light, QColor( 255, 127, 127) );
+    cg.setColor( QColorGroup::Midlight, QColor( 255, 63, 63) );
+    cg.setColor( QColorGroup::Dark, QColor( 127, 0, 0) );
+    cg.setColor( QColorGroup::Mid, QColor( 170, 0, 0) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setActive( cg );
+    cg.setColor( QColorGroup::Foreground, black );
+    cg.setColor( QColorGroup::Button, QColor( 255, 0, 0) );
+    cg.setColor( QColorGroup::Light, QColor( 255, 127, 127) );
+    cg.setColor( QColorGroup::Midlight, QColor( 255, 38, 38) );
+    cg.setColor( QColorGroup::Dark, QColor( 127, 0, 0) );
+    cg.setColor( QColorGroup::Mid, QColor( 170, 0, 0) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, black );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setInactive( cg );
+    cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Button, QColor( 255, 0, 0) );
+    cg.setColor( QColorGroup::Light, QColor( 255, 127, 127) );
+    cg.setColor( QColorGroup::Midlight, QColor( 255, 38, 38) );
+    cg.setColor( QColorGroup::Dark, QColor( 127, 0, 0) );
+    cg.setColor( QColorGroup::Mid, QColor( 170, 0, 0) );
+    cg.setColor( QColorGroup::Text, black );
+    cg.setColor( QColorGroup::BrightText, white );
+    cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
+    cg.setColor( QColorGroup::Base, white );
+    cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
+    cg.setColor( QColorGroup::Shadow, black );
+    cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) );
+    cg.setColor( QColorGroup::HighlightedText, white );
+    pal.setDisabled( cg );
+    rslider->setPalette( pal );
+    rslider->setMaxValue( 400 );
+    rslider->setValue( 100 );
+    rslider->setOrientation( QSlider::Horizontal );
+
+    GroupBox1Layout->addWidget( rslider, 2, 1 );
+    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+    GroupBox1Layout->addItem( spacer_3, 3, 1 );
+    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+    GroupBox1Layout->addItem( spacer_4, 1, 1 );
+
+    PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
+    PushButton3->setText( tr( "Set all to 1.0" ) );
+
+    GroupBox1Layout->addMultiCellWidget( PushButton3, 8, 8, 0, 2 );
+
+    MyCustomWidget1 = new GammaView( GroupBox1, "MyCustomWidget1" );
+
+    GroupBox1Layout->addMultiCellWidget( MyCustomWidget1, 0, 8, 3, 3 );
+    QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+    GroupBox1Layout->addItem( spacer_5, 7, 1 );
+
+    ConfigLayout->addMultiCellWidget( GroupBox1, 2, 2, 0, 1 );
+
+    ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" );
+    ButtonGroup1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ButtonGroup1->sizePolicy().hasHeightForWidth() ) );
+    ButtonGroup1->setTitle( tr( "Size" ) );
+    ButtonGroup1->setColumnLayout(0, Qt::Vertical );
+    ButtonGroup1->layout()->setSpacing( 0 );
+    ButtonGroup1->layout()->setMargin( 0 );
+    ButtonGroup1Layout = new QVBoxLayout( ButtonGroup1->layout() );
+    ButtonGroup1Layout->setAlignment( Qt::AlignTop );
+    ButtonGroup1Layout->setSpacing( 6 );
+    ButtonGroup1Layout->setMargin( 11 );
+
+    size_240_320 = new QRadioButton( ButtonGroup1, "size_240_320" );
+    size_240_320->setText( tr( "240x320 \"PDA\"" ) );
+    ButtonGroup1Layout->addWidget( size_240_320 );
+
+    size_320_240 = new QRadioButton( ButtonGroup1, "size_320_240" );
+    size_320_240->setText( tr( "320x240 \"TV\"" ) );
+    ButtonGroup1Layout->addWidget( size_320_240 );
+
+    size_640_480 = new QRadioButton( ButtonGroup1, "size_640_480" );
+    size_640_480->setText( tr( "640x480 \"VGA\"" ) );
+    ButtonGroup1Layout->addWidget( size_640_480 );
+
+    Layout1_2 = new QHBoxLayout; 
+    Layout1_2->setSpacing( 6 );
+    Layout1_2->setMargin( 0 );
+
+    size_custom = new QRadioButton( ButtonGroup1, "size_custom" );
+    size_custom->setText( tr( "Custom" ) );
+    Layout1_2->addWidget( size_custom );
+
+    size_width = new QSpinBox( ButtonGroup1, "size_width" );
+    size_width->setMaxValue( 1280 );
+    size_width->setMinValue( 1 );
+    size_width->setLineStep( 16 );
+    size_width->setValue( 400 );
+    Layout1_2->addWidget( size_width );
+
+    size_height = new QSpinBox( ButtonGroup1, "size_height" );
+    size_height->setMaxValue( 1024 );
+    size_height->setMinValue( 1 );
+    size_height->setLineStep( 16 );
+    size_height->setValue( 300 );
+    Layout1_2->addWidget( size_height );
+    ButtonGroup1Layout->addLayout( Layout1_2 );
+
+    Layout8 = new QHBoxLayout; 
+    Layout8->setSpacing( 6 );
+    Layout8->setMargin( 0 );
+
+    size_skin = new QRadioButton( ButtonGroup1, "size_skin" );
+    size_skin->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, size_skin->sizePolicy().hasHeightForWidth() ) );
+    size_skin->setText( tr( "Skin" ) );
+    Layout8->addWidget( size_skin );
+
+    skin = new QComboBox( FALSE, ButtonGroup1, "skin" );
+    skin->insertItem( tr( "pda.skin" ) );
+    skin->insertItem( tr( "ipaq.skin" ) );
+    skin->insertItem( tr( "qpe.skin" ) );
+    skin->insertItem( tr( "cassiopeia.skin" ) );
+    skin->insertItem( tr( "other.skin" ) );
+    skin->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, skin->sizePolicy().hasHeightForWidth() ) );
+    Layout8->addWidget( skin );
+    ButtonGroup1Layout->addLayout( Layout8 );
+
+    ConfigLayout->addWidget( ButtonGroup1, 0, 0 );
+
+    TextLabel1 = new QLabel( this, "TextLabel1" );
+    TextLabel1->setText( tr( "<p>Note that any applications using the virtual framebuffer will be terminated if you change the Size or Depth <i>above</i>. You may freely modify the Gamma <i>below</i>." ) );
+
+    ConfigLayout->addMultiCellWidget( TextLabel1, 1, 1, 0, 1 );
+
+    // signals and slots connections
+    connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
+    connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+}
+
+/*  
+ *  Destroys the object and frees any allocated resources
+ */
+Config::~Config()
+{
+    // no need to delete child widgets, Qt does it all for us
+}
+
diff -uNr --exclude-from=./diff_ignore qt-2.3.2/tools/qvfb/config.h qt-2.3.2_changed/tools/qvfb/config.h
--- qt-2.3.2/tools/qvfb/config.h	Thu Jan  1 01:00:00 1970
+++ qt-2.3.2_changed/tools/qvfb/config.h	Sun Nov 16 13:29:26 2003
@@ -0,0 +1,79 @@
+/****************************************************************************
+** Form interface generated from reading ui file 'config.ui'
+**
+** Created: Sun Nov 16 13:29:26 2003
+**      by:  The User Interface Compiler (uic)
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#include <qvariant.h>
+#include <qdialog.h>
+class QVBoxLayout; 
+class QHBoxLayout; 
+class QGridLayout; 
+class GammaView;
+class QButtonGroup;
+class QComboBox;
+class QGroupBox;
+class QLabel;
+class QPushButton;
+class QRadioButton;
+class QSlider;
+class QSpinBox;
+
+class Config : public QDialog
+{ 
+    Q_OBJECT
+
+public:
+    Config( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+    ~Config();
+
+    QButtonGroup* ButtonGroup2;
+    QRadioButton* depth_1;
+    QRadioButton* depth_4gray;
+    QRadioButton* depth_8;
+    QRadioButton* depth_12;
+    QRadioButton* depth_16;
+    QRadioButton* depth_32;
+    QPushButton* buttonOk;
+    QPushButton* buttonCancel;
+    QGroupBox* GroupBox1;
+    QLabel* TextLabel3;
+    QSlider* bslider;
+    QLabel* blabel;
+    QLabel* TextLabel2;
+    QSlider* gslider;
+    QLabel* glabel;
+    QLabel* TextLabel7;
+    QLabel* TextLabel8;
+    QSlider* gammaslider;
+    QLabel* TextLabel1_2;
+    QLabel* rlabel;
+    QSlider* rslider;
+    QPushButton* PushButton3;
+    GammaView* MyCustomWidget1;
+    QButtonGroup* ButtonGroup1;
+    QRadioButton* size_240_320;
+    QRadioButton* size_320_240;
+    QRadioButton* size_640_480;
+    QRadioButton* size_custom;
+    QSpinBox* size_width;
+    QSpinBox* size_height;
+    QRadioButton* size_skin;
+    QComboBox* skin;
+    QLabel* TextLabel1;
+
+protected:
+    QGridLayout* ConfigLayout;
+    QHBoxLayout* Layout1;
+    QGridLayout* GroupBox1Layout;
+    QVBoxLayout* ButtonGroup1Layout;
+    QHBoxLayout* Layout1_2;
+    QHBoxLayout* Layout8;
+};
+
+#endif // CONFIG_H