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... --- shemov.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 119a6aa..cf20386 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -111,7 +111,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla mFileWidget = new FSWidget; mTab->addTab(mFileWidget, tr("FS")); connect(mFileWidget, &FSWidget::message, this, &SheMov::statusbarMessage); - connect(mFileWidget, &FSWidget::selectionChanged, [=](int count, qint64 size, qint64 duration) { + connect(mFileWidget, &FSWidget::selectionChanged, this, [=](int count, qint64 size, qint64 duration) { updateSelectedCount(count); setSize(size); setDuration(duration, false); @@ -293,9 +293,9 @@ void SheMov::setSize(qint64 size){ QString selectedSize = l.toString(size); QString freeSize = l.toString(free); if(size < DVDSIZE){ - val = QString("%2 (%3)").arg(QColor(Qt::green).name()).arg(selectedSize).arg(freeSize); + val = QString("%2 (%3)").arg(QColor(Qt::green).name(), selectedSize, freeSize); }else{ - val = QString("%2 (%3)").arg(QColor(Qt::red).name()).arg(selectedSize).arg(freeSize); + val = QString("%2 (%3)").arg(QColor(Qt::red).name(), selectedSize, freeSize); } mSelectedSize->setText(val); } -- cgit v1.2.3-70-g09d2