mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
Merge pull request #2525 from laanwj/2013_04_metatypebool
qt: register metatype for bool*
This commit is contained in:
commit
72782f3b92
@ -34,6 +34,9 @@ Q_IMPORT_PLUGIN(qkrcodecs)
|
|||||||
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
|
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Declare meta types used for QMetaObject::invokeMethod
|
||||||
|
Q_DECLARE_METATYPE(bool*)
|
||||||
|
|
||||||
// Need a global reference for the notifications to find the GUI
|
// Need a global reference for the notifications to find the GUI
|
||||||
static BitcoinGUI *guiref;
|
static BitcoinGUI *guiref;
|
||||||
static SplashScreen *splashref;
|
static SplashScreen *splashref;
|
||||||
@ -118,6 +121,9 @@ int main(int argc, char *argv[])
|
|||||||
Q_INIT_RESOURCE(bitcoin);
|
Q_INIT_RESOURCE(bitcoin);
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
|
// Register meta types used for QMetaObject::invokeMethod
|
||||||
|
qRegisterMetaType< bool* >();
|
||||||
|
|
||||||
// Do this early as we don't want to bother initializing if we are just calling IPC
|
// Do this early as we don't want to bother initializing if we are just calling IPC
|
||||||
// ... but do it after creating app, so QCoreApplication::arguments is initialized:
|
// ... but do it after creating app, so QCoreApplication::arguments is initialized:
|
||||||
if (PaymentServer::ipcSendCommandLine())
|
if (PaymentServer::ipcSendCommandLine())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user