Disable OpenGL options group when XRender mode has been chosen
svn path=/trunk/KDE/kdebase/workspace/; revision=705202
This commit is contained in:
parent
459ec5e9ce
commit
09d4266442
3 changed files with 9 additions and 1 deletions
|
@ -28,6 +28,8 @@ KWinAdvancedCompositingOptions::KWinAdvancedCompositingOptions(QWidget* parent,
|
|||
ui.setupUi(mainWidget);
|
||||
setMainWidget(mainWidget);
|
||||
|
||||
connect(ui.compositingType, SIGNAL(currentIndexChanged(int)), this, SLOT(compositingModeChanged()));
|
||||
|
||||
connect(ui.compositingType, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
|
||||
connect(ui.glMode, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
|
||||
connect(ui.glTextureFilter, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
|
||||
|
@ -51,6 +53,11 @@ void KWinAdvancedCompositingOptions::changed()
|
|||
enableButtonApply(true);
|
||||
}
|
||||
|
||||
void KWinAdvancedCompositingOptions::compositingModeChanged()
|
||||
{
|
||||
ui.glGroup->setEnabled(ui.compositingType->currentIndex() == 0);
|
||||
}
|
||||
|
||||
void KWinAdvancedCompositingOptions::load()
|
||||
{
|
||||
KConfigGroup config(mKWinConfig, "Compositing");
|
||||
|
|
|
@ -32,6 +32,7 @@ class KWinAdvancedCompositingOptions : public KDialog
|
|||
public slots:
|
||||
void changed();
|
||||
void save();
|
||||
void compositingModeChanged();
|
||||
|
||||
signals:
|
||||
void configSaved();
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox" >
|
||||
<widget class="QGroupBox" name="glGroup" >
|
||||
<property name="title" >
|
||||
<string>OpenGL options</string>
|
||||
</property>
|
||||
|
|
Loading…
Reference in a new issue