diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2012-03-05 11:44:54 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2012-03-05 17:24:36 +0100 |
commit | abed438cb5ea99f8b187fa78630e1c06a1bd9cc7 (patch) | |
tree | 344d477d24af5dcb531b86235fb29c459d52b2d4 /src/plugins/cpaster | |
parent | 98565438c34f90f2fc1c7b0c14a098a31dac18b4 (diff) | |
download | qt-creator-abed438cb5ea99f8b187fa78630e1c06a1bd9cc7.tar.gz |
CPaster: Add Cpp protocol
Change-Id: Ic76ba31061420613683fd683125a32a3c583c84a
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r-- | src/plugins/cpaster/kdepasteprotocol.cpp | 1 | ||||
-rw-r--r-- | src/plugins/cpaster/pastebindotcomprotocol.cpp | 1 | ||||
-rw-r--r-- | src/plugins/cpaster/protocol.h | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cpaster/kdepasteprotocol.cpp b/src/plugins/cpaster/kdepasteprotocol.cpp index 00ac696025..53d6e97038 100644 --- a/src/plugins/cpaster/kdepasteprotocol.cpp +++ b/src/plugins/cpaster/kdepasteprotocol.cpp @@ -89,6 +89,7 @@ static inline QByteArray pasteLanguage(Protocol::ContentType ct) case Protocol::Text: break; case Protocol::C: + case Protocol::Cpp: return "paste_lang=c++"; break; case Protocol::JavaScript: diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp index 6edaa7c69b..c94358fe0b 100644 --- a/src/plugins/cpaster/pastebindotcomprotocol.cpp +++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp @@ -102,6 +102,7 @@ static inline QByteArray format(Protocol::ContentType ct) case Protocol::Text: break; case Protocol::C: + case Protocol::Cpp: return "paste_format=cpp"; break; case Protocol::JavaScript: diff --git a/src/plugins/cpaster/protocol.h b/src/plugins/cpaster/protocol.h index b01776fbe6..b036b7370c 100644 --- a/src/plugins/cpaster/protocol.h +++ b/src/plugins/cpaster/protocol.h @@ -55,7 +55,7 @@ class Protocol : public QObject public: enum ContentType { - Text, C, JavaScript, Diff, Xml + Text, C, Cpp, JavaScript, Diff, Xml }; enum Capabilities { |