summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2022-04-15 13:27:34 +0200
committerArno <arno@disconnect.de>2022-04-15 13:27:34 +0200
commit856119c5a43b4781b051b93a0713c152cfd99f85 (patch)
tree4e2fde4e7a76179cc243e0665091c6ad429ea640 /shemov.cpp
parent62d3ca1482b202d2883eeb5e17e72300e8612477 (diff)
downloadSheMov-856119c5a43b4781b051b93a0713c152cfd99f85.tar.gz
SheMov-856119c5a43b4781b051b93a0713c152cfd99f85.tar.bz2
SheMov-856119c5a43b4781b051b93a0713c152cfd99f85.zip
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...
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp6
1 files changed, 3 insertions, 3 deletions
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("<span style=\"color:%1\">%2 (%3)</span>").arg(QColor(Qt::green).name()).arg(selectedSize).arg(freeSize);
+ val = QString("<span style=\"color:%1\">%2 (%3)</span>").arg(QColor(Qt::green).name(), selectedSize, freeSize);
}else{
- val = QString("<span style=\"color:%1\">%2 (%3)</span>").arg(QColor(Qt::red).name()).arg(selectedSize).arg(freeSize);
+ val = QString("<span style=\"color:%1\">%2 (%3)</span>").arg(QColor(Qt::red).name(), selectedSize, freeSize);
}
mSelectedSize->setText(val);
}