KDEUI
kmessagewidget.cpp
Go to the documentation of this file.
250 static void getColorsFromColorScheme(KColorScheme::BackgroundRole bgRole, QColor* bg, QColor* fg)
300 // 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:384
Definition: kmessagewidget.h:104
void setOpacity(qreal opacity)
const QBrush & highlight() const
Type type() const
const QPalette & palette() const
int currentSize(KIconLoader::Group group) const
Returns the current size of the icon group.
Definition: kiconloader.cpp:1370
QColor darker(int factor) const
QBrush background(BackgroundRole=NormalBackground) const
Retrieve the requested background brush.
Definition: kcolorscheme.cpp:454
void updateGeometry()
void fill(const QColor &color)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
QString name() const
void addAction(QAction *action)
static KIconLoader * global()
Returns the global icon loader initialized with the global KComponentData.
void setDefaultAction(QAction *action)
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
QString text() const
KMessageWidget(QWidget *parent=0)
Constructs a KMessageWidget with the specified parent.
Definition: kmessagewidget.cpp:214
bool isVisible() const
void ensurePolished() const
MessageType messageType() const
void setIcon(const QIcon &icon)
Define an icon to be shown on the left of the text.
Definition: kmessagewidget.cpp:451
void animatedHide()
Hide the widget using an animation, unless KGlobalSettings::graphicsEffectLevel() does not allow simp...
Definition: kmessagewidget.cpp:426
int width() const
const QColor & color() const
The dark color is in between mid() and shadow().
Definition: kcolorscheme.h:292
QSize size() const
Definition: kmessagewidget.h:107
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void showEvent(QShowEvent *event)
QBrush foreground(ForegroundRole=NormalText) const
Retrieve the requested foreground brush.
Definition: kcolorscheme.cpp:459
virtual void paintEvent(QPaintEvent *)
Eigth color; for example, success messages, trusted content.
Definition: kcolorscheme.h:180
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
bool isCloseButtonVisible() const
Definition: kmessagewidget.cpp:379
QColor shade(ShadeRole) const
Retrieve the requested shade color, using KColorScheme::background(KColorScheme::NormalBackground) as...
Definition: kcolorscheme.cpp:469
void hide()
void animatedShow()
Show the widget using an animation, unless KGlobalSettings::graphicsEffectLevel() does not allow simp...
Definition: kmessagewidget.cpp:402
void setSizePolicy(QSizePolicy)
bool wordWrap() const
void setShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Set the shortcut for this action.
Definition: kaction.cpp:198
QColor lighter(int factor) const
Sixth color; for example, errors, untrusted content, etc.
Definition: kcolorscheme.h:172
Definition: kstandardaction.h:141
void addStretch(int stretch)
void setFixedHeight(int h)
void addItem(QLayoutItem *item, int row, int column, int rowSpan, int columnSpan, QFlags< Qt::AlignmentFlag > alignment)
Definition: kmessagewidget.h:106
void setMessageType(KMessageWidget::MessageType type)
Definition: kmessagewidget.cpp:257
BackgroundRole
This enumeration describes the background color being selected from the given set.
Definition: kcolorscheme.h:130
void removeAction(QAction *action)
Definition: kmessagewidget.h:105
void setMinimumHeight(int minh)
void show()
static GraphicEffects graphicEffectsLevel()
This function determines the desired level of effects on the GUI.
Definition: kglobalsettings.cpp:782
virtual void resizeEvent(QResizeEvent *event)
A widget to provide feedback or propose opportunistic interactions.
Definition: kmessagewidget.h:92
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
static void getColorsFromColorScheme(KColorScheme::BackgroundRole bgRole, QColor *bg, QColor *fg)
Definition: kmessagewidget.cpp:250
void setToolButtonStyle(Qt::ToolButtonStyle style)
int heightForWidth(int width) const
Definition: kmessagewidget.cpp:335
Seventh color; for example, warnings, secure/encrypted content.
Definition: kcolorscheme.h:176
virtual bool event(QEvent *e)
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
void setHeightForWidth(bool dependent)
const QBrush & highlightedText() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.