A bit less Qt3Compat depndency.

svn path=/trunk/KDE/kdebase/workspace/; revision=673869
This commit is contained in:
Luciano Montanaro 2007-06-11 08:15:22 +00:00
parent fb8d0f3a66
commit 689b9a69d2
3 changed files with 9 additions and 9 deletions

View file

@ -32,7 +32,8 @@
#include <QFileInfo> #include <QFileInfo>
#include <QLayout> #include <QLayout>
#include <q3groupbox.h> #include <QGroupBox>
#include <QGridLayout>
#include <QCheckBox> #include <QCheckBox>
#include <QTabWidget> #include <QTabWidget>
@ -101,11 +102,12 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QStringList &)
decorationList->setWhatsThis( whatsThis); decorationList->setWhatsThis( whatsThis);
pluginLayout->addWidget(decorationList); pluginLayout->addWidget(decorationList);
Q3GroupBox *pluginSettingsGrp = new Q3GroupBox( i18n("Decoration Options"), pluginPage ); QGroupBox *pluginSettingsGrp = new QGroupBox( i18n("Decoration Options"), pluginPage );
pluginSettingsGrp->setColumnLayout( 0, Qt::Vertical ); QGridLayout *pluginSettingsLayout = new QGridLayout();
pluginSettingsGrp->setFlat( true ); pluginSettingsGrp->setFlat( true );
pluginSettingsGrp->layout()->setMargin( 0 ); pluginSettingsLayout->setMargin( 0 );
pluginSettingsGrp->layout()->setSpacing( KDialog::spacingHint() ); pluginSettingsLayout->setSpacing( KDialog::spacingHint() );
pluginSettingsGrp->setLayout( pluginSettingsLayout );
pluginLayout->addWidget( pluginSettingsGrp ); pluginLayout->addWidget( pluginSettingsGrp );
pluginLayout->addStretch(); pluginLayout->addStretch();

View file

@ -40,11 +40,9 @@
// FRAME the preview doesn't update to reflect the changes done in the kcm // FRAME the preview doesn't update to reflect the changes done in the kcm
KDecorationPreview::KDecorationPreview( QWidget* parent, const char* name ) KDecorationPreview::KDecorationPreview( QWidget* parent )
: QWidget( parent ) : QWidget( parent )
{ {
setObjectName( name );
options = new KDecorationPreviewOptions; options = new KDecorationPreviewOptions;
bridge[Active] = new KDecorationPreviewBridge( this, true ); bridge[Active] = new KDecorationPreviewBridge( this, true );

View file

@ -43,7 +43,7 @@ class KDecorationPreview
// and an inactive window. // and an inactive window.
enum Windows { Inactive = 0, Active, NumWindows }; enum Windows { Inactive = 0, Active, NumWindows };
KDecorationPreview( QWidget* parent = NULL, const char* name = NULL ); KDecorationPreview( QWidget* parent = NULL );
virtual ~KDecorationPreview(); virtual ~KDecorationPreview();
bool recreateDecoration( KDecorationPlugins* plugin ); bool recreateDecoration( KDecorationPlugins* plugin );
void enablePreview(); void enablePreview();