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);
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
app.setStyle(new StyleOverride());
|
||||
QDirIterator it(":", QDirIterator::Subdirectories);
|
||||
while (it.hasNext()) {
|
||||
qDebug() << it.next() << "\n";
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
CocoaEventFilter cocoafilter;
|
||||
|
@@ -79,7 +79,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
toolbar_spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
ui->toolBar->addWidget(toolbar_spacer);
|
||||
|
||||
auto toolbar_label = new QLabel();
|
||||
auto toolbar_label = new QLabel();
|
||||
ui->toolBar->addWidget(toolbar_label);
|
||||
|
||||
this->setWindowIcon(QIcon(":/settings/win/icons/86Box-yellow.ico"));
|
||||
@@ -104,6 +104,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
toolbar_label->setText(QString("%1 - %2").arg(parts[1], parts.last()));
|
||||
}
|
||||
#endif
|
||||
ui->actionPause->setChecked(dopause);
|
||||
});
|
||||
connect(this, &MainWindow::getTitleForNonQtThread, this, &MainWindow::getTitle_, Qt::BlockingQueuedConnection);
|
||||
|
||||
|
Reference in New Issue
Block a user