specialized QToolButton which takes the contents of its buddy as webpage adress (URL) and opens it in the system's standard application
More...
#include <jkqtespecialtoolbutton.h>
specialized QToolButton which takes the contents of its buddy as webpage adress (URL) and opens it in the system's standard application
Usage example:
QLineEdit* lineUrl=new QLineEdit("https://github.com/jkriege2/JKQtExtras", wid);
◆ JKQTEURLOpenToolButton()
JKQTEURLOpenToolButton::JKQTEURLOpenToolButton |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~JKQTEURLOpenToolButton()
virtual JKQTEURLOpenToolButton::~JKQTEURLOpenToolButton |
( |
| ) |
|
|
virtual |
◆ buddy() [1/2]
QLineEdit* JKQTEURLOpenToolButton::buddy |
( |
| ) |
|
buddy associated with this button
◆ buddy() [2/2]
const QLineEdit* JKQTEURLOpenToolButton::buddy |
( |
| ) |
const |
buddy associated with this button
◆ openBuddyContents
void JKQTEURLOpenToolButton::openBuddyContents |
( |
| ) |
|
|
protectedslot |
opens the contents of the buddy() as URL
This internally calls QDesktopServices::openUrl(QUrl(buddyContents,QUrl::TolerantMode))
;
◆ setBuddy()
void JKQTEURLOpenToolButton::setBuddy |
( |
QLineEdit * |
b | ) |
|
set the buddy widget, which provides the contents
◆ m_buddy
QLineEdit* JKQTEURLOpenToolButton::m_buddy |
|
private |
The documentation for this class was generated from the following file: