Commit e08d16da authored by Camilo Higuita's avatar Camilo Higuita

initial work on the ui making use of Maui.ApplicationWIndows and its...

initial work on the ui making use of Maui.ApplicationWIndows and its components and also getting ready at the same time for android
parent 22c4c756
breeze-icons @ a54611fa
Subproject commit a54611fafe2c47d2f2ff2bbe21dbcf234a855ec2
kirigami @ 70c025ef
Subproject commit 70c025ef6f6dc63c85180867f70f5e00ba5a8dba
......@@ -19,3 +19,18 @@ QML_DESIGNER_IMPORT_PATH =
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
linux:unix:!android {
message(Building for Linux KDE)
} else:android {
message(Building helpers for Android)
include($$PWD/3rdparty/kirigami/kirigami.pri)
DEFINES += STATIC_KIRIGAMI
} else {
message("Unknown configuration")
}
<RCC>
<qresource prefix="/org/kde/kirigami"/>
</RCC>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#ifdef STATIC_KIRIGAMI
#include "3rdparty/kirigami/src/kirigamiplugin.h"
#endif
#ifdef Q_OS_ANDROID
#include <QGuiApplication>
#include <QIcon>
#else
#include <QApplication>
#endif
#include "mauikit/src/mauikit.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#ifdef Q_OS_ANDROID
QGuiApplication app(argc, argv);
#else
QApplication app(argc, argv);
#endif
#ifdef STATIC_KIRIGAMI
KirigamiPlugin::getInstance().registerTypes();
#endif
#ifdef MAUI_APP
MauiKit::getInstance().registerTypes();
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Window 2.2
import org.kde.kirigami 2.0 as Kirigami
import org.kde.maui 1.0 as Maui
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Maui.ApplicationWindow
{
header: Maui.ToolBar
title: qsTr("Buho")
headBar.middleContent: [
Maui.ToolButton
{
iconName: "draw-text"
text: qsTr("Notes")
},
Maui.ToolButton
{
iconName: "view-list-details"
text: qsTr("Lists")
},
Maui.ToolButton
{
iconName: "link"
text: qsTr("Links")
},
Maui.ToolButton
{
iconName: "document-new"
text: qsTr("Books")
}
]
footBar.middleContent: Maui.PieButton
{
id: addButton
iconName: "list-add"
model: ListModel
{
ListElement {iconName: "document-new"}
ListElement {iconName: "link"}
ListElement {iconName: "draw-text"}
}
}
footBar.leftContent: Maui.ToolButton
{
iconName: "document-share"
}
footBar.rightContent: Maui.ToolButton
{
iconName: "archive-remove"
}
}
Subproject commit 6068795a75f3a74e1bfdb84dc93d90d72c6631bd
Subproject commit 865db27f4674fbc61a5abd836cb8a376d0e6d451
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment