summaryrefslogtreecommitdiffstats
path: root/kwin/kcmkwin/kwinoptions
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kwin/kcmkwin/kwinoptions
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/kcmkwin/kwinoptions')
-rw-r--r--kwin/kcmkwin/kwinoptions/main.cpp4
-rw-r--r--kwin/kcmkwin/kwinoptions/mouse.cpp38
-rw-r--r--kwin/kcmkwin/kwinoptions/mouse.h2
-rw-r--r--kwin/kcmkwin/kwinoptions/windows.cpp34
4 files changed, 39 insertions, 39 deletions
diff --git a/kwin/kcmkwin/kwinoptions/main.cpp b/kwin/kcmkwin/kwinoptions/main.cpp
index ac19a5d30..8c8a283f2 100644
--- a/kwin/kcmkwin/kwinoptions/main.cpp
+++ b/kwin/kcmkwin/kwinoptions/main.cpp
@@ -171,7 +171,7 @@ void KWinOptions::save()
mConfig->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
@@ -244,7 +244,7 @@ void KActionsOptions::save()
mConfig->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
diff --git a/kwin/kcmkwin/kwinoptions/mouse.cpp b/kwin/kcmkwin/kwinoptions/mouse.cpp
index 6adba1f89..30c18383c 100644
--- a/kwin/kcmkwin/kwinoptions/mouse.cpp
+++ b/kwin/kcmkwin/kwinoptions/mouse.cpp
@@ -163,7 +163,7 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
combo->insertItem(i18n("Lower"));
combo->insertItem(i18n("On All Desktops"));
combo->insertItem(i18n("Nothing"));
- combo->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed));
+ combo->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed));
connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));
hlayout->addWidget(combo);
coTiDbl = combo;
@@ -188,7 +188,7 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
comboW->insertItem(i18n("Move to Previous/Next Desktop"));
comboW->insertItem(i18n("Change Opacity"));
comboW->insertItem(i18n("Nothing"));
- comboW->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed));
+ comboW->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed));
connect(comboW, TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));
hlayoutW->addWidget(comboW);
coTiAct4 = comboW;
@@ -219,8 +219,8 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
if ( leftHandedMouse )
{
- qSwap(strMouseButton1, strMouseButton3);
- qSwap(txtButton1, txtButton3);
+ tqSwap(strMouseButton1, strMouseButton3);
+ tqSwap(txtButton1, txtButton3);
}
label = new TQLabel(strMouseButton1, grid);
@@ -235,7 +235,7 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
label = new TQLabel(i18n("Active"), grid);
- label->setAlignment(AlignCenter);
+ label->tqsetAlignment(AlignCenter);
TQWhatsThis::add( label, i18n("In this column you can customize mouse clicks into the titlebar"
" or the frame of an active window.") );
@@ -256,7 +256,7 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
"<em>active</em> window.");
// Be nice to left handed users
- if ( leftHandedMouse ) qSwap(txtButton1, txtButton3);
+ if ( leftHandedMouse ) tqSwap(txtButton1, txtButton3);
TQWhatsThis::add(combo, txtButton1);
@@ -289,10 +289,10 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
"<em>inactive</em> window.");
// Be nice to left handed users
- if ( leftHandedMouse ) qSwap(txtButton1, txtButton3);
+ if ( leftHandedMouse ) tqSwap(txtButton1, txtButton3);
label = new TQLabel(i18n("Inactive"), grid);
- label->setAlignment(AlignCenter);
+ label->tqsetAlignment(AlignCenter);
TQWhatsThis::add( label, i18n("In this column you can customize mouse clicks into the titlebar"
" or the frame of an inactive window.") );
@@ -345,8 +345,8 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
if ( leftHandedMouse ) // Be nice to lefties
{
- qSwap(strMouseButton[0], strMouseButton[2]);
- qSwap(txtButton[0], txtButton[2]);
+ tqSwap(strMouseButton[0], strMouseButton[2]);
+ tqSwap(txtButton[0], txtButton[2]);
}
createMaxButtonPixmaps();
@@ -356,14 +356,14 @@ KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, KConfig *_conf
TQLabel * label = new TQLabel(strMouseButton[b], box);
TQWhatsThis::add( label, txtButton[b] );
- label ->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ));
+ label ->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ));
coMax[b] = new ToolTipComboBox(box, tbl_Max);
for (int t = 0; t < 3; ++t) coMax[b]->insertItem(maxButtonPixmaps[t]);
connect(coMax[b], TQT_SIGNAL(activated(int)), TQT_SLOT(changed()));
connect(coMax[b], TQT_SIGNAL(activated(int)), coMax[b], TQT_SLOT(changed()));
TQWhatsThis::add( coMax[b], txtButton[b] );
- coMax[b]->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ));
+ coMax[b]->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ));
}
connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), TQT_SLOT(paletteChanged()));
@@ -565,7 +565,7 @@ void KTitleBarActionsConfig::save()
config->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
}
@@ -618,8 +618,8 @@ KWindowActionsConfig::KWindowActionsConfig (bool _standAlone, KConfig *_config,
if ( leftHandedMouse )
{
- qSwap(strMouseButton1, strMouseButton3);
- qSwap(txtButton1, txtButton3);
+ tqSwap(strMouseButton1, strMouseButton3);
+ tqSwap(txtButton1, txtButton3);
}
strWin1 = i18n("In this row you can customize left click behavior when clicking into"
@@ -629,7 +629,7 @@ KWindowActionsConfig::KWindowActionsConfig (bool _standAlone, KConfig *_config,
" an inactive inner window ('inner' means: not titlebar, not frame).");
// Be nice to lefties
- if ( leftHandedMouse ) qSwap(strWin1, strWin3);
+ if ( leftHandedMouse ) tqSwap(strWin1, strWin3);
label = new TQLabel(strMouseButton1, grid);
TQWhatsThis::add( label, strWin1 );
@@ -696,8 +696,8 @@ KWindowActionsConfig::KWindowActionsConfig (bool _standAlone, KConfig *_config,
if ( leftHandedMouse )
{
- qSwap(strMouseButton1, strMouseButton3);
- qSwap(strAll1, strAll3);
+ tqSwap(strMouseButton1, strMouseButton3);
+ tqSwap(strAll1, strAll3);
}
label = new TQLabel(strMouseButton1, grid);
@@ -839,7 +839,7 @@ void KWindowActionsConfig::save()
config->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
}
diff --git a/kwin/kcmkwin/kwinoptions/mouse.h b/kwin/kcmkwin/kwinoptions/mouse.h
index b28437511..49591e5d8 100644
--- a/kwin/kcmkwin/kwinoptions/mouse.h
+++ b/kwin/kcmkwin/kwinoptions/mouse.h
@@ -30,7 +30,7 @@ class KConfig;
#include <tqtooltip.h>
-class ToolTipComboBox: public QComboBox
+class ToolTipComboBox: public TQComboBox
{
Q_OBJECT
diff --git a/kwin/kcmkwin/kwinoptions/windows.cpp b/kwin/kcmkwin/kwinoptions/windows.cpp
index cc8643af9..0f5939c6e 100644
--- a/kwin/kcmkwin/kwinoptions/windows.cpp
+++ b/kwin/kcmkwin/kwinoptions/windows.cpp
@@ -110,7 +110,7 @@ KFocusConfig::KFocusConfig (bool _standAlone, KConfig *_config, TQWidget * paren
//iTLabel = new TQLabel(i18n(" Allowed overlap:\n"
// "(% of desktop space)"),
// plcBox);
- //iTLabel->setAlignment(AlignTop|AlignHCenter);
+ //iTLabel->tqsetAlignment(AlignTop|AlignHCenter);
//pLay->addWidget(iTLabel,1,1);
//interactiveTrigger = new TQSpinBox(0, 500, 1, plcBox);
@@ -124,7 +124,7 @@ KFocusConfig::KFocusConfig (bool _standAlone, KConfig *_config, TQWidget * paren
fcsBox = new TQButtonGroup(i18n("Focus"),this);
fcsBox->setColumnLayout( 0, Qt::Horizontal );
- TQBoxLayout *fLay = new TQVBoxLayout(fcsBox->layout(),
+ TQBoxLayout *fLay = new TQVBoxLayout(fcsBox->tqlayout(),
KDialog::spacingHint());
TQBoxLayout *cLay = new TQHBoxLayout(fLay);
@@ -192,8 +192,8 @@ KFocusConfig::KFocusConfig (bool _standAlone, KConfig *_config, TQWidget * paren
connect(clickRaiseOn,TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(clickRaiseOnTog(bool)));
fLay->addWidget(clickRaiseOn);
-// fLay->addColSpacing(0,QMAX(autoRaiseOn->sizeHint().width(),
-// clickRaiseOn->sizeHint().width()) + 15);
+// fLay->addColSpacing(0,QMAX(autoRaiseOn->tqsizeHint().width(),
+// clickRaiseOn->tqsizeHint().width()) + 15);
TQWhatsThis::add( autoRaiseOn, i18n("When this option is enabled, a window in the background will automatically"
" come to the front when the mouse pointer has been over it for some time.") );
@@ -236,7 +236,7 @@ KFocusConfig::KFocusConfig (bool _standAlone, KConfig *_config, TQWidget * paren
kbdBox = new TQButtonGroup(i18n("Navigation"), this);
kbdBox->setColumnLayout( 0, Qt::Horizontal );
- TQVBoxLayout *kLay = new TQVBoxLayout(kbdBox->layout(), KDialog::spacingHint());
+ TQVBoxLayout *kLay = new TQVBoxLayout(kbdBox->tqlayout(), KDialog::spacingHint());
altTabPopup = new TQCheckBox( i18n("Show window list while switching windows"), kbdBox );
kLay->addWidget( altTabPopup );
@@ -535,7 +535,7 @@ void KFocusConfig::save( void )
config->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
emit KCModule::changed(false);
}
@@ -573,7 +573,7 @@ KAdvancedConfig::KAdvancedConfig (bool _standAlone, KConfig *_config, TQWidget *
//iTLabel = new TQLabel(i18n(" Allowed overlap:\n"
// "(% of desktop space)"),
// plcBox);
- //iTLabel->setAlignment(AlignTop|AlignHCenter);
+ //iTLabel->tqsetAlignment(AlignTop|AlignHCenter);
//pLay->addWidget(iTLabel,1,1);
//interactiveTrigger = new TQSpinBox(0, 500, 1, plcBox);
@@ -762,7 +762,7 @@ void KAdvancedConfig::save( void )
config->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
emit KCModule::changed(false);
}
@@ -831,7 +831,7 @@ KMovingConfig::KMovingConfig (bool _standAlone, KConfig *_config, TQWidget *pare
windowsBox = new TQButtonGroup(i18n("Windows"), this);
windowsBox->setColumnLayout( 0, Qt::Horizontal );
- TQBoxLayout *wLay = new TQVBoxLayout (windowsBox->layout(), KDialog::spacingHint());
+ TQBoxLayout *wLay = new TQVBoxLayout (windowsBox->tqlayout(), KDialog::spacingHint());
TQBoxLayout *bLay = new TQVBoxLayout;
wLay->addLayout(bLay);
@@ -856,7 +856,7 @@ KMovingConfig::KMovingConfig (bool _standAlone, KConfig *_config, TQWidget *pare
" its size."));
TQGridLayout *rLay = new TQGridLayout(2,3);
- bLay->addLayout(rLay);
+ bLay->addLayout(TQT_TQLAYOUT(rLay));
rLay->setColStretch(0,0);
rLay->setColStretch(1,1);
@@ -866,7 +866,7 @@ KMovingConfig::KMovingConfig (bool _standAlone, KConfig *_config, TQWidget *pare
" windows are minimized or restored." ) );
rLay->addWidget(minimizeAnimOn,0,0);
- minimizeAnimSlider = new TQSlider(0,10,10,0,TQSlider::Horizontal, windowsBox);
+ minimizeAnimSlider = new TQSlider(0,10,10,0,Qt::Horizontal, windowsBox);
minimizeAnimSlider->setSteps(1, 1);
// TQSlider::Below clashes with a X11/X.h #define
#undef Below
@@ -877,11 +877,11 @@ KMovingConfig::KMovingConfig (bool _standAlone, KConfig *_config, TQWidget *pare
connect(minimizeAnimSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(setMinimizeAnimSpeed(int)));
minimizeAnimSlowLabel= new TQLabel(i18n("Slow"),windowsBox);
- minimizeAnimSlowLabel->setAlignment(Qt::AlignTop|Qt::AlignLeft);
+ minimizeAnimSlowLabel->tqsetAlignment(Qt::AlignTop|Qt::AlignLeft);
rLay->addWidget(minimizeAnimSlowLabel,1,1);
minimizeAnimFastLabel= new TQLabel(i18n("Fast"),windowsBox);
- minimizeAnimFastLabel->setAlignment(Qt::AlignTop|Qt::AlignRight);
+ minimizeAnimFastLabel->tqsetAlignment(Qt::AlignTop|Qt::AlignRight);
rLay->addWidget(minimizeAnimFastLabel,1,2);
wtstr = i18n("Here you can set the speed of the animation shown when windows are"
@@ -940,7 +940,7 @@ KMovingConfig::KMovingConfig (bool _standAlone, KConfig *_config, TQWidget *pare
//iTLabel = new TQLabel(i18n(" Allowed overlap:\n"
// "(% of desktop space)"),
// plcBox);
- //iTLabel->setAlignment(AlignTop|AlignHCenter);
+ //iTLabel->tqsetAlignment(AlignTop|AlignHCenter);
//pLay->addWidget(iTLabel,1,1);
//interactiveTrigger = new TQSpinBox(0, 500, 1, plcBox);
@@ -1114,7 +1114,7 @@ void KMovingConfig::load( void )
//CT 13mar98 interactive placement
// if( key.left(11) == "interactive") {
// setPlacement(INTERACTIVE_PLACEMENT);
-// int comma_pos = key.find(',');
+// int comma_pos = key.tqfind(',');
// if (comma_pos < 0)
// interactiveTrigger->setValue(0);
// else
@@ -1219,7 +1219,7 @@ void KMovingConfig::save( void )
config->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
emit KCModule::changed(false);
}
@@ -1614,7 +1614,7 @@ void KTranslucencyConfig::save( void )
config->sync();
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- kapp->dcopClient()->send("kwin*", "", "reconfigure()", "");
+ kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString(""));
}
emit KCModule::changed(false);
}