A text label where a url can specified. More...
#include <Widgets.h>
Public Slots | |
void | setUrl (const QString &u) |
Public Member Functions | |
QString | url () const |
UrlLabel (QWidget *parent=0, Qt::WFlags f=0) | |
virtual | ~UrlLabel () |
Protected Member Functions | |
void | enterEvent (QEvent *) |
void | leaveEvent (QEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
Properties | |
QString | url |
A text label where a url can specified.
When the user clicks on the text label the system browser gets opened with the specified url.
This can be used for e.g. in the about dialog where the url of the maintainer of an application can be specified.
Definition at line 168 of file Widgets.h.
UrlLabel::UrlLabel | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | f = 0 | |||
) |
Definition at line 426 of file Widgets.cpp.
UrlLabel::~UrlLabel | ( | ) | [virtual] |
Definition at line 433 of file Widgets.cpp.
void UrlLabel::enterEvent | ( | QEvent * | ) | [protected] |
Definition at line 437 of file Widgets.cpp.
void UrlLabel::leaveEvent | ( | QEvent * | ) | [protected] |
Definition at line 442 of file Widgets.cpp.
void UrlLabel::mouseReleaseEvent | ( | QMouseEvent * | ) | [protected] |
Definition at line 447 of file Widgets.cpp.
References result.
void UrlLabel::setUrl | ( | const QString & | u | ) | [slot] |
Definition at line 472 of file Widgets.cpp.
Referenced by Gui::Dialog::AboutDialog::setupLabels().
QString Gui::UrlLabel::url | ( | ) | const |