No point in populating the compositingType combo ourselves, do it in Designer instead

svn path=/trunk/KDE/kdebase/workspace/; revision=690305
This commit is contained in:
Rivo Laks 2007-07-20 16:51:24 +00:00
parent 887caff1c4
commit 5db0b94027
2 changed files with 12 additions and 4 deletions

View file

@ -28,9 +28,6 @@ KWinAdvancedCompositingOptions::KWinAdvancedCompositingOptions(QWidget* parent,
ui.setupUi(mainWidget);
setMainWidget(mainWidget);
ui.compositingType->insertItem(0, i18n("OpenGL"));
ui.compositingType->insertItem(1, i18n("XRender"));
connect(ui.compositingType, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
connect(this, SIGNAL(okClicked()), this, SLOT(save()));

View file

@ -23,7 +23,18 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="compositingType" />
<widget class="QComboBox" name="compositingType" >
<item>
<property name="text" >
<string>OpenGL</string>
</property>
</item>
<item>
<property name="text" >
<string>XRender</string>
</property>
</item>
</widget>
</item>
</layout>
</item>