Using a global variable to register meta types instead of the main() function.
Prevents needing to have extra includes in the main.
This commit is contained in:
parent
fe0681f19c
commit
b9bc00a389
4 changed files with 36 additions and 10 deletions
|
|
@ -5,8 +5,6 @@
|
|||
#endif
|
||||
#include <memory>
|
||||
#include "GlobalIoService.h"
|
||||
#include "ASyncDBConnection.h"
|
||||
#include "Pgsql_Result.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
|
@ -24,8 +22,6 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
#endif
|
||||
|
||||
qRegisterMetaType<ASyncDBConnection::State>();
|
||||
qRegisterMetaType<Pgsql::ErrorDetails>();
|
||||
|
||||
QApplication a(argc, argv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue