Skip to content

Commit d4f742e

Browse files
committed
Display image filenames as relative paths.
1 parent c2d9a4c commit d4f742e

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

glabels/ObjectEditor.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "merge/Merge.h"
3737

3838
#include <QFileDialog>
39+
#include <QDir>
3940
#include <QtMath>
4041
#include <QtDebug>
4142

@@ -129,7 +130,8 @@ namespace glabels
129130
}
130131
else
131132
{
132-
imageFilenameLineEdit->setText( filenameNode.data() );
133+
QString fn = QDir(mModel->dir()).relativeFilePath( filenameNode.data() );
134+
imageFilenameLineEdit->setText( fn );
133135
}
134136

135137
mBlocked = false;

translations/glabels_C.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,6 @@
11561156
<source>Custom color...</source>
11571157
<translation type="unfinished"></translation>
11581158
</message>
1159-
<message>
1160-
<source>Use key</source>
1161-
<translation type="unfinished"></translation>
1162-
</message>
11631159
<message>
11641160
<source>Custom Color</source>
11651161
<translation type="unfinished"></translation>
@@ -1169,10 +1165,6 @@
11691165
<extracomment>%1 = color specification in hex. String must not contain a colon (:).</extracomment>
11701166
<translation type="unfinished"></translation>
11711167
</message>
1172-
<message>
1173-
<source>Custom color #%1</source>
1174-
<translation type="unfinished"></translation>
1175-
</message>
11761168
<message>
11771169
<source>Use substitution field</source>
11781170
<translation type="unfinished"></translation>
@@ -1934,14 +1926,6 @@
19341926
<source>Shadow</source>
19351927
<translation type="unfinished"></translation>
19361928
</message>
1937-
<message>
1938-
<source>Insert Field</source>
1939-
<translation type="unfinished"></translation>
1940-
</message>
1941-
<message>
1942-
<source>Selected File...</source>
1943-
<translation type="unfinished"></translation>
1944-
</message>
19451929
<message>
19461930
<source>Insert substitution field</source>
19471931
<translation type="unfinished"></translation>

0 commit comments

Comments
 (0)