qt: Update pause action status when paused without using action
This commit is contained in:
@@ -113,10 +113,6 @@ int main(int argc, char* argv[]) {
|
|||||||
fmt.setSwapInterval(0);
|
fmt.setSwapInterval(0);
|
||||||
QSurfaceFormat::setDefaultFormat(fmt);
|
QSurfaceFormat::setDefaultFormat(fmt);
|
||||||
app.setStyle(new StyleOverride());
|
app.setStyle(new StyleOverride());
|
||||||
QDirIterator it(":", QDirIterator::Subdirectories);
|
|
||||||
while (it.hasNext()) {
|
|
||||||
qDebug() << it.next() << "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
CocoaEventFilter cocoafilter;
|
CocoaEventFilter cocoafilter;
|
||||||
|
@@ -104,6 +104,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
toolbar_label->setText(QString("%1 - %2").arg(parts[1], parts.last()));
|
toolbar_label->setText(QString("%1 - %2").arg(parts[1], parts.last()));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
ui->actionPause->setChecked(dopause);
|
||||||
});
|
});
|
||||||
connect(this, &MainWindow::getTitleForNonQtThread, this, &MainWindow::getTitle_, Qt::BlockingQueuedConnection);
|
connect(this, &MainWindow::getTitleForNonQtThread, this, &MainWindow::getTitle_, Qt::BlockingQueuedConnection);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user