[libcalamaresui] Convenience API

This commit is contained in:
Adriaan de Groot 2022-04-16 12:02:56 +02:00
parent 2ccd59e90b
commit 1f7dd2fcd5

View File

@ -88,6 +88,8 @@ public:
* for text below the spinner and text in the middle. * for text below the spinner and text in the middle.
*/ */
void setAlignment(Qt::AlignmentFlag align); void setAlignment(Qt::AlignmentFlag align);
/// Convenience to set text-in-the-middle (@c true) or text-at-bottom (@c false)
void setCenteredText(bool centered) { setAlignment(centered ? Qt::AlignmentFlag::AlignVCenter : Qt::AlignmentFlag::AlignBottom ); }
QColor color() const; QColor color() const;
QColor textColor() const; QColor textColor() const;