From 856119c5a43b4781b051b93a0713c152cfd99f85 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 15 Apr 2022 13:27:34 +0200 Subject: Make it run with Qt6 This is a huge commit. Changes: * Obviously, make it compile * Make it run (only scarcely tested) * get rid of most of clang's warnings Let's see what surprises are in store... --- viewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer.cpp') diff --git a/viewer.cpp b/viewer.cpp index 6a4f634..cba6314 100644 --- a/viewer.cpp +++ b/viewer.cpp @@ -56,7 +56,7 @@ void Viewer::preview(const QString &file){ mCurIndex = -1; QPixmap pm = Helper::preview(file); mLabel->setPixmap(pm); - QString winTitle = QString(tr("%1 Viewer: [Preview %2]")).arg(qApp->applicationName()).arg(file); + QString winTitle = QString(tr("%1 Viewer: [Preview %2]")).arg(qApp->applicationName(), file); setWindowTitle(winTitle); } @@ -96,6 +96,6 @@ void Viewer::displayFile(int index){ pm = pm.scaled(QSize(width() - 20, height() - 20), Qt::KeepAspectRatio, Qt::SmoothTransformation); } mLabel->setPixmap(pm); - QString winTitle = QString(tr("%1 Viewer [%2]")).arg(qApp->applicationName()).arg(mFiles.at(mCurIndex)); + QString winTitle = QString(tr("%1 Viewer [%2]")).arg(qApp->applicationName(), mFiles.at(mCurIndex)); setWindowTitle(winTitle); } -- cgit v1.2.3-70-g09d2