diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-30 15:37:30 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-30 15:37:30 +0100 |
commit | d6101a83cad797e80ade602662878378ee0f2306 (patch) | |
tree | e4f1627aea8ac370f0b6608dcb134fd18ca174fd /src/widgets/urllineedit.h | |
parent | Added bug reporting section to Contributing (diff) | |
download | smolbote-d6101a83cad797e80ade602662878378ee0f2306.tar.xz |
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
Diffstat (limited to 'src/widgets/urllineedit.h')
-rw-r--r-- | src/widgets/urllineedit.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 <QLineEdit> +#include <QTextLayout> + +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 |