diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-30 19:45:09 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-30 19:45:09 +0100 |
commit | 50f9adad0ffbe7d9176326ed8601148630ad1b61 (patch) | |
tree | 2f6c5d1edb2a048c236b948532dc1009e6a838bf /src/widgets/urllineedit.h | |
parent | Added UrlLineEdit class (diff) | |
download | smolbote-50f9adad0ffbe7d9176326ed8601148630ad1b61.tar.xz |
Cleaned up UrlLineEdit
Diffstat (limited to 'src/widgets/urllineedit.h')
-rw-r--r-- | src/widgets/urllineedit.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/urllineedit.h b/src/widgets/urllineedit.h index e7dcf36..546ca41 100644 --- a/src/widgets/urllineedit.h +++ b/src/widgets/urllineedit.h @@ -14,10 +14,17 @@ signals: public slots: void setUrl(const QUrl &url); + QUrl url(); + +protected: + void focusInEvent(QFocusEvent *event); + void focusOutEvent(QFocusEvent *event); private: void setTextFormat(const QTextLayout::FormatRange &format); void clearTextFormat(); + + QTextLayout::FormatRange m_hostFormat; }; #endif // URLLINEEDIT_H |