summaryrefslogtreecommitdiffstats
path: root/src/komposepreferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/komposepreferences.cpp')
-rw-r--r--src/komposepreferences.cpp254
1 files changed, 127 insertions, 127 deletions
diff --git a/src/komposepreferences.cpp b/src/komposepreferences.cpp
index 45dd7f0..91c4d7a 100644
--- a/src/komposepreferences.cpp
+++ b/src/komposepreferences.cpp
@@ -14,21 +14,21 @@
#include "komposesettings.h"
#include "komposeglobal.h"
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
#include <kapplication.h>
-#include <qwhatsthis.h>
-#include <qtooltip.h>
-#include <qspinbox.h>
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
-#include <qhbox.h>
-#include <qslider.h>
-#include <qpushbutton.h>
-#include <qgrid.h>
-#include <qvgroupbox.h>
-#include <qradiobutton.h>
+#include <tqwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqspinbox.h>
+#include <tqgroupbox.h>
+#include <tqbuttongroup.h>
+#include <tqhbox.h>
+#include <tqslider.h>
+#include <tqpushbutton.h>
+#include <tqgrid.h>
+#include <tqvgroupbox.h>
+#include <tqradiobutton.h>
#include <kiconloader.h>
#include <kcolorbutton.h>
@@ -38,120 +38,120 @@ KomposePreferences::KomposePreferences()
: KDialogBase(IconList, i18n("Komposé Preferences"), Ok|Apply|Cancel, Ok)
{
// FIXME: this is the biggest constructor I've EVER written!
- // How about Qt Designer?!
- m_hasXinerama = QDesktopWidget().numScreens() > 1;
+ // How about TQt Designer?!
+ m_hasXinerama = TQDesktopWidget().numScreens() > 1;
- QFrame *page1 = addPage( i18n("Behavior"), QString::null, DesktopIcon("winprops", KIcon::SizeMedium) );
- QFrame *page2 = addPage( i18n("Appearance"), QString::null, DesktopIcon("appearance", KIcon::SizeMedium) );
- QFrame *page3 = addPage( i18n("Layouts"), QString::null, DesktopIcon("window_list", KIcon::SizeMedium) );
+ TQFrame *page1 = addPage( i18n("Behavior"), TQString::null, DesktopIcon("winprops", KIcon::SizeMedium) );
+ TQFrame *page2 = addPage( i18n("Appearance"), TQString::null, DesktopIcon("appearance", KIcon::SizeMedium) );
+ TQFrame *page3 = addPage( i18n("Layouts"), TQString::null, DesktopIcon("window_list", KIcon::SizeMedium) );
- QVBoxLayout *page1Layout = new QVBoxLayout( page1, 0, KDialog::spacingHint() );
+ TQVBoxLayout *page1Layout = new TQVBoxLayout( page1, 0, KDialog::spacingHint() );
- defaultViewBtnGroup = new QButtonGroup( 2, Horizontal, i18n("Default Layout"), page1 );
+ defaultViewBtnGroup = new TQButtonGroup( 2, Horizontal, i18n("Default Layout"), page1 );
defaultViewBtnGroup->setExclusive( true );
- QString defaultViewBtnGroupHelp = i18n("Determines which view should be started by default (e.g. when you click on the systray icon).");
- QWhatsThis::add( defaultViewBtnGroup, defaultViewBtnGroupHelp );
- QToolTip::add( defaultViewBtnGroup, defaultViewBtnGroupHelp );
- defaultViewWorld = new QRadioButton(i18n("Ungrouped"), defaultViewBtnGroup );
- QString defaultViewWorldHelp = i18n("Fullscreen layout that shows all windows in no specific order");
- QWhatsThis::add( defaultViewWorld, defaultViewWorldHelp );
- QToolTip::add( defaultViewWorld, defaultViewWorldHelp );
- defaultViewVirtualDesks = new QRadioButton(i18n("Grouped by virtual desktops"), defaultViewBtnGroup );
- QString defaultViewVirtualDesksHelp = i18n("Fullscreen layout that shows a representation of your virtual desktops\n and places the windows inside.");
- QWhatsThis::add( defaultViewVirtualDesks, defaultViewVirtualDesksHelp );
- QToolTip::add( defaultViewVirtualDesks, defaultViewVirtualDesksHelp );
- defaultViewCurrentDesk = new QRadioButton(i18n("Current virtual desktop"), defaultViewBtnGroup );
- QString defaultViewCurrentDeskHelp = i18n("Fullscreen layout that shows the windows of the desktop you're currently working on.");
- QWhatsThis::add( defaultViewCurrentDesk, defaultViewCurrentDeskHelp );
- QToolTip::add( defaultViewCurrentDesk, defaultViewCurrentDeskHelp );
+ TQString defaultViewBtnGroupHelp = i18n("Determines which view should be started by default (e.g. when you click on the systray icon).");
+ TQWhatsThis::add( defaultViewBtnGroup, defaultViewBtnGroupHelp );
+ TQToolTip::add( defaultViewBtnGroup, defaultViewBtnGroupHelp );
+ defaultViewWorld = new TQRadioButton(i18n("Ungrouped"), defaultViewBtnGroup );
+ TQString defaultViewWorldHelp = i18n("Fullscreen layout that shows all windows in no specific order");
+ TQWhatsThis::add( defaultViewWorld, defaultViewWorldHelp );
+ TQToolTip::add( defaultViewWorld, defaultViewWorldHelp );
+ defaultViewVirtualDesks = new TQRadioButton(i18n("Grouped by virtual desktops"), defaultViewBtnGroup );
+ TQString defaultViewVirtualDesksHelp = i18n("Fullscreen layout that shows a representation of your virtual desktops\n and places the windows inside.");
+ TQWhatsThis::add( defaultViewVirtualDesks, defaultViewVirtualDesksHelp );
+ TQToolTip::add( defaultViewVirtualDesks, defaultViewVirtualDesksHelp );
+ defaultViewCurrentDesk = new TQRadioButton(i18n("Current virtual desktop"), defaultViewBtnGroup );
+ TQString defaultViewCurrentDeskHelp = i18n("Fullscreen layout that shows the windows of the desktop you're currently working on.");
+ TQWhatsThis::add( defaultViewCurrentDesk, defaultViewCurrentDeskHelp );
+ TQToolTip::add( defaultViewCurrentDesk, defaultViewCurrentDeskHelp );
page1Layout->addWidget(defaultViewBtnGroup);
if (m_hasXinerama)
{
- QGroupBox *xineramaGroupBox = new QGroupBox( 2, Vertical, i18n("Xinerama"), page1 );
+ TQGroupBox *xineramaGroupBox = new TQGroupBox( 2, Vertical, i18n("Xinerama"), page1 );
- QDesktopWidget deskwidget;
- m_viewScreenAll = new QCheckBox(i18n("Use the whole desktop for Komposé"), xineramaGroupBox);
+ TQDesktopWidget deskwidget;
+ m_viewScreenAll = new TQCheckBox(i18n("Use the whole desktop for Komposé"), xineramaGroupBox);
- QHBox *hLayXineramaGrabDelay = new QHBox(xineramaGroupBox);
- QLabel *xineramaLabel = new QLabel(i18n("Use screen:"), hLayXineramaGrabDelay);
- m_viewScreen = new QSpinBox(0, deskwidget.numScreens()-1, 1, hLayXineramaGrabDelay);
+ TQHBox *hLayXineramaGrabDelay = new TQHBox(xineramaGroupBox);
+ TQLabel *xineramaLabel = new TQLabel(i18n("Use screen:"), hLayXineramaGrabDelay);
+ m_viewScreen = new TQSpinBox(0, deskwidget.numScreens()-1, 1, hLayXineramaGrabDelay);
connect( m_viewScreenAll, SIGNAL(toggled(bool)), m_viewScreen, SLOT(setDisabled(bool)) );
xineramaLabel->setBuddy(m_viewScreen);
- QString xineramaHelp = i18n("Specify the screen where Komposé should appear." );
- QWhatsThis::add( m_viewScreen, xineramaHelp );
- QToolTip::add( m_viewScreen, xineramaHelp );
- QWhatsThis::add( xineramaLabel, xineramaHelp );
- QToolTip::add( xineramaLabel, xineramaHelp );
+ TQString xineramaHelp = i18n("Specify the screen where Komposé should appear." );
+ TQWhatsThis::add( m_viewScreen, xineramaHelp );
+ TQToolTip::add( m_viewScreen, xineramaHelp );
+ TQWhatsThis::add( xineramaLabel, xineramaHelp );
+ TQToolTip::add( xineramaLabel, xineramaHelp );
page1Layout->addWidget(xineramaGroupBox);
}
#ifdef COMPOSITE
- QGroupBox *screenshotsGroupBox = new QGroupBox( 4, Vertical, i18n("Screenshots"), page1 );
+ TQGroupBox *screenshotsGroupBox = new TQGroupBox( 4, Vertical, i18n("Screenshots"), page1 );
- useComposite = new QCheckBox(i18n("Use XComposite if available"), screenshotsGroupBox);
- QString useCompositeHelp = i18n("Making use of the Composite extension of newer X Servers makes the grabbing of screenshots obsolete.\nThe contents of all windows are drawn in back buffers that will be accessed by Komposé\nNote that the Composite implementation of even modern graphic card drivers is still very slow and may make your system pretty unusable.");
- QWhatsThis::add( useComposite, useCompositeHelp );
- QToolTip::add( useComposite, useCompositeHelp );
+ useComposite = new TQCheckBox(i18n("Use XComposite if available"), screenshotsGroupBox);
+ TQString useCompositeHelp = i18n("Making use of the Composite extension of newer X Servers makes the grabbing of screenshots obsolete.\nThe contents of all windows are drawn in back buffers that will be accessed by Komposé\nNote that the Composite implementation of even modern graphic card drivers is still very slow and may make your system pretty unusable.");
+ TQWhatsThis::add( useComposite, useCompositeHelp );
+ TQToolTip::add( useComposite, useCompositeHelp );
connect( useComposite, SIGNAL(toggled(bool)), SLOT(setUseCompositeToggled(bool)) );
#else
- QGroupBox *screenshotsGroupBox = new QGroupBox( 3, Vertical, i18n("Screenshots"), page1 );
+ TQGroupBox *screenshotsGroupBox = new TQGroupBox( 3, Vertical, i18n("Screenshots"), page1 );
#endif
- passiveScreenshots = new QCheckBox(i18n("Passive screenshots"), screenshotsGroupBox);
- QString passiveScreenshotsHelp = i18n("Create a screenshot whenever you raise or active a window.\nWhen selected the amount the annoying popup-effect before every Komposé activation will be minimized to nearly zero.\nThe drawback is that the screenshots are not so recent and may not display the actual content.");
- QWhatsThis::add( passiveScreenshots, passiveScreenshotsHelp );
- QToolTip::add( passiveScreenshots, passiveScreenshotsHelp );
+ passiveScreenshots = new TQCheckBox(i18n("Passive screenshots"), screenshotsGroupBox);
+ TQString passiveScreenshotsHelp = i18n("Create a screenshot whenever you raise or active a window.\nWhen selected the amount the annoying popup-effect before every Komposé activation will be minimized to nearly zero.\nThe drawback is that the screenshots are not so recent and may not display the actual content.");
+ TQWhatsThis::add( passiveScreenshots, passiveScreenshotsHelp );
+ TQToolTip::add( passiveScreenshots, passiveScreenshotsHelp );
- QHBox *hLayScreenshotGrabDelay = new QHBox(screenshotsGroupBox);
- QLabel *screenshotGrabDelayLabel = new QLabel(i18n("Delay between screenshots (ms):"), hLayScreenshotGrabDelay);
- screenshotGrabDelay = new QSpinBox(0, 999, 10, hLayScreenshotGrabDelay);
+ TQHBox *hLayScreenshotGrabDelay = new TQHBox(screenshotsGroupBox);
+ TQLabel *screenshotGrabDelayLabel = new TQLabel(i18n("Delay between screenshots (ms):"), hLayScreenshotGrabDelay);
+ screenshotGrabDelay = new TQSpinBox(0, 999, 10, hLayScreenshotGrabDelay);
screenshotGrabDelayLabel->setBuddy(screenshotGrabDelay);
- QString screenshotGrabDelayHelp = i18n("Specifies the time to wait between the activation of a window and the screenshot taking.\nIncrease it when your windows need more time to draw themselves after activation.\nValues below 300ms are not recommended, but may work in some cases." );
- QWhatsThis::add( screenshotGrabDelay, screenshotGrabDelayHelp );
- QToolTip::add( screenshotGrabDelay, screenshotGrabDelayHelp );
- QWhatsThis::add( screenshotGrabDelayLabel, screenshotGrabDelayHelp );
- QToolTip::add( screenshotGrabDelayLabel, screenshotGrabDelayHelp );
+ TQString screenshotGrabDelayHelp = i18n("Specifies the time to wait between the activation of a window and the screenshot taking.\nIncrease it when your windows need more time to draw themselves after activation.\nValues below 300ms are not recommended, but may work in some cases." );
+ TQWhatsThis::add( screenshotGrabDelay, screenshotGrabDelayHelp );
+ TQToolTip::add( screenshotGrabDelay, screenshotGrabDelayHelp );
+ TQWhatsThis::add( screenshotGrabDelayLabel, screenshotGrabDelayHelp );
+ TQToolTip::add( screenshotGrabDelayLabel, screenshotGrabDelayHelp );
- cacheScaledPixmaps = new QCheckBox(i18n("Cache scaled Screenshots"), screenshotsGroupBox);
- QString cacheScaledPixmapsHelp = i18n("This may avoid some scaling operations to be called repeatedly when Komposé has been displayed before and the screenshot's size didn't change.\nIt will however increase memory usage quite a bit.");
- QWhatsThis::add( cacheScaledPixmaps, cacheScaledPixmapsHelp );
- QToolTip::add( cacheScaledPixmaps, cacheScaledPixmapsHelp );
+ cacheScaledPixmaps = new TQCheckBox(i18n("Cache scaled Screenshots"), screenshotsGroupBox);
+ TQString cacheScaledPixmapsHelp = i18n("This may avoid some scaling operations to be called repeatedly when Komposé has been displayed before and the screenshot's size didn't change.\nIt will however increase memory usage quite a bit.");
+ TQWhatsThis::add( cacheScaledPixmaps, cacheScaledPixmapsHelp );
+ TQToolTip::add( cacheScaledPixmaps, cacheScaledPixmapsHelp );
page1Layout->addWidget(screenshotsGroupBox);
// Autolock
- QGroupBox* autoLockGroup = new QGroupBox( 0, Qt::Horizontal, i18n("Autoactivate when mouse moves into"), page1 );
- QGridLayout* autoLockLayout = new QGridLayout( autoLockGroup->layout(), 5, 2, KDialog::spacingHint() );
- m_topLeftCorner = new QCheckBox( i18n("Top-left corner"), autoLockGroup);
+ TQGroupBox* autoLockGroup = new TQGroupBox( 0, TQt::Horizontal, i18n("Autoactivate when mouse moves into"), page1 );
+ TQGridLayout* autoLockLayout = new TQGridLayout( autoLockGroup->layout(), 5, 2, KDialog::spacingHint() );
+ m_topLeftCorner = new TQCheckBox( i18n("Top-left corner"), autoLockGroup);
autoLockLayout->addWidget( m_topLeftCorner, 0, 0 );
- m_topRightCorner = new QCheckBox( i18n("Top-right corner"), autoLockGroup );
+ m_topRightCorner = new TQCheckBox( i18n("Top-right corner"), autoLockGroup );
autoLockLayout->addWidget( m_topRightCorner, 1, 0 );
- m_bottomLeftCorner = new QCheckBox( i18n("Bottom-left corner"), autoLockGroup );
+ m_bottomLeftCorner = new TQCheckBox( i18n("Bottom-left corner"), autoLockGroup );
autoLockLayout->addWidget( m_bottomLeftCorner, 2, 0 );
- m_bottomRightCorner = new QCheckBox( i18n("Bottom-right corner"), autoLockGroup );
+ m_bottomRightCorner = new TQCheckBox( i18n("Bottom-right corner"), autoLockGroup );
autoLockLayout->addWidget( m_bottomRightCorner, 3, 0 );
- m_topEdge = new QCheckBox( i18n("Top edge"), autoLockGroup);
+ m_topEdge = new TQCheckBox( i18n("Top edge"), autoLockGroup);
autoLockLayout->addWidget( m_topEdge, 0, 1 );
- m_bottomEdge = new QCheckBox( i18n("Bottom edge"), autoLockGroup );
+ m_bottomEdge = new TQCheckBox( i18n("Bottom edge"), autoLockGroup );
autoLockLayout->addWidget( m_bottomEdge, 1, 1 );
- m_leftEdge = new QCheckBox( i18n("Left edge"), autoLockGroup );
+ m_leftEdge = new TQCheckBox( i18n("Left edge"), autoLockGroup );
autoLockLayout->addWidget( m_leftEdge, 2, 1 );
- m_rightEdge = new QCheckBox( i18n("Right edge"), autoLockGroup );
+ m_rightEdge = new TQCheckBox( i18n("Right edge"), autoLockGroup );
autoLockLayout->addWidget( m_rightEdge, 3, 1 );
- QHBox *hLayAutoLockDelay = new QHBox(autoLockGroup);
- QLabel *autoLockDelayLabel = new QLabel(i18n("Delay until activation (ms):"), hLayAutoLockDelay);
- autoLockDelay = new QSpinBox(0, 5000, 10, hLayAutoLockDelay);
+ TQHBox *hLayAutoLockDelay = new TQHBox(autoLockGroup);
+ TQLabel *autoLockDelayLabel = new TQLabel(i18n("Delay until activation (ms):"), hLayAutoLockDelay);
+ autoLockDelay = new TQSpinBox(0, 5000, 10, hLayAutoLockDelay);
autoLockDelayLabel->setBuddy(autoLockDelay);
- QString autoLockDelayHelp = i18n("Specifies the time in ms for which the mouse pointer must rest in the corner until auto-activation." );
- QWhatsThis::add( autoLockDelay, autoLockDelayHelp );
- QToolTip::add( autoLockDelay, autoLockDelayHelp );
- QWhatsThis::add( autoLockDelayLabel, autoLockDelayHelp );
- QToolTip::add( autoLockDelayLabel, autoLockDelayHelp );
+ TQString autoLockDelayHelp = i18n("Specifies the time in ms for which the mouse pointer must rest in the corner until auto-activation." );
+ TQWhatsThis::add( autoLockDelay, autoLockDelayHelp );
+ TQToolTip::add( autoLockDelay, autoLockDelayHelp );
+ TQWhatsThis::add( autoLockDelayLabel, autoLockDelayHelp );
+ TQToolTip::add( autoLockDelayLabel, autoLockDelayHelp );
autoLockLayout->addMultiCellWidget( hLayAutoLockDelay, 4, 4, 0, 1 );
page1Layout->addWidget(autoLockGroup);
@@ -160,39 +160,39 @@ KomposePreferences::KomposePreferences()
- QVBoxLayout *page2Layout = new QVBoxLayout( page2, 0, KDialog::spacingHint() );
+ TQVBoxLayout *page2Layout = new TQVBoxLayout( page2, 0, KDialog::spacingHint() );
- imageEffects = new QCheckBox(i18n("Enable image effects"), page2);
- QString imageEffectsHelp = i18n("Lighten windows when the mouse moves over it or gray out minimized windows.\nDepending on your system specs this can be a bit slower." );
- QWhatsThis::add( imageEffects, imageEffectsHelp );
- QToolTip::add( imageEffects, imageEffectsHelp );
+ imageEffects = new TQCheckBox(i18n("Enable image effects"), page2);
+ TQString imageEffectsHelp = i18n("Lighten windows when the mouse moves over it or gray out minimized windows.\nDepending on your system specs this can be a bit slower." );
+ TQWhatsThis::add( imageEffects, imageEffectsHelp );
+ TQToolTip::add( imageEffects, imageEffectsHelp );
page2Layout->addWidget(imageEffects);
- showDesktopNum = new QCheckBox(i18n("Show Desktop number on Systray icon"), page2);
- QString showDesktopNumHelp = i18n("Displays the number of the currently active Desktop on the Komposé systray icon." );
- QWhatsThis::add( showDesktopNum, showDesktopNumHelp );
- QToolTip::add( showDesktopNum, showDesktopNumHelp );
+ showDesktopNum = new TQCheckBox(i18n("Show Desktop number on Systray icon"), page2);
+ TQString showDesktopNumHelp = i18n("Displays the number of the currently active Desktop on the Komposé systray icon." );
+ TQWhatsThis::add( showDesktopNum, showDesktopNumHelp );
+ TQToolTip::add( showDesktopNum, showDesktopNumHelp );
page2Layout->addWidget(showDesktopNum);
- QGroupBox *windowTitleGroupBox = new QGroupBox( 3, Vertical, i18n("Window Titles"), page2 );
+ TQGroupBox *windowTitleGroupBox = new TQGroupBox( 3, Vertical, i18n("Window Titles"), page2 );
- QHBox *hBoxWindowTitles = new QHBox(windowTitleGroupBox);
- showWindowTitles = new QCheckBox(i18n("Show window titles"), hBoxWindowTitles);
- windowTitleFontBtn = new QPushButton(i18n("Select Font..."), hBoxWindowTitles);
- QString showWindowTitlesHelp = i18n( "Display the name of every window in Komposé" );
- QWhatsThis::add( showWindowTitles, showWindowTitlesHelp );
- QToolTip::add( showWindowTitles, showWindowTitlesHelp );
+ TQHBox *hBoxWindowTitles = new TQHBox(windowTitleGroupBox);
+ showWindowTitles = new TQCheckBox(i18n("Show window titles"), hBoxWindowTitles);
+ windowTitleFontBtn = new TQPushButton(i18n("Select Font..."), hBoxWindowTitles);
+ TQString showWindowTitlesHelp = i18n( "Display the name of every window in Komposé" );
+ TQWhatsThis::add( showWindowTitles, showWindowTitlesHelp );
+ TQToolTip::add( showWindowTitles, showWindowTitlesHelp );
connect( showWindowTitles, SIGNAL(toggled(bool)), windowTitleFontBtn, SLOT(setEnabled(bool)) );
connect( windowTitleFontBtn, SIGNAL(clicked()), this, SLOT(showWindowTitleFontDialog()) );
- QGrid *gridWindowTitlesColor = new QGrid(2, windowTitleGroupBox);
- // windowTitleFontColorLabel = new QLabel(windowTitleFontColor, i18n("Text color: "), gridWindowTitlesColor); // FIXME: How to link to a buddy that doesn't yet exist?
- windowTitleFontColorLabel = new QLabel(i18n("Text color:"), gridWindowTitlesColor);
- windowTitleFontColor = new KColorButton(Qt::black, gridWindowTitlesColor);
+ TQGrid *gridWindowTitlesColor = new TQGrid(2, windowTitleGroupBox);
+ // windowTitleFontColorLabel = new TQLabel(windowTitleFontColor, i18n("Text color: "), gridWindowTitlesColor); // FIXME: How to link to a buddy that doesn't yet exist?
+ windowTitleFontColorLabel = new TQLabel(i18n("Text color:"), gridWindowTitlesColor);
+ windowTitleFontColor = new KColorButton(TQt::black, gridWindowTitlesColor);
connect( showWindowTitles, SIGNAL(toggled(bool)), windowTitleFontColorLabel, SLOT(setEnabled(bool)) );
connect( showWindowTitles, SIGNAL(toggled(bool)), windowTitleFontColor, SLOT(setEnabled(bool)) );
- showWindowTitleShadow = new QCheckBox(i18n("Shadow color:"), gridWindowTitlesColor);
- windowTitleFontShadowColor = new KColorButton(Qt::lightGray, gridWindowTitlesColor);
+ showWindowTitleShadow = new TQCheckBox(i18n("Shadow color:"), gridWindowTitlesColor);
+ windowTitleFontShadowColor = new KColorButton(TQt::lightGray, gridWindowTitlesColor);
connect( showWindowTitles, SIGNAL(toggled(bool)), showWindowTitleShadow, SLOT(setEnabled(bool)) );
connect( showWindowTitles, SIGNAL(toggled(bool)), windowTitleFontShadowColor, SLOT(setEnabled(bool)) );
connect( showWindowTitleShadow, SIGNAL(toggled(bool)), windowTitleFontShadowColor, SLOT(setEnabled(bool)) );
@@ -201,10 +201,10 @@ KomposePreferences::KomposePreferences()
- QGroupBox *iconGroupBox = new QGroupBox( 3, Vertical, i18n("Task Icons"), page2 );
- showIcons = new QCheckBox(i18n("Show icons"), iconGroupBox);
- iconSize = new QSlider(0, 3, 1, 0, Qt::Horizontal, iconGroupBox);
- iconSizeDescription = new QLabel( iconSize, "", iconGroupBox);
+ TQGroupBox *iconGroupBox = new TQGroupBox( 3, Vertical, i18n("Task Icons"), page2 );
+ showIcons = new TQCheckBox(i18n("Show icons"), iconGroupBox);
+ iconSize = new TQSlider(0, 3, 1, 0, TQt::Horizontal, iconGroupBox);
+ iconSizeDescription = new TQLabel( iconSize, "", iconGroupBox);
connect( iconSize, SIGNAL( sliderMoved(int) ), this, SLOT( updateIconSliderDesc(int) ) );
connect( iconSize, SIGNAL( valueChanged(int) ), this, SLOT( updateIconSliderDesc(int) ) );
connect( showIcons, SIGNAL( toggled(bool) ), iconSize, SLOT( setEnabled(bool) ) );
@@ -215,24 +215,24 @@ KomposePreferences::KomposePreferences()
- QVBoxLayout *page3Layout = new QVBoxLayout( page3, 0, KDialog::spacingHint() );
+ TQVBoxLayout *page3Layout = new TQVBoxLayout( page3, 0, KDialog::spacingHint() );
- QVGroupBox *virtDesksLayoutGroupBox = new QVGroupBox( i18n("Grouped by Virtual Desktops"), page3 );
- dynamicVirtDeskLayout = new QCheckBox(i18n("Layout empty virtual desktops minimized"), virtDesksLayoutGroupBox );
- QString dynamicVirtDeskLayoutHelp = i18n("Check this if you want empty virtual desktops to take less space on the screen.\nUncheck it if you want them to be arranged statically, each of the same size.");
- QWhatsThis::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp );
- QToolTip::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp );
+ TQVGroupBox *virtDesksLayoutGroupBox = new TQVGroupBox( i18n("Grouped by Virtual Desktops"), page3 );
+ dynamicVirtDeskLayout = new TQCheckBox(i18n("Layout empty virtual desktops minimized"), virtDesksLayoutGroupBox );
+ TQString dynamicVirtDeskLayoutHelp = i18n("Check this if you want empty virtual desktops to take less space on the screen.\nUncheck it if you want them to be arranged statically, each of the same size.");
+ TQWhatsThis::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp );
+ TQToolTip::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp );
- QGrid *desktopColorsGroupBox = new QGrid( 2, virtDesksLayoutGroupBox );
+ TQGrid *desktopColorsGroupBox = new TQGrid( 2, virtDesksLayoutGroupBox );
desktopColorsGroupBox->setSpacing( 4 );
- desktopTitleFontColorLabel = new QLabel(i18n("Desktop frame color:"), desktopColorsGroupBox);
- desktopTitleFontColor = new KColorButton(Qt::black, desktopColorsGroupBox);
- desktopTitleFontHighlightColorLabel = new QLabel(i18n("Desktop frame highlight color:"), desktopColorsGroupBox);
- desktopTitleFontHighlightColor = new KColorButton(Qt::black, desktopColorsGroupBox);
+ desktopTitleFontColorLabel = new TQLabel(i18n("Desktop frame color:"), desktopColorsGroupBox);
+ desktopTitleFontColor = new KColorButton(TQt::black, desktopColorsGroupBox);
+ desktopTitleFontHighlightColorLabel = new TQLabel(i18n("Desktop frame highlight color:"), desktopColorsGroupBox);
+ desktopTitleFontHighlightColor = new KColorButton(TQt::black, desktopColorsGroupBox);
page3Layout->addWidget(virtDesksLayoutGroupBox);
- desktopTitleFontBtn = new QPushButton(i18n("Select Desktop Names Font..."), virtDesksLayoutGroupBox);
+ desktopTitleFontBtn = new TQPushButton(i18n("Select Desktop Names Font..."), virtDesksLayoutGroupBox);
connect( desktopTitleFontBtn, SIGNAL(clicked()), this, SLOT(showDesktopTitleFontDialog()) );
page3Layout->insertStretch(-1);
@@ -303,7 +303,7 @@ void KomposePreferences::fillPages()
showDesktopNum->setChecked( KomposeSettings::instance()->getShowDesktopNum() );
showWindowTitles->setChecked( KomposeSettings::instance()->getShowWindowTitles() );
- windowTitleFont = new QFont(KomposeSettings::instance()->getWindowTitleFont());
+ windowTitleFont = new TQFont(KomposeSettings::instance()->getWindowTitleFont());
windowTitleFontColor->setColor( KomposeSettings::instance()->getWindowTitleFontColor() );
windowTitleFontShadowColor->setColor( KomposeSettings::instance()->getWindowTitleFontShadowColor() );
showWindowTitleShadow->setChecked( KomposeSettings::instance()->getShowWindowTitleShadow() );
@@ -314,7 +314,7 @@ void KomposePreferences::fillPages()
showWindowTitleShadow->setEnabled( KomposeSettings::instance()->getShowWindowTitles() );
windowTitleFontShadowColor->setEnabled( KomposeSettings::instance()->getShowWindowTitles() || KomposeSettings::instance()->getShowWindowTitleShadow() );
- desktopTitleFont = new QFont(KomposeSettings::instance()->getDesktopTitleFont());
+ desktopTitleFont = new TQFont(KomposeSettings::instance()->getDesktopTitleFont());
desktopTitleFontColor->setColor( KomposeSettings::instance()->getDesktopTitleFontColor() );
desktopTitleFontHighlightColor->setColor( KomposeSettings::instance()->getDesktopTitleFontHighlightColor() );