working on ubuntu now

This commit is contained in:
Michael Zanetti 2018-10-16 23:44:08 +02:00
parent bf782749a7
commit dc6d009e5f
7 changed files with 8 additions and 15 deletions

@ -1 +1 @@
Subproject commit 2990b858e6334fae4dd37a77c770336bd6e1b2d9
Subproject commit 09116a9bf84082688e9f2cd24cfd08788c71650c

View File

@ -3,7 +3,7 @@ TEMPLATE = lib
CONFIG += staticlib
include(../config.pri)
!win32:!ubuntu: {
!win32: {
# To enable this on Windows we'd need to install Bonjour
# https://support.apple.com/kb/DL999
DEFINES += QZEROCONF_STATIC

View File

@ -1,6 +1,6 @@
{
"name": "io.guh.nymeaapp",
"description": "blabla",
"description": "nymea:app is a client for nymea - a professional IoT server that allows to link smart devices and services. Functional relations of all available sensing and acting capabilities can be defined by 'Magic'.",
"architecture": "armhf",
"title": "nymea:app",
"hooks": {
@ -9,7 +9,7 @@
"desktop": "nymea-app.desktop"
}
},
"version": "1.0.0",
"maintainer": "Your FullName <email@domain.org>",
"version": "1.0.75",
"maintainer": "Michael Zanetti <michael.zanetti@nymea.io>",
"framework" : "ubuntu-sdk-15.04.5"
}

View File

@ -1,5 +1,5 @@
{
"template": "unconfined",
"policy_groups": [],
"policy_groups": ["networking"],
"policy_version": 1.3
}

View File

@ -56,15 +56,6 @@ QObject *platformHelperProvider(QQmlEngine *engine, QJSEngine *scriptEngine)
int main(int argc, char *argv[])
{
QByteArray gridUnits = qgetenv("GRID_UNIT_PX");
qDebug() << "grid units" << gridUnits;
bool ok;
int gu = gridUnits.toInt(&ok);
if (ok && gu > 0) {
qreal scale = 1.0 * qRound(2.0 * gu / 8) / 2;
qDebug() << "Setting scale factor to" << scale;
qputenv("QT_SCALE_FACTOR", QByteArray::number(scale));
}
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication application(argc, argv);

View File

@ -106,6 +106,7 @@ ToolBar {
ColumnLayout {
anchors.fill: parent
anchors.margins: app.margins / 2
spacing: 0
ColorIcon {
name: model.iconSource
Layout.preferredHeight: app.iconSize

View File

@ -16,6 +16,7 @@ TabButton {
contentItem: GridLayout {
columns: root.alignment === Qt.Vertical ? 1 : 2
rowSpacing: 4
ColorIcon {
Layout.preferredWidth: app.iconSize
Layout.preferredHeight: app.iconSize