Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/cuttlefish.qml
Show All 13 Lines | |||||
14 | * * | 14 | * * | ||
15 | * You should have received a copy of the GNU General Public License * | 15 | * You should have received a copy of the GNU General Public License * | ||
16 | * along with this program; if not, write to the * | 16 | * along with this program; if not, write to the * | ||
17 | * Free Software Foundation, Inc., * | 17 | * Free Software Foundation, Inc., * | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||
19 | * * | 19 | * * | ||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ | ||
21 | 21 | | |||
22 | import QtQuick 2.1 | 22 | import QtQuick 2.5 | ||
23 | import QtQuick.Layouts 1.0 | 23 | import QtQuick.Layouts 1.0 | ||
24 | 24 | | |||
25 | import org.kde.plasma.core 2.0 as PlasmaCore | 25 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
26 | import org.kde.plasma.components 2.0 as PlasmaComponents | 26 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
27 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 27 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
28 | 28 | | |||
29 | 29 | | |||
30 | Item { | 30 | Item { | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 64 | GridLayout { | |||
87 | } | 87 | } | ||
88 | Preview { | 88 | Preview { | ||
89 | id: preview | 89 | id: preview | ||
90 | Layout.preferredWidth: Math.max(parent.width / 4, units.gridUnit * 12) | 90 | Layout.preferredWidth: Math.max(parent.width / 4, units.gridUnit * 12) | ||
91 | Layout.fillHeight: true | 91 | Layout.fillHeight: true | ||
92 | } | 92 | } | ||
93 | } | 93 | } | ||
94 | } | 94 | } | ||
95 | | ||||
96 | Shortcut { | ||||
97 | sequence: StandardKey.Quit | ||||
98 | onActivated: Qt.quit() | ||||
99 | } | ||||
95 | } | 100 | } |