Changeset View
Changeset View
Standalone View
Standalone View
src/kmessagewidget.h
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Line(s) | 231 | public Q_SLOTS: | |||
---|---|---|---|---|---|
239 | void setText(const QString &text); | 239 | void setText(const QString &text); | ||
240 | 240 | | |||
241 | /** | 241 | /** | ||
242 | * Set word wrap to @p wordWrap. If word wrap is enabled, the text() | 242 | * Set word wrap to @p wordWrap. If word wrap is enabled, the text() | ||
243 | * of the message widget is wrapped to fit the available width. | 243 | * of the message widget is wrapped to fit the available width. | ||
244 | * If word wrap is disabled, the message widget's minimum size is | 244 | * If word wrap is disabled, the message widget's minimum size is | ||
245 | * such that the entire text fits. | 245 | * such that the entire text fits. | ||
246 | * | 246 | * | ||
247 | * By default word wrap is disabled. | ||||
248 | * | ||||
247 | * @param wordWrap disable/enable word wrap | 249 | * @param wordWrap disable/enable word wrap | ||
248 | * @see wordWrap() | 250 | * @see wordWrap() | ||
249 | */ | 251 | */ | ||
250 | void setWordWrap(bool wordWrap); | 252 | void setWordWrap(bool wordWrap); | ||
251 | 253 | | |||
252 | /** | 254 | /** | ||
253 | * Set the visibility of the close button. If @p visible is @e true, | 255 | * Set the visibility of the close button. If @p visible is @e true, | ||
254 | * a close button is shown that calls animatedHide() if clicked. | 256 | * a close button is shown that calls animatedHide() if clicked. | ||
255 | * | 257 | * | ||
258 | * By default the close button is set to be visible. | ||||
davidre: I think the close button is visible by default, isn't it? | |||||
Good catch. I fooled myself with having qt designer showing me still the file version with <property name="closeButtonVisible"> <bool>false</bool> </property> where I though it was the clean one. kossebau: Good catch. I fooled myself with having qt designer showing me still the file version with
```… | |||||
259 | * | ||||
256 | * @see closeButtonVisible(), animatedHide() | 260 | * @see closeButtonVisible(), animatedHide() | ||
257 | */ | 261 | */ | ||
258 | void setCloseButtonVisible(bool visible); | 262 | void setCloseButtonVisible(bool visible); | ||
259 | 263 | | |||
260 | /** | 264 | /** | ||
261 | * Set the message type to @p type. | 265 | * Set the message type to @p type. | ||
262 | * By default, the message type is set to KMessageWidget::Information. | 266 | * By default, the message type is set to KMessageWidget::Information. | ||
263 | * Appropriate colors are chosen to mimic the appearance of Kirigami's | 267 | * Appropriate colors are chosen to mimic the appearance of Kirigami's | ||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |
I think the close button is visible by default, isn't it?