mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-10-06 21:06:04 -04:00
NOISSUE eliminate ProgressProvider
This commit is contained in:
1 parent
84549ed807
commit
f8650e3965
32 files changed
+80
-123
No files matched your search
@@ -178,7 +178,7 @@ void JavaListLoadTask::executeTask()
|
||||
|
||||
m_job = std::shared_ptr<JavaCheckerJob>(new JavaCheckerJob("Java detection"));
|
||||
connect(m_job.get(), SIGNAL(finished(QList<JavaCheckResult>)), this, SLOT(javaCheckerFinished(QList<JavaCheckResult>)));
|
||||
connect(m_job.get(), SIGNAL(progress(int, int)), this, SLOT(checkerProgress(int, int)));
|
||||
connect(m_job.get(), SIGNAL(progress(qint64,qint64)), this, SLOT(checkerProgress(qint64, qint64)));
|
||||
|
||||
qDebug() << "Probing the following Java paths: ";
|
||||
int id = 0;
|
||||
@@ -197,7 +197,7 @@ void JavaListLoadTask::executeTask()
|
||||
m_job->start();
|
||||
}
|
||||
|
||||
void JavaListLoadTask::checkerProgress(int current, int total)
|
||||
void JavaListLoadTask::checkerProgress(qint64 current, qint64 total)
|
||||
{
|
||||
float progress = (current * 100.0) / total;
|
||||
this->setProgress((int) progress);
|
||||
|
||||
Reference in new issue
Block a user