![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
This class provides a widget often used for DConfigDlg titles. More...
Public Types | |
enum | ImageAlignment { ImageLeft , ImageRight } |
Possible title pixmap alignments. More... | |
enum | MessageType { PlainMessage , InfoMessage , WarningMessage , ErrorMessage } |
Comment message types. More... | |
Public Slots | |
void | setAutoHideTimeout (int msecs) |
Set the autohide timeout of the label Set value to 0 to disable autohide, which is the default. | |
void | setComment (const QString &comment, MessageType type=PlainMessage) |
void | setPixmap (const QIcon &icon, ImageAlignment alignment=ImageRight) |
void | setPixmap (const QPixmap &pixmap, ImageAlignment alignment=ImageRight) |
void | setPixmap (const QString &icon, ImageAlignment alignment=ImageRight) |
void | setPixmap (MessageType type, ImageAlignment alignment=ImageRight) |
void | setText (const QString &text, MessageType type) |
void | setText (const QString &text, Qt::Alignment alignment=Qt::AlignLeft|Qt::AlignVCenter) |
Public Member Functions | |
DConfigDlgTitle (QWidget *const parent=nullptr) | |
Constructs a title widget with the given. | |
int | autoHideTimeout () const |
Get the current timeout value in milliseconds. | |
QString | comment () const |
QPixmap | pixmap () const |
void | setBuddy (QWidget *const buddy) |
Sets this label's buddy to buddy. | |
void | setWidget (QWidget *const widget) |
QString | text () const |
Protected Member Functions | |
void | changeEvent (QEvent *) override |
bool | eventFilter (QObject *, QEvent *) override |
void | showEvent (QShowEvent *) override |
Properties | |
int | autoHideTimeout |
QString | comment |
QPixmap | pixmap |
QString | text |
DConfigDlgTitle uses the general application font at 1.4 times its size to style the text.
DConfigDlgTitle is very simple to use. You can either use its default text (and pixmap) properties or display your own widgets in the title widget.
|
explicit |
parent | . |
int Digikam::DConfigDlgTitle::autoHideTimeout | ( | ) | const |
QString Digikam::DConfigDlgTitle::comment | ( | ) | const |
QPixmap Digikam::DConfigDlgTitle::pixmap | ( | ) | const |
|
slot |
msecs | timeout value in milliseconds |
void Digikam::DConfigDlgTitle::setBuddy | ( | QWidget *const | buddy | ) |
When the user presses the shortcut key indicated by the label in this title widget, the keyboard focus is transferred to the label's buddy widget.
buddy | the widget to activate when the shortcut key is activated |
|
slot |
comment | Text displayed beneath the main title as a comment. It can either be plain text or rich text. |
type | The sort of message it is. |
|
slot |
icon | The pixmap to display in the header. The pixmap is by default right, but |
alignment | can be used to display it also left. |
|
slot |
pixmap | Pixmap displayed in the header. The pixmap is by default right, but |
alignment | can be used to display it also left. |
|
slot |
icon | name of the icon to display in the header. The pixmap is by default right, but |
alignment | can be used to display it also left. |
|
slot |
type | The message type to display as pixmap in the header. The message is by default right, but |
alignment | can be used to display it also left. |
|
slot |
text | Text displayed on the label. It can either be plain text or rich text. If it is plain text, the text is displayed as a bold title text. |
type | The sort of message it is; will also set the icon accordingly |
|
slot |
text | Text displayed on the label. It can either be plain text or rich text. If it is plain text, the text is displayed as a bold title text. |
alignment | Alignment of the text. Default is left and vertical centered. |
void Digikam::DConfigDlgTitle::setWidget | ( | QWidget *const | widget | ) |
widget | the widget displayed on the title widget. |
QString Digikam::DConfigDlgTitle::text | ( | ) | const |