diff options
Diffstat (limited to 'src/widgets/urllineedit.h')
-rw-r--r-- | src/widgets/urllineedit.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/widgets/urllineedit.h b/src/widgets/urllineedit.h index d9d11ae..959461c 100644 --- a/src/widgets/urllineedit.h +++ b/src/widgets/urllineedit.h @@ -23,6 +23,7 @@ #include <QLineEdit> #include <QTextLayout> +#include <QMenu> class UrlLineEdit : public QLineEdit { @@ -40,11 +41,21 @@ protected: void focusInEvent(QFocusEvent *event); void focusOutEvent(QFocusEvent *event); +private slots: + void showMenu(); + void copyUrl(); + void pasteUrl(); + void pasteUrlAndGo(); + void bookmarkUrl(); + private: void setTextFormat(const QTextLayout::FormatRange &format); void clearTextFormat(); + QUrl urlFromUserInput(const QString &input); + QTextLayout::FormatRange m_hostFormat; + QMenu *m_contextMenu; }; #endif // URLLINEEDIT_H |