diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2012-05-16 14:51:01 +0400 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2012-05-16 16:58:00 +0200 |
commit | 338524baab706c15a0d0838b01e34a77139c79a2 (patch) | |
tree | 3330e5691dd5f1a92c54325d097548ce1e1f2710 /src/plugins/cpaster/cpasterplugin.h | |
parent | f17ad979973c479c43fcb52c9788e46dbed3e380 (diff) |
Added "Open URL" action.
It was implemented in CodepasterPlugin because it provides facility
to fetch files from network into editor with proper error reporting.
Change-Id: I1ea7f1799dfa3ca8423a06a64b43b419f23046eb
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/cpaster/cpasterplugin.h')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.h b/src/plugins/cpaster/cpasterplugin.h index f7c93526b53..1c0cba8a0c3 100644 --- a/src/plugins/cpaster/cpasterplugin.h +++ b/src/plugins/cpaster/cpasterplugin.h @@ -85,6 +85,7 @@ public slots: bool error); void post(QString data, const QString &mimeType); + void fetchUrl(); private: static CodepasterPlugin *m_instance; @@ -92,8 +93,10 @@ private: QAction *m_postEditorAction; QAction *m_postClipboardAction; QAction *m_fetchAction; + QAction *m_fetchUrlAction; QList<Protocol*> m_protocols; QStringList m_fetchedSnippets; + Protocol *m_urlOpen; }; } // namespace CodePaster |