KDEUI
kurllabel.cpp
Go to the documentation of this file.
34 linkColor( KColorScheme(QPalette::Active, KColorScheme::Window).foreground(KColorScheme::LinkText).color() ),
35 highlightedLinkColor( KColorScheme(QPalette::Active, KColorScheme::Window).foreground(KColorScheme::ActiveText).color() ),
56 if ( !(glowEnabled || floatEnabled) || !parent->rect().contains( parent->mapFromGlobal( QCursor::pos() ) ) )
321 palette.setColor( QPalette::Foreground, this->palette().color( QPalette::Active, QPalette::Foreground ) );
324 d->linkColor = KColorScheme(QPalette::Active, KColorScheme::Window).foreground(KColorScheme::LinkText).color();
void setBrush(ColorRole role, const QBrush &brush)
Type type() const
const QPalette & palette() const
QCursor cursor() const
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void setHighlightedColor(const QColor &highcolor)
Sets the highlight color.
Definition: kurllabel.cpp:216
bool isFloatEnabled() const
This feature is very similar to the "glow" feature in that the color of the label switches to the sel...
Definition: kurllabel.cpp:257
virtual void leaveEvent(QEvent *)
Overridden for internal reasons; the API remains unaffected.
Definition: kurllabel.cpp:296
int timeout
bool isGlowEnabled() const
When this is on, the text will switch to the selected color whenever the mouse passes over it...
Definition: kurllabel.cpp:252
const QPixmap * pixmap() const
void setUnderline(bool enable)
void middleClickedUrl()
Emitted when the user clicked the left mouse button on this label.
const QPixmap * alternatePixmap() const
void rightClickedUrl()
Emitted when the user clicked the right mouse button on this label.
const QColor & color() const
virtual bool event(QEvent *e)
bool useTips() const
QBrush foreground(ForegroundRole=NormalText) const
Retrieve the requested foreground brush.
Definition: kcolorscheme.cpp:459
const QBrush & brush(ColorGroup group, ColorRole role) const
Qt::MouseButton button() const
virtual void enterEvent(QEvent *event)
void setFloatEnabled(bool do_float=true)
Turns on or off the "float" feature.
Definition: kurllabel.cpp:247
const QFont & font() const
QPoint pos()
void leftClickedUrl()
Emitted when the user clicked the left mouse button on this label.
QWidget * parentWidget() const
virtual void mouseReleaseEvent(QMouseEvent *ev)
virtual void enterEvent(QEvent *)
Overridden for internal reasons; the API remains unaffected.
Definition: kurllabel.cpp:272
void setUseCursor(bool on, QCursor *cursor=0L)
Turns the custom cursor feature on or off.
Definition: kurllabel.cpp:169
void setToolTip(const QString &)
bool useCursor() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
virtual void leaveEvent(QEvent *event)
void setGlowEnabled(bool glow=true)
Turns on or off the "glow" feature.
Definition: kurllabel.cpp:242
virtual void setFont(const QFont &font)
Overridden for internal reasons; the API remains unaffected.
Definition: kurllabel.cpp:139
virtual void mouseReleaseEvent(QMouseEvent *)
Overridden for internal reasons; the API remains unaffected.
Definition: kurllabel.cpp:111
void setTipText(const QString &tip)
Specifies what text to display when tooltips are turned on.
Definition: kurllabel.cpp:199
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 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:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.