Skip to content

Commit c243c11

Browse files
committed
Add library info to the about dialog
1 parent 1669284 commit c243c11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/app/qml/dialogs/AboutDialog.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import QtQuick
44
import QtQuick.Controls
55
import QtQuick.Layouts
6+
import ScratchCPP
67
import ScratchCPP.Ui
78
import ScratchCPP.UiComponents
89

@@ -33,6 +34,16 @@ CustomDialog {
3334
text: qsTr("Version: %1").arg(Qt.application.version)
3435
}
3536

37+
Label {
38+
//: For example "SomeLibrary version: 0.1.0"
39+
text: qsTr("%1 version: %2").arg("libscratchcpp").arg(LibraryInfo.libscratchcppVersion())
40+
}
41+
42+
Label {
43+
//: For example "SomeLibrary version: 0.1.0"
44+
text: qsTr("%1 version: %2").arg("ScratchCPP Render").arg(LibraryInfo.scratchcppRenderVersion())
45+
}
46+
3647
Label {
3748
text: qsTr("Revision: %1").arg(AppInfo.revision())
3849
}

0 commit comments

Comments
 (0)