KDEUI
kmessagewidget.cpp
Go to the documentation of this file.
246 static void getColorsFromColorScheme(KColorScheme::BackgroundRole bgRole, QColor* bg, QColor* fg)
296 // DefaultFrameWidth returns the size of the external margin + border width. We know our border is 1px, so we subtract this from the frame normal QStyle FrameWidth to get our margin
void setCloseButtonVisible(bool visible)
Definition: kmessagewidget.cpp:380
Definition: kmessagewidget.h:104
int currentSize(KIconLoader::Group group) const
Returns the current size of the icon group.
Definition: kiconloader.cpp:1370
QBrush background(BackgroundRole=NormalBackground) const
Retrieve the requested background brush.
Definition: kcolorscheme.cpp:454
static KIconLoader * global()
Returns the global icon loader initialized with the global KComponentData.
QString text() const
KMessageWidget(QWidget *parent=0)
Constructs a KMessageWidget with the specified parent.
Definition: kmessagewidget.cpp:210
MessageType messageType() const
void setIcon(const QIcon &icon)
Define an icon to be shown on the left of the text.
Definition: kmessagewidget.cpp:447
void animatedHide()
Hide the widget using an animation, unless KGlobalSettings::graphicsEffectLevel() does not allow simp...
Definition: kmessagewidget.cpp:422
The dark color is in between mid() and shadow().
Definition: kcolorscheme.h:292
Definition: kmessagewidget.h:107
QBrush foreground(ForegroundRole=NormalText) const
Retrieve the requested foreground brush.
Definition: kcolorscheme.cpp:459
Eigth color; for example, success messages, trusted content.
Definition: kcolorscheme.h:180
bool isCloseButtonVisible() const
Definition: kmessagewidget.cpp:375
QColor shade(ShadeRole) const
Retrieve the requested shade color, using KColorScheme::background(KColorScheme::NormalBackground) as...
Definition: kcolorscheme.cpp:469
void animatedShow()
Show the widget using an animation, unless KGlobalSettings::graphicsEffectLevel() does not allow simp...
Definition: kmessagewidget.cpp:398
bool wordWrap() const
Sixth color; for example, errors, untrusted content, etc.
Definition: kcolorscheme.h:172
Definition: kstandardaction.h:141
Definition: kmessagewidget.h:106
void setMessageType(KMessageWidget::MessageType type)
Definition: kmessagewidget.cpp:253
BackgroundRole
This enumeration describes the background color being selected from the given set.
Definition: kcolorscheme.h:130
Definition: kmessagewidget.h:105
static GraphicEffects graphicEffectsLevel()
This function determines the desired level of effects on the GUI.
Definition: kglobalsettings.cpp:782
A widget to provide feedback or propose opportunistic interactions.
Definition: kmessagewidget.h:92
static void getColorsFromColorScheme(KColorScheme::BackgroundRole bgRole, QColor *bg, QColor *fg)
Definition: kmessagewidget.cpp:246
int heightForWidth(int width) const
Definition: kmessagewidget.cpp:331
Seventh color; for example, warnings, secure/encrypted content.
Definition: kcolorscheme.h:176
GUI with simple animations enabled.
Definition: kglobalsettings.h:467
KAction * close(const QObject *recvr, const char *slot, QObject *parent)
Close the current document.
Definition: kstandardaction.cpp:269
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.