A resolution fix for qml-material targeting specific devices
Within your app's project folder:
git submodule add https://github.com/maply/org-qtmob-material-resolutionfix lib/org/qtmob/material/resolutionfix
Commit to add the submodule's reference permanently to your repo.
When subsequently cloning your repo, just do:
git submodule init
git submodule update
Include the project into your app's .pro file:
include(lib/org/qtmob/material/resolutionfix/org_qtmob_material_resolutionfix.pri)
For autocompletion and syntax highlighting in Qt Creator, add the following to your app's .pro file:
QML_IMPORT_PATH += $$PWD/lib
import QtQuick 2.5
import Material 0.1
import org.qtmob.material.resolutionfix 1.0
ApplicationWindow {
visible: true
Component.onCompleted: ResolutionFix.fixDensity()
initialPage: Page {
title: "My app"
Button {text: "some text"}
}
}