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:
15 explicit RichLink(const QUrl &link, const QString &display = QString());
16
17public:
18 const QUrl& getUrl() const;
19 const QString& getTextDisplayed() const;
20
21 QString toHtml() const;
22
23private:
24 QUrl m_link;
25 QString m_display;
26};
27
28} // namespace tbq
29
30#endif // TBQ_CORE_RICHLINK_H