From d6101a83cad797e80ade602662878378ee0f2306 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 30 Jan 2017 15:37:30 +0100 Subject: Added UrlLineEdit class Address bar should highlight the host name WebView widget should now be focused on startup instead of the address bar Added names to the toolbars to make their context menu useful Tabs now have a set width of 200 --- src/widgets/urllineedit.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/widgets/urllineedit.h (limited to 'src/widgets/urllineedit.h') diff --git a/src/widgets/urllineedit.h b/src/widgets/urllineedit.h new file mode 100644 index 0000000..e7dcf36 --- /dev/null +++ b/src/widgets/urllineedit.h @@ -0,0 +1,23 @@ +#ifndef URLLINEEDIT_H +#define URLLINEEDIT_H + +#include +#include + +class UrlLineEdit : public QLineEdit +{ + Q_OBJECT +public: + explicit UrlLineEdit(QWidget *parent = 0); + +signals: + +public slots: + void setUrl(const QUrl &url); + +private: + void setTextFormat(const QTextLayout::FormatRange &format); + void clearTextFormat(); +}; + +#endif // URLLINEEDIT_H -- cgit v1.2.1