aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/urllineedit.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-30 19:45:09 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-30 19:45:09 +0100
commit50f9adad0ffbe7d9176326ed8601148630ad1b61 (patch)
tree2f6c5d1edb2a048c236b948532dc1009e6a838bf /src/widgets/urllineedit.h
parentAdded UrlLineEdit class (diff)
downloadsmolbote-50f9adad0ffbe7d9176326ed8601148630ad1b61.tar.xz
Cleaned up UrlLineEdit
Diffstat (limited to 'src/widgets/urllineedit.h')
-rw-r--r--src/widgets/urllineedit.h7
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