26 #include <tdelibs_export.h>
74 TQ_PROPERTY (TQString url READ url WRITE setURL)
75 TQ_PROPERTY (TQString tipText READ tipText WRITE setTipText )
76 TQ_PROPERTY (TQPixmap altPixmap READ altPixmap WRITE setAltPixmap)
77 TQ_PROPERTY (
bool glowEnabled READ isGlowEnabled WRITE setGlow )
78 TQ_PROPERTY (
bool floatEnabled READ isFloatEnabled WRITE setFloat )
79 TQ_PROPERTY (
bool useTips READ useTips WRITE setUseTips )
80 TQ_PROPERTY (
bool useCursor READ useCursor WRITE setUseCursor )
89 KURLLabel (TQWidget* parent = 0L,
const char* name = 0L);
103 KURLLabel (
const TQString& url,
const TQString& text = TQString::null,
104 TQWidget* parent = 0L,
const char* name = 0L);
114 const TQString& url ()
const;
119 const TQString& tipText ()
const;
126 bool useTips ()
const;
133 bool useCursor ()
const;
139 bool isGlowEnabled ()
const;
149 bool isFloatEnabled ()
const;
154 const TQPixmap* altPixmap ()
const;
159 virtual void setMargin (
int margin );
166 virtual void setFocusPolicy ( TQWidget::FocusPolicy policy );
172 virtual void setSizePolicy ( TQSizePolicy );
181 void setUnderline (
bool on =
true);
188 void setURL (
const TQString& url);
193 virtual void setFont (
const TQFont&);
202 void setUseTips (
bool on =
true);
211 void setTipText (
const TQString& tip);
219 void setHighlightedColor(
const TQColor& highcolor);
226 void setHighlightedColor(
const TQString& highcolor);
235 void setSelectedColor(
const TQColor& selcolor);
242 void setSelectedColor(
const TQString& selcolor);
247 virtual void setCursor (
const TQCursor& cursor );
252 virtual void unsetCursor ();
264 void setUseCursor (
bool on, TQCursor* cursor = 0L);
273 void setGlow (
bool glow =
true);
286 void setFloat (
bool do_float =
true);
297 void setAltPixmap (
const TQPixmap& altPix);
366 virtual void mouseReleaseEvent ( TQMouseEvent * e );
371 virtual void enterEvent (TQEvent*);
376 virtual void leaveEvent (TQEvent*);
381 virtual bool event (TQEvent *e);
386 TQRect activeRect()
const;
401 void setLinkColor (
const TQColor& col);
404 virtual void virtual_hook(
int id,
void* data );
A drop-in replacement for TQLabel that displays hyperlinks.
void middleClickedURL(const TQString &url)
Emitted when the user clicked the middle mouse button on this label.
void enteredURL()
Emitted when the mouse has passed over the label.
void rightClickedURL()
Emitted when the user clicked the right mouse button on this label.
void middleClickedURL()
Emitted when the user clicked the left mouse button on this label.
void rightClickedURL(const TQString &url)
Emitted when the user clicked the right mouse button on this label.
void enteredURL(const TQString &url)
Emitted when the mouse has passed over the label.
void leftClickedURL(const TQString &url)
Emitted when the user clicked the left mouse button on this label.
void leftURL()
Emitted when the mouse is no longer over the label.
void leftURL(const TQString &url)
Emitted when the mouse is no longer over the label.
void leftClickedURL()
Emitted when the user clicked the left mouse button on this label.