5import QtQuick.Window 2.2
7import "../constants" 1.0
8import QtQuick.Layouts 1.2
9import QtQuick.Controls 2.0
10import QtQuick.Dialogs 1.2 as Dialogs
15 title: xi18n("Image Preview - %1", deviceName)
17 property
string deviceName
18 property
Item buttonRow: null
31 Layout.fillWidth: true
36 text:
xi18n(
"Save As")
46 Layout.fillHeight:
true
47 Layout.fillWidth:
true
48 fillMode: Image.PreserveAspectFit
50 top: saveButtons.bottom
63 if(imagePreview.deviceName == deviceName) {
64 image.source =
"image://images/ccdPreview"
65 stackView.push(imagePreview)
70 if(imagePreview.deviceName == deviceName) {
71 if(propName ==
"UPLOAD_MODE") {
72 if(imagePreview.buttonRow == null) {
73 var buttonRowComp =
Qt.createComponent(
"modules/KSButtonsSwitchRow.qml");
74 imagePreview.buttonRow = buttonRowComp.createObject(saveButtons)
75 imagePreview.buttonRow.deviceName = deviceName
76 imagePreview.buttonRow.propName = propName
77 imagePreview.buttonRow.exclusive = exclusive
79 imagePreview.buttonRow.addButton(propText, switchName, checked, enabled)
84 onRemoveINDIProperty: {
85 if(imagePreview.deviceName == deviceName) {
86 if(propName ==
"UPLOAD_MODE") {
87 if(imagePreview.buttonRow != null) {
88 imagePreview.buttonRow.destroy()
89 imagePreview.buttonRow = null
Q_INVOKABLE bool saveDisplayImage()
saveDisplayImage
QString xi18n(const char *text, const TYPE &arg...)
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:12 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.