Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/package/contents/ui/main.qml
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 96 | MouseArea { | |||
---|---|---|---|---|---|
97 | anchors.fill: parent | 97 | anchors.fill: parent | ||
98 | Image { | 98 | Image { | ||
99 | id: previewImage | 99 | id: previewImage | ||
100 | anchors.centerIn: parent | 100 | anchors.centerIn: parent | ||
101 | fillMode: Image.PreserveAspectFit | 101 | fillMode: Image.PreserveAspectFit | ||
102 | width: Math.min(parent.width, sourceSize.width) | 102 | width: Math.min(parent.width, sourceSize.width) | ||
103 | height: Math.min(parent.height, sourceSize.height) | 103 | height: Math.min(parent.height, sourceSize.height) | ||
104 | } | 104 | } | ||
105 | onClicked: previewWindow.visible = false; | 105 | onClicked: previewWindow.close() | ||
106 | QtControls.ToolButton { | 106 | QtControls.ToolButton { | ||
107 | anchors { | 107 | anchors { | ||
108 | top: parent.top | 108 | top: parent.top | ||
109 | right: parent.right | 109 | right: parent.right | ||
110 | } | 110 | } | ||
111 | icon.name: "window-close" | 111 | icon.name: "window-close" | ||
112 | onClicked: previewWindow.visible = false; | 112 | onClicked: previewWindow.close() | ||
113 | } | 113 | } | ||
114 | Shortcut { | 114 | Shortcut { | ||
115 | onActivated: previewWindow.visible = false; | 115 | onActivated: previewWindow.close() | ||
116 | sequence: "Esc" | 116 | sequence: "Esc" | ||
117 | } | 117 | } | ||
118 | } | 118 | } | ||
119 | } | 119 | } | ||
120 | } | 120 | } |