Toolbox Qt
Loading...
Searching...
No Matches
richlink.h
1#ifndef TBQ_CORE_RICHLINK_H
2#define TBQ_CORE_RICHLINK_H
3
4#include "toolboxqt/toolboxqt_global.h"
5
6#include <QUrl>
7
8namespace tbq
9{
10
11class TOOLBOXQT_EXPORT RichLink
12{
13
14public:
16 explicit RichLink(const QUrl &link, const QString &display = QString());
17
18public:
19 void setLink(const QUrl &link);
20 void setDisplayText(const QString &display);
21
22public:
23 bool isValid() const;
24
25 const QUrl& getUrl() const;
26 const QString& getTextDisplayed() const;
27
28 QString toHtml() const;
29
30private:
31 QUrl m_link;
32 QString m_display;
33};
34
35} // namespace tbq
36
37#endif // TBQ_CORE_RICHLINK_H
Namespace used for ToolBoxQt library.
Definition array2d.h:12