From 1693f94607678d892439ca02c08ac768aec3f46a Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 13 Jun 2018 10:24:21 +0200 Subject: Remove useless ProgressBar No need for the ProgressBar in the status line any more... --- torrentwidget.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'torrentwidget.cpp') diff --git a/torrentwidget.cpp b/torrentwidget.cpp index 8cdbca1..a118df1 100644 --- a/torrentwidget.cpp +++ b/torrentwidget.cpp @@ -166,9 +166,6 @@ void TorrentWidget::gatherData(){ q.prepare("SELECT COUNT(*) FROM metadata WHERE tsubject = :fn"); QDir d(mDir->text()); QFileInfoList fl = d.entryInfoList(QStringList() << mExt, QDir::Files, QDir::Name); - mProgressBar->reset(); - mProgressBar->setMinimum(0); - mProgressBar->setMaximum(fl.count() - 1); if(fl.count() > 100){ QString msg = QString(tr("

Looking at %1 files could take a while

Do you really want to continue

")).arg(QString::number(fl.count())); int retval = QMessageBox::question(this, tr("Continue"), msg); @@ -176,7 +173,6 @@ void TorrentWidget::gatherData(){ return; } } - int count = 0; mFileView->setSortingEnabled(false); mModel->clear(); QStandardItem *root = mModel->invisibleRootItem(); @@ -213,7 +209,6 @@ void TorrentWidget::gatherData(){ fData[NameColumn]->setForeground(redBrush); } root->appendRow(fData); - mProgressBar->setValue(++count); } qApp->processEvents(); mFileView->setSortingEnabled(true); -- cgit v1.2.3-70-g09d2