Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/konfiguratorpage.cpp
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Line(s) | 221 | { | |||
---|---|---|---|---|---|
250 | } | 250 | } | ||
251 | 251 | | |||
252 | radioWidget->loadInitialValue(); | 252 | radioWidget->loadInitialValue(); | ||
253 | registerObject(radioWidget->extension()); | 253 | registerObject(radioWidget->extension()); | ||
254 | return radioWidget; | 254 | return radioWidget; | ||
255 | } | 255 | } | ||
256 | 256 | | |||
257 | KonfiguratorFontChooser *KonfiguratorPage::createFontChooser(QString configGroup, QString name, | 257 | KonfiguratorFontChooser *KonfiguratorPage::createFontChooser(QString configGroup, QString name, | ||
258 | const QFont& defaultValue, QWidget *parent, bool restart, int page) | 258 | const QFont &defaultValue, QLabel *label, QWidget *parent, bool restart, | ||
259 | const QString &toolTip, int page) | ||||
259 | { | 260 | { | ||
260 | KonfiguratorFontChooser *fontChooser = new KonfiguratorFontChooser(std::move(configGroup), std::move(name), defaultValue, parent, | 261 | KonfiguratorFontChooser *fontChooser = new KonfiguratorFontChooser(std::move(configGroup), std::move(name), defaultValue, parent, | ||
261 | restart, page); | 262 | restart, page); | ||
263 | if (!toolTip.isEmpty()) { | ||||
264 | label->setWhatsThis(toolTip); | ||||
265 | label->setToolTip(toolTip); | ||||
266 | fontChooser->setWhatsThis(toolTip); | ||||
267 | fontChooser->setToolTip(toolTip); | ||||
268 | } | ||||
262 | 269 | | |||
263 | registerObject(fontChooser->extension()); | 270 | registerObject(fontChooser->extension()); | ||
264 | return fontChooser; | 271 | return fontChooser; | ||
265 | } | 272 | } | ||
266 | 273 | | |||
267 | KonfiguratorComboBox *KonfiguratorPage::createComboBox(QString configGroup, QString name, QString defaultValue, | 274 | KonfiguratorComboBox *KonfiguratorPage::createComboBox(QString configGroup, QString name, QString defaultValue, | ||
268 | KONFIGURATOR_NAME_VALUE_PAIR *params, int paramNum, QLabel *label, QWidget *parent, | 275 | KONFIGURATOR_NAME_VALUE_PAIR *params, int paramNum, QLabel *label, QWidget *parent, | ||
269 | bool restart, bool editable, const QString &toolTip, int page) | 276 | bool restart, bool editable, const QString &toolTip, int page) | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |