Commit 3c90db21 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Fixed a Qt5/Qt4 compat bug.


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20953 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c5f9059d
......@@ -392,7 +392,7 @@ void CoreWidget::slotExaminerSnapshot() {
static QString suggestSnapshotFilename(QString mostRecentPath) {
if (mostRecentPath.isEmpty()) {
mostRecentPath = QStringLiteral("%1%2snap.000000.png")
mostRecentPath = QString("%1%2snap.000000.png")
.arg(OpenFlipperSettings().value("Core/CurrentDir").toString())
.arg(QDir::separator());
}
......@@ -437,7 +437,7 @@ static QString suggestSnapshotFilename(QString mostRecentPath) {
post = base_name_re.cap(3);
#ifndef NDEBUG
std::cout << (QStringLiteral("suggestSnapshotFilename(): Decomposition of "
std::cout << (QString("suggestSnapshotFilename(): Decomposition of "
"\"%1\": \"%2\", \"%3\", \"%4\"")
.arg(base_name)
.arg(pre)
......@@ -460,7 +460,7 @@ static QString suggestSnapshotFilename(QString mostRecentPath) {
size_t sanity_counter = 0;
for (; sanity_counter < 100000; ++file_no, ++sanity_counter) {
QString suggested_file_name =
QStringLiteral("%1%2%3%4%5.%6")
QString("%1%2%3%4%5.%6")
.arg(path)
.arg(QDir::separator())
.arg(pre)
......
......@@ -183,8 +183,6 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
</layout>
<zorder>horizontalSpacer_4</zorder>
<zorder>resButton</zorder>
</widget>
</item>
</layout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment