Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/konfiguratorpage.cpp
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Line(s) | 97 | if (!toolTip.isEmpty()) { | |||
---|---|---|---|---|---|
101 | spinBox->setToolTip(toolTip); | 101 | spinBox->setToolTip(toolTip); | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | registerObject(spinBox->extension()); | 104 | registerObject(spinBox->extension()); | ||
105 | return spinBox; | 105 | return spinBox; | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | KonfiguratorEditBox* KonfiguratorPage::createEditBox(QString configGroup, QString name, | 108 | KonfiguratorEditBox* KonfiguratorPage::createEditBox(QString configGroup, QString name, | ||
109 | QString defaultValue, QWidget *parent, bool restart, const QString &toolTip, int page) | 109 | QString defaultValue, QLabel *label, QWidget *parent, bool restart, | ||
110 | const QString &toolTip, int page) | ||||
110 | { | 111 | { | ||
111 | KonfiguratorEditBox *editBox = new KonfiguratorEditBox(std::move(configGroup), std::move(name), std::move(defaultValue), parent, | 112 | KonfiguratorEditBox *editBox = new KonfiguratorEditBox(std::move(configGroup), std::move(name), std::move(defaultValue), parent, | ||
112 | restart, page); | 113 | restart, page); | ||
113 | if (!toolTip.isEmpty()) { | 114 | if (!toolTip.isEmpty()) { | ||
115 | label->setWhatsThis(toolTip); | ||||
116 | label->setToolTip(toolTip); | ||||
114 | editBox->setWhatsThis(toolTip); | 117 | editBox->setWhatsThis(toolTip); | ||
115 | editBox->setToolTip(toolTip); | 118 | editBox->setToolTip(toolTip); | ||
116 | } | 119 | } | ||
117 | 120 | | |||
118 | registerObject(editBox->extension()); | 121 | registerObject(editBox->extension()); | ||
119 | return editBox; | 122 | return editBox; | ||
120 | } | 123 | } | ||
121 | 124 | | |||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |