Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/konfiguratorpage.h
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 154 | /** | |||
---|---|---|---|---|---|
157 | * | 157 | * | ||
158 | * Sample:<br><br> | 158 | * Sample:<br><br> | ||
159 | * KonfiguratorEditBox *myEditBox = createEditBox( "class", "name", "default", parentWidget);<br> | 159 | * KonfiguratorEditBox *myEditBox = createEditBox( "class", "name", "default", parentWidget);<br> | ||
160 | * myLayout->addWidget( myEditBox, 0, 0 ); | 160 | * myLayout->addWidget( myEditBox, 0, 0 ); | ||
161 | * | 161 | * | ||
162 | * @param configGroup The class name used in KConfig (ex. "Archives") | 162 | * @param configGroup The class name used in KConfig (ex. "Archives") | ||
163 | * @param name The itemname used in KConfig (ex. "Do Tar") | 163 | * @param name The itemname used in KConfig (ex. "Do Tar") | ||
164 | * @param defaultValue The default value of the editbox | 164 | * @param defaultValue The default value of the editbox | ||
165 | * @param label The label that is associated to the editbox | ||||
165 | * @param parent Reference to the parent widget | 166 | * @param parent Reference to the parent widget | ||
166 | * @param restart The change of this parameter requires Krusader restart | 167 | * @param restart The change of this parameter requires Krusader restart | ||
167 | * @param toolTip Tooltip used for this editbox | 168 | * @param toolTip Tooltip used for this editbox | ||
168 | * @param page The subpage of a Konfigurator page (because of setDefaults) | 169 | * @param page The subpage of a Konfigurator page (because of setDefaults) | ||
169 | * | 170 | * | ||
170 | * @return reference to the newly created editbox | 171 | * @return reference to the newly created editbox | ||
171 | */ | 172 | */ | ||
172 | KonfiguratorEditBox *createEditBox(QString configGroup, QString name, QString defaultValue, | 173 | KonfiguratorEditBox *createEditBox(QString configGroup, QString name, QString defaultValue, | ||
173 | QWidget *parent = nullptr, bool restart = false, | 174 | QLabel *label, QWidget *parent = nullptr, bool restart = false, | ||
174 | const QString &toolTip = QString(), int page = FIRST_PAGE); | 175 | const QString &toolTip = QString(), int page = FIRST_PAGE); | ||
175 | 176 | | |||
176 | /** | 177 | /** | ||
177 | * Adds a new listbox item to the page. | 178 | * Adds a new listbox item to the page. | ||
178 | * <br>The listbox widget's name is QString(configGroup + "/" + name).ascii()<br> | 179 | * <br>The listbox widget's name is QString(configGroup + "/" + name).ascii()<br> | ||
179 | * | 180 | * | ||
180 | * Sample:<br><br> | 181 | * Sample:<br><br> | ||
181 | * QStringList valueList;<br> | 182 | * QStringList valueList;<br> | ||
▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines |