|
|
@ -159,13 +159,13 @@ Slider::Slider(QWidget *parent) : thumbnail_label(parent), QSlider(Qt::Horizonta |
|
|
|
qlog_future = std::make_unique<QFuture<void>>(QtConcurrent::run(this, &Slider::parseQLog)); |
|
|
|
qlog_future = std::make_unique<QFuture<void>>(QtConcurrent::run(this, &Slider::parseQLog)); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
QObject::connect(qApp, &QApplication::aboutToQuit, [this]() { |
|
|
|
|
|
|
|
|
|
|
|
Slider::~Slider() { |
|
|
|
|
|
|
|
abort_parse_qlog = true; |
|
|
|
abort_parse_qlog = true; |
|
|
|
if (qlog_future) { |
|
|
|
if (qlog_future && qlog_future->isRunning()) { |
|
|
|
|
|
|
|
qDebug() << "stopping thumbnail thread"; |
|
|
|
qlog_future->waitForFinished(); |
|
|
|
qlog_future->waitForFinished(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
AlertInfo Slider::alertInfo(double seconds) { |
|
|
|
AlertInfo Slider::alertInfo(double seconds) { |
|
|
|