30 QBoxLayout *getContentLayout();
33 bool onButtonClickedClose =
true;
37 Qt::TextFormat textFormat;
43 QHBoxLayout *iconLayout;
44 QVBoxLayout *contentLayout;
45 QWidget *contentWidget =
nullptr;
46 QHBoxLayout *buttonLayout;
47 const QScreen *targetScreen =
nullptr;
48 QSpacerItem *spacer =
nullptr;
50 QList<QAbstractButton*> buttonList;
51 QList<QWidget*> contentList;
53 QPointer<QAbstractButton> defaultButton;
55 int clickedButtonIndex;
58 const QScreen *getScreen()
const;
59 QString trimTag(QString origin)
const;
60 QMap<int, QString> scanTags(
const QString origin)
const;
61 QString elideString(QString str,
const QFontMetrics &fm,
int width)
const;
64 void setSpacer(
int height);
66 void _q_onButtonClicked();
67 void _q_defaultButtonTriggered();