Disable OpenGL options group when XRender mode has been chosen

svn path=/trunk/KDE/kdebase/workspace/; revision=705202
This commit is contained in:
Rivo Laks 2007-08-27 12:53:56 +00:00
parent 459ec5e9ce
commit 09d4266442
3 changed files with 9 additions and 1 deletions

View file

@ -28,6 +28,8 @@ KWinAdvancedCompositingOptions::KWinAdvancedCompositingOptions(QWidget* parent,
ui.setupUi(mainWidget); ui.setupUi(mainWidget);
setMainWidget(mainWidget); setMainWidget(mainWidget);
connect(ui.compositingType, SIGNAL(currentIndexChanged(int)), this, SLOT(compositingModeChanged()));
connect(ui.compositingType, SIGNAL(currentIndexChanged(int)), this, SLOT(changed())); connect(ui.compositingType, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
connect(ui.glMode, SIGNAL(currentIndexChanged(int)), this, SLOT(changed())); connect(ui.glMode, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
connect(ui.glTextureFilter, SIGNAL(currentIndexChanged(int)), this, SLOT(changed())); connect(ui.glTextureFilter, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
@ -51,6 +53,11 @@ void KWinAdvancedCompositingOptions::changed()
enableButtonApply(true); enableButtonApply(true);
} }
void KWinAdvancedCompositingOptions::compositingModeChanged()
{
ui.glGroup->setEnabled(ui.compositingType->currentIndex() == 0);
}
void KWinAdvancedCompositingOptions::load() void KWinAdvancedCompositingOptions::load()
{ {
KConfigGroup config(mKWinConfig, "Compositing"); KConfigGroup config(mKWinConfig, "Compositing");

View file

@ -32,6 +32,7 @@ class KWinAdvancedCompositingOptions : public KDialog
public slots: public slots:
void changed(); void changed();
void save(); void save();
void compositingModeChanged();
signals: signals:
void configSaved(); void configSaved();

View file

@ -36,7 +36,7 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupBox" > <widget class="QGroupBox" name="glGroup" >
<property name="title" > <property name="title" >
<string>OpenGL options</string> <string>OpenGL options</string>
</property> </property>