Commit 7b70a143 authored by Sergey Chupligin's avatar Sergey Chupligin

Move to libglacierapp

parent 8d20d1bc
...@@ -42,18 +42,16 @@ ...@@ -42,18 +42,16 @@
#include <QQmlApplicationEngine> #include <QQmlApplicationEngine>
#include <QtQuick/QQuickView> #include <QtQuick/QQuickView>
#include <glacierapp.h>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
setenv("QT_QUICK_CONTROLS_STYLE", "Nemo", 1); setenv("QT_QUICK_CONTROLS_STYLE", "Nemo", 1);
QGuiApplication app(argc, argv); QGuiApplication *app = GlacierApp::app(argc, argv);
app->setOrganizationName("NemoMobile");
QQmlApplicationEngine* engine = new QQmlApplicationEngine(QUrl("/usr/share/glacier-components/main.qml"));
QObject *topLevel = engine->rootObjects().value(0);
QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel); QQuickWindow *window = GlacierApp::showWindow();
window->setTitle(QObject::tr("Glacier components")); window->setTitle(QObject::tr("Glacier components"));
window->showFullScreen();
return app.exec(); return app->exec();
} }
...@@ -3,12 +3,12 @@ QT += qml quick ...@@ -3,12 +3,12 @@ QT += qml quick
TARGET = glacier-components TARGET = glacier-components
target.path = /usr/bin target.path = /usr/bin
qtHaveModule(widgets) { CONFIG += link_pkgconfig
QT += widgets LIBS += -lglacierapp
} PKGCONFIG += glacierapp
mainqml.files = main.qml mainqml.files = glacier-components.qml
mainqml.path = /usr/share/glacier-components mainqml.path = /usr/share/glacier-components/qml
qml.files += \ qml.files += \
content/AndroidDelegate.qml \ content/AndroidDelegate.qml \
...@@ -28,7 +28,7 @@ qml.files += \ ...@@ -28,7 +28,7 @@ qml.files += \
content/IconPage.qml \ content/IconPage.qml \
content/DatePickerPage.qml content/DatePickerPage.qml
qml.path = /usr/share/glacier-components/content qml.path = /usr/share/glacier-components/qml/content
images.files = images/*.png images.files = images/*.png
images.files += images/*.jpg images.files += images/*.jpg
...@@ -36,7 +36,6 @@ images.path = /usr/share/glacier-components/images ...@@ -36,7 +36,6 @@ images.path = /usr/share/glacier-components/images
OTHER_FILES += $$qml.files OTHER_FILES += $$qml.files
desktop.path = /usr/share/applications desktop.path = /usr/share/applications
desktop.files = glacier-gallery.desktop desktop.files = glacier-gallery.desktop
......
Name: qt5-qtquickcontrols-nemo Name: qt5-qtquickcontrols-nemo
Summary: Nemomobile Qt Quick Controls Summary: Nemomobile Qt Quick Controls
Version: 5.3.1 Version: 5.3.2
Release: nemo1 Release: nemo1
Group: System/Library Group: System/Library
License: LGPLv2.1 with exception or GPLv3 License: LGPLv2.1 with exception or GPLv3
...@@ -10,9 +10,12 @@ BuildRequires: pkgconfig(Qt5Core) ...@@ -10,9 +10,12 @@ BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: pkgconfig(glacierapp)
Requires: qt5-qtquickcontrols Requires: qt5-qtquickcontrols
Requires: qt5-qtgraphicaleffects Requires: qt5-qtgraphicaleffects
Requires: nemo-theme-glacier Requires: nemo-theme-glacier
Requires: libglacierapp
%description %description
Qt is a cross-platform application and UI framework. Using Qt, you can Qt is a cross-platform application and UI framework. Using Qt, you can
......
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