Commit 8455efa2 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Theming: Hide the buttons in the theme selector

They are not supported in 3.3.

Change-Id: Iecd52e4273b9b9f5855df37e28739135f1725a2b
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@theqtcompany.com>
parent 682dd3d5
......@@ -2,6 +2,14 @@
<ui version="4.0">
<class>Core::Internal::ThemeSettings</class>
<widget class="QWidget" name="Core::Internal::ThemeSettings">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>338</width>
<height>40</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>0</number>
......@@ -18,14 +26,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QComboBox" name="themeComboBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QComboBox" name="themeComboBox"/>
</item>
<item>
<widget class="QPushButton" name="renameButton">
......@@ -48,6 +49,19 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
......
......@@ -181,7 +181,11 @@ ThemeSettingsPrivate::ThemeSettingsPrivate(QWidget *widget)
{
m_currentTheme = ThemeEntry(creatorTheme()->name(), creatorTheme()->filePath(), true);
m_ui->setupUi(widget);
m_ui->editor->hide(); // TODO: Restore after improving the editor
// TODO: Restore the editor and the buttons after improving the editor
m_ui->editor->hide();
m_ui->copyButton->hide();
m_ui->deleteButton->hide();
m_ui->renameButton->hide();
m_ui->themeComboBox->setModel(m_themeListModel);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment