Scale all QML elements according to the current display size
This commit is contained in:
parent
9e7a55fc20
commit
bcdf3d94f2
15 changed files with 278 additions and 109 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <QCommandLineParser>
|
||||
#include <QFileInfo>
|
||||
#include <QDebug>
|
||||
#include <controllers/StyleController.h>
|
||||
#include "controllers/NavigationController.h"
|
||||
#include "MouseEventSpy.h"
|
||||
#include "EnergySaver.h"
|
||||
|
|
@ -42,6 +43,9 @@ int main(int argc, char *argv[])
|
|||
const auto settingsHandler = SettingsHandler::createSettingsHandlerAndFillWithDefaultsIfMissing(settings);
|
||||
|
||||
|
||||
// init style
|
||||
StyleController styleController;
|
||||
styleController.init(engine.rootContext());
|
||||
// init main app
|
||||
NavigationController navController;
|
||||
navController.setContext(engine.rootContext());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue