Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes problems with the demo and an annoying warning #443

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Fixes problems with the demo and an annoying warning #443

wants to merge 3 commits into from

Conversation

itay-grudev
Copy link

warning: field 'm_multiplier' will be initialized after field 'm_dpi'
[-Wreorder]
: QObject(attachee), m_screen(nullptr), m_window(nullptr),
m_multiplier(1), m_dpi(0)

warning: field 'm_multiplier' will be initialized after field 'm_dpi'
[-Wreorder]
: QObject(attachee), m_screen(nullptr), m_window(nullptr),
m_multiplier(1), m_dpi(0)
As the file was listed in the demo.qrc it caused an error on
compilation.
The Material module was not included in the demo nor were any import
paths present.
@itay-grudev itay-grudev changed the title Silences an annoying warning Fixes problems with the demo and an annoying warning May 29, 2016
@itay-grudev
Copy link
Author

The last two commits fix problems with the demo. A missing icon causing a compilation error and a fix to the missing Material module when not installed in the system path by including the material.pri.

The definition of QPM_INIT is mandatory as to force the registration of the Device and Unit classes.
As this macro is quite useful in lots of scenarios I would recommend that it is renamed to:
QML_METERIAL_REGISTER

Then you can have a condition that would force it's definition in the plugin.cpp when QPM_INIT is present:

#ifdef QPM_INIT
#define QML_METERIAL_REGISTER
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant