update currentpoLabel async
This commit is contained in:
parent
77bfc4a59a
commit
ffa03cc0e6
|
@ -74,5 +74,10 @@ void EditSample::setCurrentPosition(uint64_t cp) {
|
|||
currentposition = cp;
|
||||
QTime time = timeFromMS(cp);
|
||||
std::string formatedTime = formatTime(time);
|
||||
|
||||
// ui->currentPosLabel->setText(QString::fromStdString("Current: " + formatedTime));
|
||||
|
||||
// set text async
|
||||
QString input = QString::fromStdString("Current: " + formatedTime);
|
||||
QMetaObject::invokeMethod(ui->currentPosLabel, "setText", Qt::QueuedConnection, Q_ARG(QString, input));
|
||||
}
|
Loading…
Reference in New Issue