Changeset View
Changeset View
Standalone View
Standalone View
src/gtkconfigkcmodule.cpp
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 51 | { | |||
---|---|---|---|---|---|
87 | 87 | | |||
88 | ui->gtk2Preview->setVisible(!gtk2Preview.isEmpty()); | 88 | ui->gtk2Preview->setVisible(!gtk2Preview.isEmpty()); | ||
89 | ui->gtk3Preview->setVisible(!gtk3Preview.isEmpty()); | 89 | ui->gtk3Preview->setVisible(!gtk3Preview.isEmpty()); | ||
90 | 90 | | |||
91 | //UI changes | 91 | //UI changes | ||
92 | connect(ui->cb_theme, SIGNAL(currentIndexChanged(int)), this, SLOT(appChanged())); | 92 | connect(ui->cb_theme, SIGNAL(currentIndexChanged(int)), this, SLOT(appChanged())); | ||
93 | connect(ui->cb_theme_gtk3, SIGNAL(currentIndexChanged(int)), this, SLOT(appChanged())); | 93 | connect(ui->cb_theme_gtk3, SIGNAL(currentIndexChanged(int)), this, SLOT(appChanged())); | ||
94 | connect(ui->checkBox_theme_gtk3_prefer_dark, &QAbstractButton::clicked, this, >KConfigKCModule::appChanged); | 94 | connect(ui->checkBox_theme_gtk3_prefer_dark, &QAbstractButton::clicked, this, >KConfigKCModule::appChanged); | ||
95 | connect(ui->buttonGroup_primary_button_warps_slider, SIGNAL(buttonToggled(QAbstractButton*, bool)), this, SLOT(appChanged())); | | |||
96 | 95 | | |||
97 | //preview updates | 96 | //preview updates | ||
98 | connect(ui->gtk2Preview, &QAbstractButton::clicked, this, >KConfigKCModule::runGtk2IfNecessary); | 97 | connect(ui->gtk2Preview, &QAbstractButton::clicked, this, >KConfigKCModule::runGtk2IfNecessary); | ||
99 | connect(ui->gtk3Preview, &QAbstractButton::clicked, this, >KConfigKCModule::runGtk3IfNecessary); | 98 | connect(ui->gtk3Preview, &QAbstractButton::clicked, this, >KConfigKCModule::runGtk3IfNecessary); | ||
100 | 99 | | |||
101 | QMenu* m = new QMenu(this); | 100 | QMenu* m = new QMenu(this); | ||
102 | m->addAction(QIcon::fromTheme("get-hot-new-stuff"), i18n("Download GTK2 themes..."), this, >KConfigKCModule::showThemeGHNS); | 101 | m->addAction(QIcon::fromTheme("get-hot-new-stuff"), i18n("Download GTK2 themes..."), this, >KConfigKCModule::showThemeGHNS); | ||
103 | m->addAction(QIcon::fromTheme("get-hot-new-stuff"), i18n("Download GTK3 themes..."), this, >KConfigKCModule::installThemeGTK3GHNS); | 102 | m->addAction(QIcon::fromTheme("get-hot-new-stuff"), i18n("Download GTK3 themes..."), this, >KConfigKCModule::installThemeGTK3GHNS); | ||
▲ Show 20 Lines • Show All 285 Lines • Show Last 20 Lines |