-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
91 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<RCC> | ||
<qresource prefix="/"> | ||
<file>main.qml</file> | ||
</qresource> | ||
<qresource prefix="/dialogs"> | ||
<file alias="FileDialog.qml">qt5/FileDialog.qml</file> | ||
<file alias="MessageDialog.qml">qt5/MessageDialog.qml</file> | ||
</qresource> | ||
</RCC> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<RCC> | ||
<qresource prefix="/"> | ||
<file>main.qml</file> | ||
</qresource> | ||
<qresource prefix="/dialogs"> | ||
<file alias="FileDialog.qml">qt6/FileDialog.qml</file> | ||
<file alias="MessageDialog.qml">qt6/MessageDialog.qml</file> | ||
</qresource> | ||
</RCC> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import QtQuick.Dialogs 1.3 as FromQt | ||
|
||
FromQt.FileDialog { | ||
property url selectedFile | ||
|
||
onAccepted: selectedFile = fileUrl | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import QtQuick.Dialogs 1.3 as FromQt | ||
|
||
FromQt.MessageDialog { | ||
readonly property int buttonSave: FromQt.Dialog.Save | ||
readonly property int buttonDiscard: FromQt.Dialog.Discard | ||
readonly property int buttonCancel: FromQt.Dialog.Cancel | ||
|
||
property var enabledButtons | ||
|
||
standardButtons: enabledButtons | ||
|
||
signal buttonClicked(button: int) | ||
|
||
onAccepted: buttonClicked(buttonSave) | ||
onDiscard: buttonClicked(buttonDiscard) | ||
onRejected: buttonClicked(buttonCancel) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import QtQuick.Dialogs as FromQt | ||
|
||
FromQt.FileDialog {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import QtQuick.Dialogs as FromQt | ||
|
||
FromQt.MessageDialog { | ||
readonly property int buttonSave: MessageDialog.Save | ||
readonly property int buttonDiscard: MessageDialog.Discard | ||
readonly property int buttonCancel: MessageDialog.Cancel | ||
|
||
property var enabledButtons | ||
buttons: enabledButtons | ||
} |