Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/konfiguratorpage.h
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Line(s) | 225 | /** | |||
---|---|---|---|---|---|
228 | * | 228 | * | ||
229 | * Sample:<br><br> | 229 | * Sample:<br><br> | ||
230 | * KonfiguratorFontChooser *myFontChooser = createFontChooser( "class", "name", QFont(), parentWidget );<br> | 230 | * KonfiguratorFontChooser *myFontChooser = createFontChooser( "class", "name", QFont(), parentWidget );<br> | ||
231 | * myLayout->addWidget( myFontChooser, 0, 0 ); | 231 | * myLayout->addWidget( myFontChooser, 0, 0 ); | ||
232 | * | 232 | * | ||
233 | * @param configGroup The class name used in KConfig (ex. "Archives") | 233 | * @param configGroup The class name used in KConfig (ex. "Archives") | ||
234 | * @param name The item name used in KConfig (ex. "Do Tar") | 234 | * @param name The item name used in KConfig (ex. "Do Tar") | ||
235 | * @param defaultValue The default value of the font chooser | 235 | * @param defaultValue The default value of the font chooser | ||
236 | * @param label The label that is associated to the font chooser | ||||
236 | * @param parent Reference to the parent widget | 237 | * @param parent Reference to the parent widget | ||
237 | * @param restart The change of this parameter requires Krusader restart | 238 | * @param restart The change of this parameter requires Krusader restart | ||
238 | * @param page The subpage of a Konfigurator page (because of setDefaults) | 239 | * @param page The subpage of a Konfigurator page (because of setDefaults) | ||
239 | * | 240 | * | ||
240 | * @return reference to the newly created font chooser | 241 | * @return reference to the newly created font chooser | ||
241 | */ | 242 | */ | ||
242 | KonfiguratorFontChooser *createFontChooser(QString configGroup, QString name, | 243 | KonfiguratorFontChooser *createFontChooser(QString configGroup, QString name, | ||
243 | const QFont& defaultValue, QWidget *parent = nullptr, | 244 | const QFont &defaultValue, QLabel *label, | ||
244 | bool restart = false, int page = FIRST_PAGE); | 245 | QWidget *parent = nullptr, bool restart = false, | ||
246 | const QString &toolTip = QString(), | ||||
247 | int page = FIRST_PAGE); | ||||
245 | 248 | | |||
246 | /** | 249 | /** | ||
247 | * Adds a new combobox item to the page. | 250 | * Adds a new combobox item to the page. | ||
248 | * <br>The combobox widget's name is QString(configGroup + "/" + name).ascii()<br> | 251 | * <br>The combobox widget's name is QString(configGroup + "/" + name).ascii()<br> | ||
249 | * | 252 | * | ||
250 | * Sample:<br><br> | 253 | * Sample:<br><br> | ||
251 | * KONFIGURATOR_NAME_VALUE_PAIR comboInfo[] =<br> | 254 | * KONFIGURATOR_NAME_VALUE_PAIR comboInfo[] =<br> | ||
252 | * {{ i18n( "combo text1" ), "value1" },<br> | 255 | * {{ i18n( "combo text1" ), "value1" },<br> | ||
▲ Show 20 Lines • Show All 270 Lines • Show Last 20 Lines |