diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:17:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:17:46 +0000 |
commit | 21a1d3cffb820b001b0901f8e82d4c8bfc5e1683 (patch) | |
tree | ad9d08bc725d963acafab219a33699ae2d6e723c /client/config | |
parent | 424422475d6f30da2b84041dcb2b13b425126f04 (diff) | |
download | twin-style-crystal-21a1d3cffb820b001b0901f8e82d4c8bfc5e1683.tar.gz twin-style-crystal-21a1d3cffb820b001b0901f8e82d4c8bfc5e1683.zip |
TQt4 port kwin-style-crystal
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kwin-style-crystal@1239032 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'client/config')
-rw-r--r-- | client/config/configdialog.ui | 208 | ||||
-rw-r--r-- | client/config/crystalconfig.cc | 194 | ||||
-rw-r--r-- | client/config/crystalconfig.h | 13 | ||||
-rw-r--r-- | client/config/infodialog.ui | 36 |
4 files changed, 226 insertions, 225 deletions
diff --git a/client/config/configdialog.ui b/client/config/configdialog.ui index 29025b8..5699b3a 100644 --- a/client/config/configdialog.ui +++ b/client/config/configdialog.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>ConfigDialog</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>ConfigDialog</cstring> </property> @@ -22,14 +22,14 @@ <property name="margin"> <number>0</number> </property> - <widget class="QTabWidget" row="0" column="0"> + <widget class="TQTabWidget" row="0" column="0"> <property name="name"> <cstring>tabWidget2</cstring> </property> <property name="tabShape"> <enum>Rounded</enum> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -40,7 +40,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>tooltip</cstring> </property> @@ -64,14 +64,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>16</height> </size> </property> </spacer> - <widget class="QButtonGroup" row="0" column="0"> + <widget class="TQButtonGroup" row="0" column="0"> <property name="name"> <cstring>titlealign</cstring> </property> @@ -90,13 +90,13 @@ <string></string> </property> <property name="whatsThis" stdset="0"> - <string>Use these buttons to set the alignment of the window title</string> + <string>Use these buttons to set the tqalignment of the window title</string> </property> <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>AlignLeft</cstring> </property> @@ -110,7 +110,7 @@ <string></string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>AlignHCenter</cstring> </property> @@ -127,7 +127,7 @@ <string></string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>AlignRight</cstring> </property> @@ -143,9 +143,9 @@ </widget> </vbox> </widget> - <widget class="QButtonGroup" row="0" column="1"> + <widget class="TQButtonGroup" row="0" column="1"> <property name="name"> - <cstring>repaintMode</cstring> + <cstring>tqrepaintMode</cstring> </property> <property name="sizePolicy"> <sizepolicy> @@ -156,13 +156,13 @@ </sizepolicy> </property> <property name="title"> - <string>Moving &repaints window</string> + <string>Moving &tqrepaints window</string> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton" row="2" column="0" rowspan="1" colspan="2"> + <widget class="TQRadioButton" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>radioButton6</cstring> </property> @@ -176,7 +176,7 @@ <number>3</number> </property> </widget> - <widget class="QRadioButton" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQRadioButton" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>radioButton4</cstring> </property> @@ -190,7 +190,7 @@ <number>1</number> </property> </widget> - <widget class="QSpinBox" row="1" column="1"> + <widget class="TQSpinBox" row="1" column="1"> <property name="name"> <cstring>updateTime</cstring> </property> @@ -210,7 +210,7 @@ <number>200</number> </property> </widget> - <widget class="QRadioButton" row="1" column="0"> + <widget class="TQRadioButton" row="1" column="0"> <property name="name"> <cstring>radioButton5</cstring> </property> @@ -229,14 +229,14 @@ </widget> </grid> </widget> - <widget class="QGroupBox" row="0" column="2" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="0" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>roundCorners</cstring> </property> <property name="title"> <string>Round &Corners</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignHCenter</set> </property> <grid> @@ -253,14 +253,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> </size> </property> </spacer> - <widget class="QCheckBox" row="0" column="2"> + <widget class="TQCheckBox" row="0" column="2"> <property name="name"> <cstring>trc</cstring> </property> @@ -279,7 +279,7 @@ <bool>true</bool> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>blc</cstring> </property> @@ -305,14 +305,14 @@ <property name="sizeType"> <enum>Preferred</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>10</width> <height>20</height> </size> </property> </spacer> - <widget class="QCheckBox" row="2" column="2"> + <widget class="TQCheckBox" row="2" column="2"> <property name="name"> <cstring>brc</cstring> </property> @@ -328,7 +328,7 @@ <string></string> </property> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>tlc</cstring> </property> @@ -357,7 +357,7 @@ <property name="sizeType"> <enum>Preferred</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>10</width> <height>20</height> @@ -366,7 +366,7 @@ </spacer> </grid> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -385,7 +385,7 @@ <cstring>borderwidth</cstring> </property> </widget> - <widget class="QLabel" row="2" column="2"> + <widget class="TQLabel" row="2" column="2"> <property name="name"> <cstring>textLabel2_2_2</cstring> </property> @@ -404,7 +404,7 @@ <cstring>titlebarheight</cstring> </property> </widget> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>borderwidth</cstring> </property> @@ -418,7 +418,7 @@ <string>Width of the borders</string> </property> </widget> - <widget class="QSpinBox" row="2" column="3"> + <widget class="TQSpinBox" row="2" column="3"> <property name="name"> <cstring>titlebarheight</cstring> </property> @@ -435,7 +435,7 @@ <string>Height of the title par (independend to border width)</string> </property> </widget> - <widget class="QCheckBox" row="1" column="1"> + <widget class="TQCheckBox" row="1" column="1"> <property name="name"> <cstring>textshadow</cstring> </property> @@ -449,7 +449,7 @@ <string>Draws a nice shadowed title bar text to improve visibility.</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>drawCaption</cstring> </property> @@ -463,7 +463,7 @@ <bool>true</bool> </property> </widget> - <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>wheelTask</cstring> </property> @@ -485,7 +485,7 @@ <string>Wheel on titlebar cycles through visible windows. Does NOT work in compiz. Overrides settings in KDE.</string> </property> </widget> - <widget class="QPushButton" row="3" column="2" rowspan="1" colspan="2"> + <widget class="TQPushButton" row="3" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>infoButton</cstring> </property> @@ -497,7 +497,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>80</width> <height>0</height> @@ -512,7 +512,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -523,7 +523,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="1" column="1"> + <widget class="TQCheckBox" row="1" column="1"> <property name="name"> <cstring>animateHover</cstring> </property> @@ -548,7 +548,7 @@ <string>Smoothly animate the hover effect of the buttons</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>hover</cstring> </property> @@ -580,14 +580,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> </size> </property> </spacer> - <widget class="QGroupBox" row="2" column="0" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>tintButtons</cstring> </property> @@ -645,7 +645,7 @@ <string>The semi transparent buttons of the titlebar will be shaded in this color</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -653,7 +653,7 @@ <string>Minimize Button</string> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel5</cstring> </property> @@ -777,7 +777,7 @@ <string>The semi transparent buttons of the titlebar will be shaded in this color</string> </property> </widget> - <widget class="QLabel" row="0" column="2"> + <widget class="TQLabel" row="0" column="2"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -785,7 +785,7 @@ <string>Hovered</string> </property> </widget> - <widget class="QLabel" row="0" column="3"> + <widget class="TQLabel" row="0" column="3"> <property name="name"> <cstring>textLabel4_2</cstring> </property> @@ -793,7 +793,7 @@ <string>Pressed</string> </property> </widget> - <widget class="QLabel" row="0" column="1"> + <widget class="TQLabel" row="0" column="1"> <property name="name"> <cstring>textLabel2_4</cstring> </property> @@ -888,7 +888,7 @@ <string>The semi transparent buttons of the titlebar will be shaded in this color</string> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel1_4</cstring> </property> @@ -925,7 +925,7 @@ <string>The semi transparent buttons of the titlebar will be shaded in this color</string> </property> </widget> - <widget class="QLabel" row="4" column="0"> + <widget class="TQLabel" row="4" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -1022,7 +1022,7 @@ </widget> </grid> </widget> - <widget class="QComboBox" row="0" column="0"> + <widget class="TQComboBox" row="0" column="0"> <item> <property name="text"> <string>Crystal Default</string> @@ -1118,7 +1118,7 @@ <string>Select your favourite button theme here</string> </property> </widget> - <widget class="QCheckBox" row="0" column="1"> + <widget class="TQCheckBox" row="0" column="1"> <property name="name"> <cstring>menuimage</cstring> </property> @@ -1137,7 +1137,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>TabPage</cstring> </property> @@ -1148,11 +1148,11 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QTabWidget" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQTabWidget" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>tabWidget4</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -1163,7 +1163,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>frame3</cstring> </property> @@ -1177,7 +1177,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QSpinBox" row="3" column="1"> + <widget class="TQSpinBox" row="3" column="1"> <property name="name"> <cstring>shade1</cstring> </property> @@ -1205,7 +1205,7 @@ <string>Amount of effect</string> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -1232,7 +1232,7 @@ <string>The color of the outline frame</string> </property> </widget> - <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>userPicture1</cstring> </property> @@ -1249,7 +1249,7 @@ <string>Use userdefined picture for background instead of current wallpaper</string> </property> </widget> - <widget class="QComboBox" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQComboBox" row="1" column="0" rowspan="1" colspan="2"> <item> <property name="text"> <string>Fade</string> @@ -1300,14 +1300,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>16</height> </size> </property> </spacer> - <widget class="QComboBox" row="4" column="0"> + <widget class="TQComboBox" row="4" column="0"> <item> <property name="text"> <string>No outline</string> @@ -1337,7 +1337,7 @@ </widget> </grid> </widget> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>frame4</cstring> </property> @@ -1351,7 +1351,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1_5</cstring> </property> @@ -1359,7 +1359,7 @@ <string>Blur Image:</string> </property> </widget> - <widget class="QSpinBox" row="2" column="1"> + <widget class="TQSpinBox" row="2" column="1"> <property name="name"> <cstring>active_blur</cstring> </property> @@ -1391,7 +1391,7 @@ <string>The color of the inline frame</string> </property> </widget> - <widget class="QComboBox" row="3" column="0"> + <widget class="TQComboBox" row="3" column="0"> <item> <property name="text"> <string>No inline</string> @@ -1429,7 +1429,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>50</height> @@ -1448,7 +1448,7 @@ </widget> </hbox> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -1459,7 +1459,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>frame3_2</cstring> </property> @@ -1473,7 +1473,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQComboBox" row="1" column="0" rowspan="1" colspan="2"> <item> <property name="text"> <string>Fade</string> @@ -1533,7 +1533,7 @@ <string>The color of the outline frame</string> </property> </widget> - <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>userPicture2</cstring> </property> @@ -1550,7 +1550,7 @@ <string>Use userdefined picture for background instead of current wallpaper</string> </property> </widget> - <widget class="QSpinBox" row="3" column="1"> + <widget class="TQSpinBox" row="3" column="1"> <property name="name"> <cstring>shade2</cstring> </property> @@ -1588,14 +1588,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>16</height> </size> </property> </spacer> - <widget class="QComboBox" row="4" column="0"> + <widget class="TQComboBox" row="4" column="0"> <item> <property name="text"> <string>No outline</string> @@ -1623,7 +1623,7 @@ <string>Draw outline frame</string> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel1_2_3</cstring> </property> @@ -1633,7 +1633,7 @@ </widget> </grid> </widget> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>frame4_2</cstring> </property> @@ -1647,7 +1647,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1_5_2</cstring> </property> @@ -1655,7 +1655,7 @@ <string>Blur Image:</string> </property> </widget> - <widget class="QSpinBox" row="2" column="1"> + <widget class="TQSpinBox" row="2" column="1"> <property name="name"> <cstring>inactive_blur</cstring> </property> @@ -1697,14 +1697,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> </size> </property> </spacer> - <widget class="QComboBox" row="3" column="0"> + <widget class="TQComboBox" row="3" column="0"> <item> <property name="text"> <string>No inline</string> @@ -1745,7 +1745,7 @@ </hbox> </widget> </widget> - <widget class="QCheckBox" row="0" column="1"> + <widget class="TQCheckBox" row="0" column="1"> <property name="name"> <cstring>trackdesktop</cstring> </property> @@ -1770,7 +1770,7 @@ <string>Check, if you have different wallpapers set on multiple desktops. Uncheck, when you just have one wallpaper for all desktops.</string> </property> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>enableTransparency</cstring> </property> @@ -1800,7 +1800,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>TabPage</cstring> </property> @@ -1811,7 +1811,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QButtonGroup" row="0" column="0" rowspan="2" colspan="2"> + <widget class="TQButtonGroup" row="0" column="0" rowspan="2" colspan="2"> <property name="name"> <cstring>logoEnabled</cstring> </property> @@ -1836,7 +1836,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton" row="0" column="0"> + <widget class="TQRadioButton" row="0" column="0"> <property name="name"> <cstring>radioButton13</cstring> </property> @@ -1853,7 +1853,7 @@ <bool>true</bool> </property> </widget> - <widget class="QRadioButton" row="0" column="1"> + <widget class="TQRadioButton" row="0" column="1"> <property name="name"> <cstring>radioButton14_3</cstring> </property> @@ -1864,7 +1864,7 @@ <string></string> </property> </widget> - <widget class="QRadioButton" row="0" column="2"> + <widget class="TQRadioButton" row="0" column="2"> <property name="name"> <cstring>radioButton15</cstring> </property> @@ -1877,7 +1877,7 @@ </widget> </grid> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>logoPreview</cstring> </property> @@ -1889,13 +1889,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>30</width> <height>30</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>30</width> <height>30</height> @@ -1914,7 +1914,7 @@ <string>Little preview</string> </property> </widget> - <widget class="QComboBox" row="2" column="3"> + <widget class="TQComboBox" row="2" column="3"> <item> <property name="text"> <string>Stretch</string> @@ -1939,7 +1939,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>30</height> @@ -1959,7 +1959,7 @@ </sizepolicy> </property> </widget> - <widget class="QLabel" row="0" column="2"> + <widget class="TQLabel" row="0" column="2"> <property name="name"> <cstring>textLabel1_6</cstring> </property> @@ -1975,7 +1975,7 @@ <string>Distance to the text:</string> </property> </widget> - <widget class="QSpinBox" row="0" column="3"> + <widget class="TQSpinBox" row="0" column="3"> <property name="name"> <cstring>logoDistance</cstring> </property> @@ -1997,7 +1997,7 @@ <number>5</number> </property> </widget> - <widget class="QCheckBox" row="1" column="2" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="1" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>logoActive</cstring> </property> @@ -2021,7 +2021,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>TabPage</cstring> </property> @@ -2032,7 +2032,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -2047,11 +2047,11 @@ <property name="text"> <string>Lets you put an transparent image on top of the title bar.</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignCenter</set> </property> </widget> - <widget class="QLabel" row="4" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="4" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -2066,7 +2066,7 @@ <property name="text"> <string>User defined should be a transparent png file, i.e. 1x64px</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignCenter</set> </property> </widget> @@ -2080,14 +2080,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1_7</cstring> </property> @@ -2095,7 +2095,7 @@ <string>Overlay for active window:</string> </property> </widget> - <widget class="QLabel" row="1" column="1"> + <widget class="TQLabel" row="1" column="1"> <property name="name"> <cstring>textLabel1_7_2</cstring> </property> @@ -2103,7 +2103,7 @@ <string>Overlay for inactive window:</string> </property> </widget> - <widget class="QComboBox" row="2" column="0"> + <widget class="TQComboBox" row="2" column="0"> <item> <property name="text"> <string>Disabled</string> @@ -2149,7 +2149,7 @@ <bool>false</bool> </property> </widget> - <widget class="QComboBox" row="2" column="1"> + <widget class="TQComboBox" row="2" column="1"> <item> <property name="text"> <string>Disabled</string> @@ -2256,7 +2256,7 @@ <connection> <sender>enableTransparency</sender> <signal>toggled(bool)</signal> - <receiver>repaintMode</receiver> + <receiver>tqrepaintMode</receiver> <slot>setEnabled(bool)</slot> </connection> <connection> @@ -2380,7 +2380,7 @@ <slot>setEnabled(bool)</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="5"/> +<tqlayoutdefaults spacing="6" margin="5"/> <includehints> <includehint>kcolorbutton.h</includehint> <includehint>kcolorbutton.h</includehint> diff --git a/client/config/crystalconfig.cc b/client/config/crystalconfig.cc index dedf8ec..9ccf5f5 100644 --- a/client/config/crystalconfig.cc +++ b/client/config/crystalconfig.cc @@ -21,22 +21,22 @@ #include <kconfig.h> #include <klocale.h> #include <kglobal.h> -#include <qbuttongroup.h> -#include <qlabel.h> -#include <qgroupbox.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qradiobutton.h> -#include <qwhatsthis.h> -#include <qspinbox.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qwidgetstack.h> -#include <qlineedit.h> -#include <qfiledialog.h> +#include <tqbuttongroup.h> +#include <tqlabel.h> +#include <tqgroupbox.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqradiobutton.h> +#include <tqwhatsthis.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqwidgetstack.h> +#include <tqlineedit.h> +#include <tqfiledialog.h> #include <kcolorbutton.h> #include <kfiledialog.h> -#include <qpicture.h> +#include <tqpicture.h> #include <kapplication.h> #include <kurlrequester.h> @@ -45,94 +45,94 @@ #include "crystalconfig.h" -CrystalConfig::CrystalConfig(KConfig*, QWidget* parent) - : QObject(parent), config_(0), dialog_(0) +CrystalConfig::CrystalConfig(KConfig*, TQWidget* tqparent) + : TQObject(tqparent), config_(0), dialog_(0) { config_ = new KConfig("kwincrystalrc"); - dialog_ = new ConfigDialog(parent); + dialog_ = new ConfigDialog(tqparent); dialog_->show(); - connect(dialog_->titlealign, SIGNAL(clicked(int)),this, SLOT(selectionChanged(int))); + connect(dialog_->titlealign, TQT_SIGNAL(clicked(int)),this, TQT_SLOT(selectionChanged(int))); - connect(dialog_->drawCaption, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->textshadow, SIGNAL(stateChanged(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->tooltip,SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->wheelTask,SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); + connect(dialog_->drawCaption, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->textshadow, TQT_SIGNAL(stateChanged(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->tooltip,TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->wheelTask,TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); - connect(dialog_->trackdesktop, SIGNAL(stateChanged(int)),this, SLOT(selectionChanged(int))); + connect(dialog_->trackdesktop, TQT_SIGNAL(stateChanged(int)),this, TQT_SLOT(selectionChanged(int))); - connect(dialog_->shade1, SIGNAL(valueChanged(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->shade2, SIGNAL(valueChanged(int)),this, SLOT(selectionChanged(int))); + connect(dialog_->shade1, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->shade2, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(selectionChanged(int))); - connect(dialog_->frame1, SIGNAL(activated(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->frame2, SIGNAL(activated(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->frameColor1, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->frameColor2, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); + connect(dialog_->frame1, TQT_SIGNAL(activated(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->frame2, TQT_SIGNAL(activated(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->frameColor1, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->frameColor2, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); - connect(dialog_->inline1, SIGNAL(activated(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->inline2, SIGNAL(activated(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->inlineColor1, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->inlineColor2, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); + connect(dialog_->inline1, TQT_SIGNAL(activated(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->inline2, TQT_SIGNAL(activated(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->inlineColor1, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->inlineColor2, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); - connect(dialog_->type1,SIGNAL(activated(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->type2,SIGNAL(activated(int)),this,SLOT(selectionChanged(int))); + connect(dialog_->type1,TQT_SIGNAL(activated(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->type2,TQT_SIGNAL(activated(int)),this,TQT_SLOT(selectionChanged(int))); - connect(dialog_->enableTransparency,SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); + connect(dialog_->enableTransparency,TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); - connect(dialog_->borderwidth, SIGNAL(valueChanged(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->titlebarheight, SIGNAL(valueChanged(int)),this, SLOT(selectionChanged(int))); + connect(dialog_->borderwidth, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->titlebarheight, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(selectionChanged(int))); - connect(dialog_->tlc, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->trc, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->blc, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->brc, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->buttonColor1, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->buttonColor2, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->buttonColor3, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->minColor1, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->minColor2, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->minColor3, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->maxColor1, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->maxColor2, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->maxColor3, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->closeColor1, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->closeColor2, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); - connect(dialog_->closeColor3, SIGNAL(changed(const QColor&)),this,SLOT(colorChanged(const QColor&))); + connect(dialog_->tlc, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->trc, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->blc, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->brc, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->buttonColor1, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->buttonColor2, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->buttonColor3, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->minColor1, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->minColor2, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->minColor3, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->maxColor1, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->maxColor2, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->maxColor3, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->closeColor1, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->closeColor2, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); + connect(dialog_->closeColor3, TQT_SIGNAL(changed(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&))); - connect(dialog_->hover, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->animateHover, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->buttonTheme, SIGNAL(activated(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->tintButtons, SIGNAL(toggled(bool)),this,SLOT(boolChanged(bool))); - connect(dialog_->menuimage, SIGNAL(stateChanged(int)),this,SLOT(selectionChanged(int))); + connect(dialog_->hover, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->animateHover, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->buttonTheme, TQT_SIGNAL(activated(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->tintButtons, TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(boolChanged(bool))); + connect(dialog_->menuimage, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); - connect(dialog_->repaintMode, SIGNAL(clicked(int)),this, SLOT(selectionChanged(int))); + connect(dialog_->tqrepaintMode, TQT_SIGNAL(clicked(int)),this, TQT_SLOT(selectionChanged(int))); - connect(dialog_->updateTime, SIGNAL(valueChanged(int)),this, SLOT(selectionChanged(int))); + connect(dialog_->updateTime, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(selectionChanged(int))); - connect(dialog_->infoButton, SIGNAL(clicked(void)),this,SLOT(infoDialog(void))); + connect(dialog_->infoButton, TQT_SIGNAL(clicked(void)),this,TQT_SLOT(infoDialog(void))); - connect(dialog_->active_blur, SIGNAL(valueChanged(int)),this,SLOT(selectionChanged(int))); - connect(dialog_->inactive_blur, SIGNAL(valueChanged(int)),this,SLOT(selectionChanged(int))); + connect(dialog_->active_blur, TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(selectionChanged(int))); + connect(dialog_->inactive_blur, TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(selectionChanged(int))); - connect(dialog_->userPicture1, SIGNAL(stateChanged(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->userPicture2, SIGNAL(stateChanged(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->activeFile,SIGNAL(textChanged(const QString&)),this,SLOT(textChanged( const QString& ))); - connect(dialog_->inactiveFile,SIGNAL(textChanged(const QString&)),this,SLOT(textChanged( const QString& ))); + connect(dialog_->userPicture1, TQT_SIGNAL(stateChanged(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->userPicture2, TQT_SIGNAL(stateChanged(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->activeFile,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(textChanged( const TQString& ))); + connect(dialog_->inactiveFile,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(textChanged( const TQString& ))); - connect(dialog_->overlay_active, SIGNAL(activated(int)),this, SLOT(overlay_active_changed(int))); - connect(dialog_->overlay_inactive, SIGNAL(activated(int)),this, SLOT(overlay_inactive_changed(int))); + connect(dialog_->overlay_active, TQT_SIGNAL(activated(int)),this, TQT_SLOT(overlay_active_changed(int))); + connect(dialog_->overlay_inactive, TQT_SIGNAL(activated(int)),this, TQT_SLOT(overlay_inactive_changed(int))); - connect(dialog_->overlay_active_file,SIGNAL(textChanged(const QString&)),this,SLOT(textChanged(const QString &))); - connect(dialog_->overlay_inactive_file,SIGNAL(textChanged(const QString&)),this,SLOT(textChanged(const QString &))); + connect(dialog_->overlay_active_file,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(textChanged(const TQString &))); + connect(dialog_->overlay_inactive_file,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(textChanged(const TQString &))); - connect(dialog_->logoEnabled, SIGNAL(clicked(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->logoFile, SIGNAL(textChanged(const QString &)),this, SLOT(logoTextChanged(const QString&))); - connect(dialog_->logoStretch, SIGNAL(activated(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->logoActive, SIGNAL(stateChanged(int)),this, SLOT(selectionChanged(int))); - connect(dialog_->logoDistance,SIGNAL(valueChanged(int)),this,SLOT(selectionChanged(int))); + connect(dialog_->logoEnabled, TQT_SIGNAL(clicked(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->logoFile, TQT_SIGNAL(textChanged(const TQString &)),this, TQT_SLOT(logoTextChanged(const TQString&))); + connect(dialog_->logoStretch, TQT_SIGNAL(activated(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->logoActive, TQT_SIGNAL(stateChanged(int)),this, TQT_SLOT(selectionChanged(int))); + connect(dialog_->logoDistance,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(selectionChanged(int))); load(config_); } @@ -150,12 +150,12 @@ void CrystalConfig::selectionChanged(int) void CrystalConfig::load(KConfig*) { - QColor color(255,255,255); + TQColor color(255,255,255); config_->setGroup("General"); - QString value = config_->readEntry("TitleAlignment", "AlignHCenter"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign->child(value); + TQString value = config_->readEntry("TitleAlignment", "AlignHCenter"); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->child(value); if (button) button->setChecked(true); dialog_->drawCaption->setChecked(config_->readBoolEntry("DrawCaption",true)); @@ -167,17 +167,17 @@ void CrystalConfig::load(KConfig*) dialog_->trackdesktop->setChecked(config_->readBoolEntry("TrackDesktop",false)); dialog_->frame1->setCurrentItem(config_->readNumEntry("ActiveFrame",1)); - color=QColor(192,192,192); + color=TQColor(192,192,192); dialog_->frameColor1->setColor(config_->readColorEntry("FrameColor1",&color)); dialog_->frame2->setCurrentItem(config_->readNumEntry("InactiveFrame",1)); - color=QColor(192,192,192); + color=TQColor(192,192,192); dialog_->frameColor2->setColor(config_->readColorEntry("FrameColor2",&color)); dialog_->inline1->setCurrentItem(config_->readNumEntry("ActiveInline",0)); - color=QColor(192,192,192); + color=TQColor(192,192,192); dialog_->inlineColor1->setColor(config_->readColorEntry("InlineColor1",&color)); dialog_->inline2->setCurrentItem(config_->readNumEntry("InactiveInline",0)); - color=QColor(192,192,192); + color=TQColor(192,192,192); dialog_->inlineColor2->setColor(config_->readColorEntry("InlineColor2",&color)); @@ -203,7 +203,7 @@ void CrystalConfig::load(KConfig*) dialog_->animateHover->setChecked(config_->readBoolEntry("AnimateHover",true)); dialog_->menuimage->setChecked(config_->readBoolEntry("MenuImage",true)); - color=QColor(255,255,255); + color=TQColor(255,255,255); dialog_->buttonColor1->setColor(config_->readColorEntry("ButtonColor",&color)); dialog_->buttonColor2->setColor(config_->readColorEntry("ButtonColor2",&color)); dialog_->buttonColor3->setColor(config_->readColorEntry("ButtonColor3",&color)); @@ -217,12 +217,12 @@ void CrystalConfig::load(KConfig*) dialog_->closeColor2->setColor(config_->readColorEntry("CloseColor2",&color)); dialog_->closeColor3->setColor(config_->readColorEntry("CloseColor3",&color)); - dialog_->tintButtons->setChecked(config_->readBoolEntry("TintButtons",dialog_->buttonColor1->color()!=QColor(255,255,255))); + dialog_->tintButtons->setChecked(config_->readBoolEntry("TintButtons",dialog_->buttonColor1->color()!=TQColor(255,255,255))); dialog_->buttonTheme->setCurrentItem(config_->readNumEntry("ButtonTheme",8)); dialog_->updateTime->setValue(config_->readNumEntry("RepaintTime",200)); - button=(QRadioButton*)dialog_->repaintMode->find(config_->readNumEntry("RepaintMode",1)); + button=(TQRadioButton*)dialog_->tqrepaintMode->tqfind(config_->readNumEntry("RepaintMode",1)); if (button)button->setChecked(true); dialog_->active_blur->setValue(config_->readNumEntry("ActiveBlur",0)); @@ -255,8 +255,8 @@ void CrystalConfig::save(KConfig*) { config_->setGroup("General"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign->selected(); - if (button) config_->writeEntry("TitleAlignment", QString(button->name())); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->selected(); + if (button) config_->writeEntry("TitleAlignment", TQString(button->name())); config_->writeEntry("DrawCaption",dialog_->drawCaption->isChecked()); config_->writeEntry("TextShadow",dialog_->textshadow->isChecked()); config_->writeEntry("CaptionTooltip",dialog_->tooltip->isChecked()); @@ -308,7 +308,7 @@ void CrystalConfig::save(KConfig*) config_->writeEntry("MenuImage",dialog_->menuimage->isChecked()); config_->writeEntry("ButtonTheme",dialog_->buttonTheme->currentItem()); - config_->writeEntry("RepaintMode",dialog_->repaintMode->selectedId()); + config_->writeEntry("RepaintMode",dialog_->tqrepaintMode->selectedId()); config_->writeEntry("RepaintTime",dialog_->updateTime->value()); config_->writeEntry("ActiveBlur",dialog_->active_blur->value()); @@ -336,11 +336,11 @@ void CrystalConfig::save(KConfig*) void CrystalConfig::infoDialog() { InfoDialog d(dialog_); - connect((QLabel*)(d.kURLLabel1),SIGNAL(leftClickedURL(const QString&)),KApplication::kApplication(),SLOT(invokeBrowser(const QString &))); + connect((TQLabel*)(d.kURLLabel1),TQT_SIGNAL(leftClickedURL(const TQString&)),KApplication::kApplication(),TQT_SLOT(invokeBrowser(const TQString &))); d.exec(); } -void CrystalConfig::logoTextChanged(const QString&) +void CrystalConfig::logoTextChanged(const TQString&) { updateLogo(); emit changed(); @@ -360,15 +360,15 @@ void CrystalConfig::overlay_inactive_changed(int a) void CrystalConfig::updateLogo() { - QPixmap pic; + TQPixmap pic; pic.load(dialog_->logoFile->url()); dialog_->logoPreview->setPixmap(pic); } void CrystalConfig::defaults() { - QRadioButton *button = - (QRadioButton*)dialog_->titlealign->child("AlignHCenter"); + TQRadioButton *button = + (TQRadioButton*)dialog_->titlealign->child("AlignHCenter"); if (button) button->setChecked(true); dialog_->shade1->setValue(50); dialog_->shade2->setValue(50); @@ -376,8 +376,8 @@ void CrystalConfig::defaults() extern "C" { - QObject* allocate_config(KConfig* config, QWidget* parent) { - return (new CrystalConfig(config, parent)); + TQObject* allocate_config(KConfig* config, TQWidget* tqparent) { + return (new CrystalConfig(config, tqparent)); } } diff --git a/client/config/crystalconfig.h b/client/config/crystalconfig.h index 5bdc0fb..24e496e 100644 --- a/client/config/crystalconfig.h +++ b/client/config/crystalconfig.h @@ -22,7 +22,7 @@ #ifndef CRYSTALCONFIG_H #define CRYSTALCONFIG_H -#include <qobject.h> +#include <tqobject.h> #define TOP_LEFT 1 #define TOP_RIGHT 2 @@ -32,11 +32,12 @@ class KConfig; class ConfigDialog; -class CrystalConfig : public QObject +class CrystalConfig : public TQObject { Q_OBJECT + TQ_OBJECT public: - CrystalConfig(KConfig* config, QWidget* parent); + CrystalConfig(KConfig* config, TQWidget* tqparent); ~CrystalConfig(); signals: @@ -53,9 +54,9 @@ protected slots: void overlay_active_changed(int); void overlay_inactive_changed(int); void boolChanged(bool) { selectionChanged(0); } - void colorChanged(const QColor&) { selectionChanged(0); } - void textChanged(const QString&) { selectionChanged(0); } - void logoTextChanged(const QString&); + void colorChanged(const TQColor&) { selectionChanged(0); } + void textChanged(const TQString&) { selectionChanged(0); } + void logoTextChanged(const TQString&); private: KConfig *config_; diff --git a/client/config/infodialog.ui b/client/config/infodialog.ui index f73a21c..eb7f13f 100644 --- a/client/config/infodialog.ui +++ b/client/config/infodialog.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>InfoDialog</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>InfoDialog</cstring> </property> @@ -39,7 +39,7 @@ <property name="resizeMode"> <enum>Minimum</enum> </property> - <widget class="QGroupBox" row="0" column="0" rowspan="2" colspan="2"> + <widget class="TQGroupBox" row="0" column="0" rowspan="2" colspan="2"> <property name="name"> <cstring>groupBox3</cstring> </property> @@ -54,13 +54,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>20</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>32767</width> <height>20</height> @@ -78,14 +78,14 @@ <property name="title"> <string>About:</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignCenter</set> </property> <property name="flat"> <bool>true</bool> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -109,11 +109,11 @@ You may look for the most recent version at kde-look.org:</string> <property name="textFormat"> <enum>PlainText</enum> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignTop|AlignLeft</set> </property> </widget> - <widget class="QLabel" row="1" column="1" rowspan="2" colspan="1"> + <widget class="TQLabel" row="1" column="1" rowspan="2" colspan="1"> <property name="name"> <cstring>pixmapLabel2</cstring> </property> @@ -143,7 +143,7 @@ You may look for the most recent version at kde-look.org:</string> <string>http://www.kde-look.org/content/show.php?content=13969</string> </property> </widget> - <widget class="QGroupBox" row="4" column="0" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="4" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>groupBox3_2</cstring> </property> @@ -158,13 +158,13 @@ You may look for the most recent version at kde-look.org:</string> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>20</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>32767</width> <height>20</height> @@ -182,14 +182,14 @@ You may look for the most recent version at kde-look.org:</string> <property name="title"> <string>Usage:</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignCenter</set> </property> <property name="flat"> <bool>true</bool> </property> </widget> - <widget class="QLabel" row="5" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="5" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -216,7 +216,7 @@ You may look for the most recent version at kde-look.org:</string> <property name="textFormat"> <enum>PlainText</enum> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignVCenter|AlignLeft</set> </property> </widget> @@ -234,7 +234,7 @@ You may look for the most recent version at kde-look.org:</string> <enum>Horizontal</enum> </property> </widget> - <widget class="QPushButton" row="7" column="0" rowspan="1" colspan="2"> + <widget class="TQPushButton" row="7" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>pushButton1</cstring> </property> @@ -274,10 +274,10 @@ You may look for the most recent version at kde-look.org:</string> <slot>close()</slot> </connection> </connections> -<slots> +<Q_SLOTS> <slot>kURLLabel1_leftURL()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kurllabel.h</includehint> </includehints> |