summaryrefslogtreecommitdiffstats
path: root/kcontrol/style/kcmstyle.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kcontrol/style/kcmstyle.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/style/kcmstyle.cpp')
-rw-r--r--kcontrol/style/kcmstyle.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kcontrol/style/kcmstyle.cpp b/kcontrol/style/kcmstyle.cpp
index f351d3f2c..a9a3e00aa 100644
--- a/kcontrol/style/kcmstyle.cpp
+++ b/kcontrol/style/kcmstyle.cpp
@@ -157,11 +157,11 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
// -----------------
gbWidgetStyle = new TQGroupBox( i18n("Widget Style"), page1, "gbWidgetStyle" );
gbWidgetStyle->setColumnLayout( 0, Qt::Vertical );
- gbWidgetStyle->layout()->setMargin( KDialog::marginHint() );
- gbWidgetStyle->layout()->setSpacing( KDialog::spacingHint() );
+ gbWidgetStyle->tqlayout()->setMargin( KDialog::marginHint() );
+ gbWidgetStyle->tqlayout()->setSpacing( KDialog::spacingHint() );
- gbWidgetStyleLayout = new TQVBoxLayout( gbWidgetStyle->layout() );
- gbWidgetStyleLayout->setAlignment( Qt::AlignTop );
+ gbWidgetStyleLayout = new TQVBoxLayout( gbWidgetStyle->tqlayout() );
+ gbWidgetStyleLayout->tqsetAlignment( Qt::AlignTop );
hbLayout = new TQHBoxLayout( KDialog::spacingHint(), "hbLayout" );
cbStyle = new KComboBox( gbWidgetStyle, "cbStyle" );
@@ -169,7 +169,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
hbLayout->addWidget( cbStyle );
pbConfigStyle = new TQPushButton( i18n("Con&figure..."), gbWidgetStyle );
- pbConfigStyle->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Minimum );
+ pbConfigStyle->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Minimum );
pbConfigStyle->setEnabled( FALSE );
hbLayout->addWidget( pbConfigStyle );
@@ -189,11 +189,11 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
TQGroupBox *gbPreview = new TQGroupBox( i18n( "Preview" ), page1 );
gbPreview->setColumnLayout( 0, Vertical );
- gbPreview->layout()->setMargin( 0 );
- gbPreview->layout()->setSpacing( KDialog::spacingHint() );
+ gbPreview->tqlayout()->setMargin( 0 );
+ gbPreview->tqlayout()->setSpacing( KDialog::spacingHint() );
gbPreview->setFlat( true );
stylePreview = new StylePreview( gbPreview );
- gbPreview->layout()->add( stylePreview );
+ gbPreview->tqlayout()->add( stylePreview );
page1Layout->addWidget( gbWidgetStyle );
page1Layout->addWidget( gbPreview );
@@ -294,16 +294,16 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
box1->setSpacing( KDialog::spacingHint() );
box1->setMargin( 0 );
TQLabel* lbl = new TQLabel( i18n("0%"), box1 );
- lbl->setAlignment( AlignLeft );
+ lbl->tqsetAlignment( AlignLeft );
lbl = new TQLabel( i18n("50%"), box1 );
- lbl->setAlignment( AlignHCenter );
+ lbl->tqsetAlignment( AlignHCenter );
lbl = new TQLabel( i18n("100%"), box1 );
- lbl->setAlignment( AlignRight );
+ lbl->tqsetAlignment( AlignRight );
lblMenuEffectType = new TQLabel( comboMenuEffectType, i18n("Menu trans&lucency type:"), menuContainer );
- lblMenuEffectType->setAlignment( AlignBottom | AlignLeft );
+ lblMenuEffectType->tqsetAlignment( AlignBottom | AlignLeft );
lblMenuOpacity = new TQLabel( slOpacity, i18n("Menu &opacity:"), menuContainer );
- lblMenuOpacity->setAlignment( AlignBottom | AlignLeft );
+ lblMenuOpacity->tqsetAlignment( AlignBottom | AlignLeft );
menuContainerLayout->addWidget( lblMenuEffectType, 0, 0 );
menuContainerLayout->addWidget( comboMenuEffectType, 1, 0 );
@@ -795,9 +795,9 @@ void KCMStyle::loadStyle( KConfig& config )
item = i;
if ( id == cfgStyle ) // ExactMatch
break;
- else if ( id.contains( cfgStyle ) )
+ else if ( id.tqcontains( cfgStyle ) )
break;
- else if ( id.contains( TQApplication::style().className() ) )
+ else if ( id.tqcontains( TQApplication::style().className() ) )
break;
item = 0;
}
@@ -837,7 +837,7 @@ void KCMStyle::switchStyle(const TQString& styleName, bool force)
setStyleRecursive( stylePreview, style );
// this flickers, but reliably draws the widgets correctly.
- stylePreview->resize( stylePreview->sizeHint() );
+ stylePreview->resize( stylePreview->tqsizeHint() );
delete appliedStyle;
appliedStyle = style;