diff options
author | Arno <arno@disconnect.de> | 2018-06-13 10:24:21 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-06-13 10:24:21 +0200 |
commit | 1693f94607678d892439ca02c08ac768aec3f46a (patch) | |
tree | 35e45c0eec3be3cac355459209408a62bff2f632 /torrentwidget.cpp | |
parent | 353e777931fd7be08fbf2d91cdb16479df0acb81 (diff) | |
download | ShemovCleaner-1693f94607678d892439ca02c08ac768aec3f46a.tar.gz ShemovCleaner-1693f94607678d892439ca02c08ac768aec3f46a.tar.bz2 ShemovCleaner-1693f94607678d892439ca02c08ac768aec3f46a.zip |
Remove useless ProgressBar
No need for the ProgressBar in the status line any more...
Diffstat (limited to 'torrentwidget.cpp')
-rw-r--r-- | torrentwidget.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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("<p>Looking at %1 files could take a while</p><p>Do you really want to continue</p>")).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); |