From f5fa599274bfcbbb3434c74874160b1d36531383 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sun, 8 Nov 2015 14:14:24 +0100 Subject: add views as seperate files --- .../package/contents/ui/FolderListView.qml | 24 ++++++++++++++++++++++ .../package/contents/ui/MailListView.qml | 24 ++++++++++++++++++++++ .../package/contents/ui/SingleMailView.qml | 24 ++++++++++++++++++++++ .../kmail-quick/package/contents/ui/main.qml | 6 +++--- 4 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 applications/kmail-quick/package/contents/ui/FolderListView.qml create mode 100644 applications/kmail-quick/package/contents/ui/MailListView.qml create mode 100644 applications/kmail-quick/package/contents/ui/SingleMailView.qml (limited to 'applications/kmail-quick/package/contents/ui') diff --git a/applications/kmail-quick/package/contents/ui/FolderListView.qml b/applications/kmail-quick/package/contents/ui/FolderListView.qml new file mode 100644 index 00000000..4698003b --- /dev/null +++ b/applications/kmail-quick/package/contents/ui/FolderListView.qml @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2015 Michael Bohlender + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +import QtQuick 2.4 +import QtQuick.Controls 1.3 +import QtQuick.Layouts 1.1 + +Rectangle { + color: "red" +} \ No newline at end of file diff --git a/applications/kmail-quick/package/contents/ui/MailListView.qml b/applications/kmail-quick/package/contents/ui/MailListView.qml new file mode 100644 index 00000000..55fbf344 --- /dev/null +++ b/applications/kmail-quick/package/contents/ui/MailListView.qml @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2015 Michael Bohlender + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +import QtQuick 2.4 +import QtQuick.Controls 1.3 +import QtQuick.Layouts 1.1 + +Rectangle { + color: "blue" +} diff --git a/applications/kmail-quick/package/contents/ui/SingleMailView.qml b/applications/kmail-quick/package/contents/ui/SingleMailView.qml new file mode 100644 index 00000000..b9a517ec --- /dev/null +++ b/applications/kmail-quick/package/contents/ui/SingleMailView.qml @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2015 Michael Bohlender + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +import QtQuick 2.4 +import QtQuick.Controls 1.3 +import QtQuick.Layouts 1.1 + +Rectangle { + color: "green" +} \ No newline at end of file diff --git a/applications/kmail-quick/package/contents/ui/main.qml b/applications/kmail-quick/package/contents/ui/main.qml index c614cdb3..75e781fc 100644 --- a/applications/kmail-quick/package/contents/ui/main.qml +++ b/applications/kmail-quick/package/contents/ui/main.qml @@ -36,7 +36,7 @@ ApplicationWindow { SplitView { anchors.fill: parent - Rectangle { + FolderListView { id: folderList width: unit.width * 100 @@ -46,7 +46,7 @@ ApplicationWindow { color: "green" } - Rectangle { + MailListView { id: mailList width: unit.width * 150 @@ -56,7 +56,7 @@ ApplicationWindow { color: "red" } - Rectangle { + SingleMailView { id: mailView Layout.fillWidth: true -- cgit v1.2.3