A text label where a url can specified. More...
#include <Widgets.h>
Public Slots | |
void | setLaunchExternal (bool l) |
void | setUrl (const QString &u) |
Signals | |
void | linkClicked (QString url) |
Public Member Functions | |
bool | launchExternal () const |
QString | url () const |
UrlLabel (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
virtual | ~UrlLabel () |
Protected Member Functions | |
void | mouseReleaseEvent (QMouseEvent *) |
Properties | |
bool | launchExternal |
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.
UrlLabel::UrlLabel | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = Qt::WindowFlags() |
||
) |
|
virtual |
bool Gui::UrlLabel::launchExternal | ( | ) | const |
|
signal |
Referenced by mouseReleaseEvent(), and SketcherGui::TaskSketcherMessages::TaskSketcherMessages().
|
protected |
References linkClicked().
|
slot |
|
slot |
Referenced by Gui::Dialog::AboutDialog::setupLabels().
QString UrlLabel::url | ( | ) | const |
|
readwrite |
|
readwrite |