KDEUI
Go to the documentation of this file.
26 #include <QtGui/QColor>
27 #include <QtGui/QLabel>
28 #include <QtGui/QPixmap>
72 Q_PROPERTY(QString url READ url WRITE setUrl)
73 Q_PROPERTY(QString tipText READ tipText WRITE setTipText )
74 Q_PROPERTY(QPixmap alternatePixmap READ alternatePixmap WRITE setAlternatePixmap )
75 Q_PROPERTY(
bool glowEnabled READ isGlowEnabled WRITE setGlowEnabled )
76 Q_PROPERTY(
bool floatEnabled READ isFloatEnabled WRITE setFloatEnabled )
77 Q_PROPERTY(
bool useTips READ useTips WRITE setUseTips )
78 Q_PROPERTY(
bool useCursor READ useCursor WRITE setUseCursor )
100 explicit KUrlLabel(
const QString& url,
const QString& text = QString(),
116 QString tipText()
const;
123 bool useTips()
const;
130 bool useCursor()
const;
136 bool isGlowEnabled()
const;
146 bool isFloatEnabled()
const;
151 const QPixmap* alternatePixmap()
const;
160 void setUnderline(
bool on =
true );
167 void setUrl(
const QString& url );
172 virtual void setFont(
const QFont &font );
181 void setUseTips (
bool on =
true );
190 void setTipText(
const QString& tip );
198 void setHighlightedColor(
const QColor& highcolor );
205 void setHighlightedColor(
const QString& highcolor );
214 void setSelectedColor(
const QColor& color );
221 void setSelectedColor(
const QString& color );
233 void setUseCursor(
bool on,
QCursor* cursor = 0L );
242 void setGlowEnabled(
bool glow =
true );
255 void setFloatEnabled(
bool do_float =
true );
266 void setAlternatePixmap(
const QPixmap& pixmap );
334 virtual void mouseReleaseEvent( QMouseEvent* );
339 virtual void enterEvent( QEvent* );
344 virtual void leaveEvent( QEvent* );
349 virtual bool event( QEvent* );
355 Q_PRIVATE_SLOT( d,
void updateColor() )
void leftUrl()
Emitted when the mouse is no longer over the label.
void rightClickedUrl(const QString &url)
Emitted when the user clicked the right mouse button on this label.
A drop-in replacement for QLabel that displays hyperlinks.
void rightClickedUrl()
Emitted when the user clicked the right mouse button on this label.
void leftClickedUrl()
Emitted when the user clicked the left mouse button on this label.
void leftUrl(const QString &url)
Emitted when the mouse is no longer over the label.
void leftClickedUrl(const QString &url)
Emitted when the user clicked the left mouse button on this label.
void middleClickedUrl()
Emitted when the user clicked the left mouse button on this label.
void middleClickedUrl(const QString &url)
Emitted when the user clicked the middle mouse button on this label.
void enteredUrl(const QString &url)
Emitted when the mouse has passed over the label.
void enteredUrl()
Emitted when the mouse has passed over the label.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.