qt5: Use the info gleaned from configure for plugin importing
This commit is contained in:
parent
c8ba8ef654
commit
60dc589477
1 changed files with 11 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
||||||
// Distributed under the MIT/X11 software license, see the accompanying
|
// Distributed under the MIT/X11 software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
|
#include "bitcoin-config.h"
|
||||||
#include "bitcoingui.h"
|
#include "bitcoingui.h"
|
||||||
|
|
||||||
#include "clientmodel.h"
|
#include "clientmodel.h"
|
||||||
|
@ -30,19 +31,22 @@
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
|
|
||||||
#if QT_VERSION < 0x050000
|
#if defined(QT_STATICPLUGIN)
|
||||||
#include <QTextCodec>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(BITCOIN_NEED_QT_PLUGINS) && !defined(_BITCOIN_QT_PLUGINS_INCLUDED)
|
|
||||||
#define _BITCOIN_QT_PLUGINS_INCLUDED
|
|
||||||
#define __INSURE__
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
|
#if QT_VERSION < 0x050000
|
||||||
Q_IMPORT_PLUGIN(qcncodecs)
|
Q_IMPORT_PLUGIN(qcncodecs)
|
||||||
Q_IMPORT_PLUGIN(qjpcodecs)
|
Q_IMPORT_PLUGIN(qjpcodecs)
|
||||||
Q_IMPORT_PLUGIN(qtwcodecs)
|
Q_IMPORT_PLUGIN(qtwcodecs)
|
||||||
Q_IMPORT_PLUGIN(qkrcodecs)
|
Q_IMPORT_PLUGIN(qkrcodecs)
|
||||||
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
|
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
|
||||||
|
#else
|
||||||
|
Q_IMPORT_PLUGIN(AccessibleFactory)
|
||||||
|
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if QT_VERSION < 0x050000
|
||||||
|
#include <QTextCodec>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Declare meta types used for QMetaObject::invokeMethod
|
// Declare meta types used for QMetaObject::invokeMethod
|
||||||
|
|
Loading…
Reference in a new issue