Layout and whitespace update.
svn path=/trunk/kdebase/kwin/; revision=261305
This commit is contained in:
parent
26a5b0bfb4
commit
5bf63947d9
2 changed files with 32 additions and 36 deletions
|
@ -99,19 +99,21 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const char* name, co
|
|||
|
||||
QFrame* preview_frame = new QFrame( pluginPage );
|
||||
preview_frame->setFrameShape( QFrame::NoFrame );
|
||||
QVBoxLayout* preview_layout = new QVBoxLayout( preview_frame, 0, KDialog::spacingHint());
|
||||
QVBoxLayout* preview_layout = new QVBoxLayout( preview_frame, 0 );
|
||||
preview = new KDecorationPreview( preview_frame );
|
||||
preview_layout->addWidget( preview );
|
||||
pluginLayout->addWidget( preview_frame );
|
||||
pluginLayout->setStretchFactor( preview_frame, 10 );
|
||||
|
||||
pluginSettingsLbl = new QLabel( i18n("Decoration Options"), pluginPage );
|
||||
pluginSettingsLine = new QFrame( pluginPage );
|
||||
pluginSettingsLine ->setFrameStyle( QFrame::HLine | QFrame::Plain );
|
||||
pluginConfigWidget = new QVBox(pluginPage);
|
||||
pluginLayout->addWidget(pluginSettingsLbl );
|
||||
pluginLayout->addWidget(pluginSettingsLine);
|
||||
pluginLayout->addWidget(pluginConfigWidget);
|
||||
pluginSettingsGrp = new QGroupBox( i18n("Decoration Options"), pluginPage );
|
||||
pluginSettingsGrp->setColumnLayout( 0, Vertical );
|
||||
pluginSettingsGrp->setFlat( true );
|
||||
pluginSettingsGrp->layout()->setMargin( 0 );
|
||||
pluginSettingsGrp->layout()->setSpacing( KDialog::spacingHint() );
|
||||
pluginLayout->addWidget( pluginSettingsGrp );
|
||||
|
||||
pluginConfigWidget = new QVBox(pluginSettingsGrp);
|
||||
pluginSettingsGrp->layout()->add( pluginConfigWidget );
|
||||
|
||||
// Page 2 (Button Selector)
|
||||
QVBox* buttonPage = new QVBox( tabWidget );
|
||||
|
@ -387,20 +389,15 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec
|
|||
connect( this, SIGNAL(pluginLoad(KConfig*)), pluginObject, SLOT(load(KConfig*)) );
|
||||
connect( this, SIGNAL(pluginSave(KConfig*)), pluginObject, SLOT(save(KConfig*)) );
|
||||
connect( this, SIGNAL(pluginDefaults()), pluginObject, SLOT(defaults()) );
|
||||
pluginSettingsLbl->show();
|
||||
pluginSettingsLine->show();
|
||||
pluginConfigWidget->show();
|
||||
pluginSettingsGrp->show();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
pluginSettingsLbl->hide();
|
||||
pluginSettingsLine->hide();
|
||||
pluginConfigWidget->hide();
|
||||
pluginSettingsGrp->hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Reads the kwin config settings, and sets all UI controls to those settings
|
||||
// Updating the config plugin if required
|
||||
void KWinDecorationModule::readConfig( KConfig* conf )
|
||||
|
|
|
@ -121,8 +121,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface
|
|||
BorderSize border_size;
|
||||
|
||||
QObject* pluginObject;
|
||||
QLabel* pluginSettingsLbl;
|
||||
QFrame* pluginSettingsLine;
|
||||
QGroupBox* pluginSettingsGrp;
|
||||
QWidget* pluginConfigWidget;
|
||||
QString currentLibraryName;
|
||||
QString oldLibraryName;
|
||||
|
|
Loading…
Reference in a new issue