mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
NOISSUE more refactoring
This commit is contained in:
parent
69213b1206
commit
9fc677c2a4
21 changed files with 33 additions and 32 deletions
|
|
@ -4,7 +4,7 @@ SequentialTask::SequentialTask(QObject *parent) : Task(parent), m_currentIndex(-
|
|||
{
|
||||
}
|
||||
|
||||
void SequentialTask::addTask(shared_qobject_ptr<Task> task)
|
||||
void SequentialTask::addTask(Task::Ptr task)
|
||||
{
|
||||
m_queue.append(task);
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ void SequentialTask::startNext()
|
|||
{
|
||||
if (m_currentIndex != -1)
|
||||
{
|
||||
shared_qobject_ptr<Task> previous = m_queue[m_currentIndex];
|
||||
Task::Ptr previous = m_queue[m_currentIndex];
|
||||
disconnect(previous.get(), 0, this, 0);
|
||||
}
|
||||
m_currentIndex++;
|
||||
|
|
@ -28,7 +28,7 @@ void SequentialTask::startNext()
|
|||
emitSucceeded();
|
||||
return;
|
||||
}
|
||||
shared_qobject_ptr<Task> next = m_queue[m_currentIndex];
|
||||
Task::Ptr next = m_queue[m_currentIndex];
|
||||
connect(next.get(), SIGNAL(failed(QString)), this, SLOT(subTaskFailed(QString)));
|
||||
connect(next.get(), SIGNAL(status(QString)), this, SLOT(subTaskStatus(QString)));
|
||||
connect(next.get(), SIGNAL(progress(qint64, qint64)), this, SLOT(subTaskProgress(qint64, qint64)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue