25 #ifndef DIGIKAM_DCONFIG_DLG_WIDGETS_PRIVATE_H
26 #define DIGIKAM_DCONFIG_DLG_WIDGETS_PRIVATE_H
34 #include <QApplication>
39 class DConfigDlgWdgModel;
54 void _k_slotCurrentPageChanged(
const QModelIndex&,
const QModelIndex&);
65 headerLayout (nullptr),
68 commentLabel (nullptr),
70 messageType (InfoMessage)
76 const int fontSize = qRound(QApplication::font().pointSize() * 1.4);
78 return (QString::fromLatin1(
"QLabel { font-size: %1pt; color: %2 }")
79 .arg(QString::number(fontSize), q->palette().color(QPalette::WindowText).name()));
96 styleSheet = QString::fromLatin1(
"QLabel { color: palette(%1); background: palette(%2); }")
97 .arg(q->palette().color(QPalette::HighlightedText).name())
98 .arg(q->palette().color(QPalette::Highlight).name());
119 return QLatin1String(
"dialog-information");
123 return QLatin1String(
"dialog-error");
127 return QLatin1String(
"dialog-warning");
139 q->setVisible(
false);
Definition: dconfigdlgwidgets_p.h:60
QString commentStyleSheet() const
Definition: dconfigdlgwidgets_p.h:82
QString textStyleSheet() const
Definition: dconfigdlgwidgets_p.h:74
QLabel * commentLabel
Definition: dconfigdlgwidgets_p.h:148
MessageType messageType
Definition: dconfigdlgwidgets_p.h:150
QLabel * imageLabel
Definition: dconfigdlgwidgets_p.h:146
DConfigDlgTitle * q
Definition: dconfigdlgwidgets_p.h:144
QGridLayout * headerLayout
Definition: dconfigdlgwidgets_p.h:145
QLabel * textLabel
Definition: dconfigdlgwidgets_p.h:147
Private(DConfigDlgTitle *const parent)
Definition: dconfigdlgwidgets_p.h:63
void _k_timeoutFinished()
Definition: dconfigdlgwidgets_p.h:137
QString iconTypeToIconName(DConfigDlgTitle::MessageType type)
Get the icon name from the icon type.
Definition: dconfigdlgwidgets_p.h:114
int autoHideTimeout
Definition: dconfigdlgwidgets_p.h:149
Definition: dconfigdlgwidgets.h:185
MessageType
Definition: dconfigdlgwidgets.h:211
@ WarningMessage
A warning the user should be alerted to.
Definition: dconfigdlgwidgets.h:214
@ InfoMessage
Information the user should be alerted to.
Definition: dconfigdlgwidgets.h:213
@ ErrorMessage
An error message.
Definition: dconfigdlgwidgets.h:215
@ PlainMessage
Normal comment.
Definition: dconfigdlgwidgets.h:212
Definition: dconfigdlgview_p.h:77
QAbstractItemModel * model
Definition: dconfigdlgview_p.h:104
Definition: dconfigdlgmodels.h:248
Definition: dconfigdlgwidgets_p.h:42
DConfigDlgWdgModel * model() const
Definition: dconfigdlgwidgets_p.h:49
Page widget with many layouts (faces).
Definition: dconfigdlgwidgets.h:48
Definition: datefolderview.cpp:43