keeping up with qxmpp
This commit is contained in:
parent
73d83f55af
commit
3c6b611a41
10 changed files with 146 additions and 153 deletions
|
@ -19,10 +19,14 @@
|
|||
#include <QXmppGlobal.h>
|
||||
#include <QDebug>
|
||||
|
||||
#if (QXMPP_VERSION) < QT_VERSION_CHECK(1, 3, 0)
|
||||
static const std::string QXMPP_VERSION_PATCH(std::to_string(QXMPP_VERSION & 0xff));
|
||||
static const std::string QXMPP_VERSION_MINOR(std::to_string((QXMPP_VERSION & 0xff00) >> 8));
|
||||
static const std::string QXMPP_VERSION_MAJOR(std::to_string(QXMPP_VERSION >> 16));
|
||||
static const QString QXMPP_VERSION_STRING = QString::fromStdString(QXMPP_VERSION_MAJOR + "." + QXMPP_VERSION_MINOR + "." + QXMPP_VERSION_PATCH);
|
||||
#else
|
||||
static const QString QXMPP_VERSION_STRING = QXmppVersion();
|
||||
#endif
|
||||
|
||||
About::About(QWidget* parent):
|
||||
QWidget(parent),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue