2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:07:43 +00:00

Fix Blender 2.83 & Qt 5.15

This commit is contained in:
2020-06-24 11:44:00 -04:00
parent 0dd67e0662
commit af64349044
4 changed files with 35 additions and 13 deletions

View File

@@ -503,7 +503,7 @@ void MainWindow::setPath(const QString& path) {
}
void MainWindow::initSlots() {
connect(&m_heclProc, &QProcess::readyRead, [=]() {
connect(&m_heclProc, &QProcess::readyRead, [this]() {
const QByteArray bytes = m_heclProc.readAll();
setTextTermFormatting(QString::fromUtf8(bytes));
});
@@ -512,7 +512,7 @@ void MainWindow::initSlots() {
connect(m_ui->packageBtn, &QPushButton::clicked, this, &MainWindow::onPackage);
connect(m_ui->launchBtn, &QPushButton::clicked, this, &MainWindow::onLaunch);
connect(m_ui->browseBtn, &QPushButton::clicked, [=]() {
connect(m_ui->browseBtn, &QPushButton::clicked, [this]() {
FileDirDialog dialog(this);
dialog.setDirectory(m_path);
dialog.setWindowTitle(tr("Select Working Directory"));
@@ -690,9 +690,9 @@ void MainWindow::initNumberComboOption(QComboBox* action, hecl::CVar* cvar) {
}
}
action->setToolTip(QString::fromUtf8(cvar->rawHelp().data()));
connect(action, static_cast<void (QComboBox::*)(const QString&)>(&QComboBox::currentIndexChanged), this,
[this, cvar](const QString& value) {
cvar->fromInteger(value.toInt());
connect(action, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
[this, action, cvar](const int i) {
cvar->fromInteger(action->itemText(i).toInt());
m_cvarManager.serialize();
});
}