diff options
| author | Anton <anton@picapica> | 2017-11-30 22:57:25 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2017-11-30 22:57:25 +0400 |
| commit | c2f8b64da40dd73f75230f18816578a2cc8c1b9a (patch) | |
| tree | 8c34adef51a2af250645e7f7b1fb87df0913e021 | |
| parent | ced679b1e7896b0df7215d842d2122d8c8f40edf (diff) | |
| download | pica-pica-c2f8b64da40dd73f75230f18816578a2cc8c1b9a.tar.gz pica-pica-c2f8b64da40dd73f75230f18816578a2cc8c1b9a.zip | |
pica-client: display client protocol version
| -rw-r--r-- | PICA_proto.h | 1 | ||||
| -rw-r--r-- | pica-client/picaactioncenter.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/PICA_proto.h b/PICA_proto.h index 32c817a..46ca178 100644 --- a/PICA_proto.h +++ b/PICA_proto.h @@ -10,6 +10,7 @@ #define PICA_C2CPROTO_VER_HIGH 0 #define PICA_C2CPROTO_VER_LOW 1 +#define PICA_PROTO_CLIENT_VER_STRING PICA_STRINGIFY2(PICA_C2CPROTO_VER_HIGH, PICA_C2CPROTO_VER_LOW) #define PICA_PROTO_VER_STRING PICA_STRINGIFY2(PICA_PROTO_VER_HIGH, PICA_PROTO_VER_LOW) #define PICA_STRINGIFY2(H, L) PICA_STRINGIFY(H, L) #define PICA_STRINGIFY(H, L) #H#L diff --git a/pica-client/picaactioncenter.cpp b/pica-client/picaactioncenter.cpp index 1aa09ec..b6b228a 100644 --- a/pica-client/picaactioncenter.cpp +++ b/pica-client/picaactioncenter.cpp @@ -46,7 +46,8 @@ void PicaActionCenter::about() mbx.setTextFormat(Qt::RichText); mbx.setText(tr("<b>Pica Pica Messenger "VERSION_STRING"<br>(c) 2012 - 2014 Anton Sviridenko</b><br>\ <a href=http://picapica.im>http://picapica.im</a><br><br>Contributors:<br>Daniil Ustinov - bugfixes<br>EXL - bugfixes<br><br>\ -protocol version " PICA_PROTO_VER_STRING)); +protocol version " PICA_PROTO_VER_STRING "<br>" + "client protocol version " PICA_PROTO_CLIENT_VER_STRING)); mbx.exec(); } |
