24#include <QApplication>
29class DConfigDlgWdgModel;
44 void _k_slotCurrentPageChanged(
const QModelIndex&,
const QModelIndex&);
60 const int fontSize = qRound(QApplication::font().pointSize() * 1.4);
62 return (QString::fromLatin1(
"QLabel { font-size: %1pt; color: %2 }")
63 .arg(fontSize).arg(q->palette().color(QPalette::WindowText).name()));
81 styleSheet = QString::fromLatin1(
"QLabel { color: palette(%1); background: palette(%2); }")
82 .arg(q->palette().color(QPalette::HighlightedText).name())
83 .arg(q->palette().color(QPalette::Highlight).name());
106 case DConfigDlgTitle::InfoMessage:
108 return QLatin1String(
"dialog-information");
111 case DConfigDlgTitle::ErrorMessage:
113 return QLatin1String(
"dialog-error");
116 case DConfigDlgTitle::WarningMessage:
118 return QLatin1String(
"dialog-warning");
121 case DConfigDlgTitle::PlainMessage:
132 q->setVisible(
false);
138 QGridLayout* headerLayout =
nullptr;
139 QLabel* imageLabel =
nullptr;
140 QLabel* textLabel =
nullptr;
141 QLabel* commentLabel =
nullptr;
142 int autoHideTimeout = 0;
Definition dconfigdlgwidgets_p.h:50
QString commentStyleSheet() const
Definition dconfigdlgwidgets_p.h:66
QString textStyleSheet() const
Definition dconfigdlgwidgets_p.h:58
Private(DConfigDlgTitle *const parent)
Definition dconfigdlgwidgets_p.h:53
void _k_timeoutFinished()
Definition dconfigdlgwidgets_p.h:130
QString iconTypeToIconName(DConfigDlgTitle::MessageType type)
Get the icon name from the icon type.
Definition dconfigdlgwidgets_p.h:102
Definition dconfigdlgwidgets.h:175
MessageType
Definition dconfigdlgwidgets.h:201
Definition dconfigdlgview_p.h:67
Definition dconfigdlgmodels.h:238
Definition dconfigdlgwidgets_p.h:32
DConfigDlgWdgModel * model() const
Definition dconfigdlgwidgets_p.h:39
Page widget with many layouts (faces).
Definition dconfigdlgwidgets.h:38
Definition datefolderview.cpp:34