Skip to content

Commit

Permalink
The wrong usage of qsTr was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
omid-esrafilian committed Apr 19, 2024
1 parent bda40c9 commit ba4af81
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 303 deletions.
2 changes: 1 addition & 1 deletion src/Viewer3D/Viewer3DQml/Models3D/Viewer3DModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ View3D {
margins: ScreenTools.defaultFontPixelWidth
}
width: ScreenTools.screenWidth * 0.2
progressText: "Loading Map: "
progressText: qsTr("Downloading Imageries: ")
}

Binding{
Expand Down
4 changes: 2 additions & 2 deletions src/Viewer3D/Viewer3DQml/Viewer3DProgressBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Rectangle{
id: progressBody

property real progressValue: 100.0
property string progressText: "Progress"
property string progressText: qsTr("Progress")

QGCPalette { id: qgcPal; colorGroupEnabled: true }

Expand Down Expand Up @@ -54,7 +54,7 @@ Rectangle{

QGCLabel {
anchors.horizontalCenter: parent.horizontalCenter
text: progressText + Number(Math.floor(progressBody.progressValue)) + qsTr(" %")
text: progressText + Number(Math.floor(progressBody.progressValue)) + " %"
color: qgcPal.text
font.family: ScreenTools.demiboldFontFamily
font.pointSize: ScreenTools.mediumFontPointSize
Expand Down
205 changes: 0 additions & 205 deletions src/Viewer3D/maptileimageryloader.cpp

This file was deleted.

94 changes: 0 additions & 94 deletions src/Viewer3D/maptileimageryloader.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/ui/preferences/FlyViewSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ SettingsPage {
text: qsTr("Select File")

onClicked: {
var filename = qsTr(_viewer3DOsmFilePath.rawValue);
var filename = _viewer3DOsmFilePath.rawValue;
const found = filename.match(/(.*)[\/\\]/);
if(found){
filename = found[1]||''; // extracting the directory from the file path
Expand Down

0 comments on commit ba4af81

Please sign in to comment.