Commit b591f777 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

makes the main window geometry persistent to application termination

parent 8415f3a6
......@@ -26,14 +26,26 @@ import QtQuick.Window 2.2
import QtQml.Models 2.1
import org.mgallien.QmlExtension 1.0
import QtMultimedia 5.4
import Qt.labs.settings 1.0
ApplicationWindow {
visible: true
minimumWidth: 1000
width: 1000
minimumHeight: 600
height: 600
title: 'Elisa'
id: mainWindow
Settings {
property alias x: mainWindow.x
property alias y: mainWindow.y
property alias width: mainWindow.width
property alias height: mainWindow.height
property alias playListState: playListModelItem.persistentState
}
property string globalBrowseFlag: 'BrowseDirectChildren'
property string globalFilter: '*'
property string globalSortCriteria: ''
......
......@@ -139,6 +139,8 @@ int __attribute__((visibility("default"))) main(int argc, char *argv[])
i18n("(c) 2015-2016, Matthieu Gallien <mgallien@mgallien.fr>"));
aboutData.addAuthor(i18n("Matthieu Gallien"),i18n("Author"), QStringLiteral("mgallien@mgallien.fr"));
KAboutData::setApplicationData(aboutData);
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("new-audio-alarm")));
QCommandLineParser parser;
......
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