Commit 07513077 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against last qt5.15 without deprecated method

parent 9c8705c5
......@@ -64,9 +64,11 @@ GeneralConfigurationWidget::GeneralConfigurationWidget()
startupLogMode->addItem(logMode->icon(), logMode->name(), QVariant(logMode->id()));
}
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(startupLogMode, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &GeneralConfigurationWidget::configurationChanged);
#else
connect(startupLogMode, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), this, &GeneralConfigurationWidget::configurationChanged);
#endif
connect(maxLines, QOverload<int>::of(&QSpinBox::valueChanged), this, &GeneralConfigurationWidget::configurationChanged);
connect(deleteDuplicatedLines, &QAbstractButton::clicked, this, &GeneralConfigurationWidget::configurationChanged);
......
......@@ -118,7 +118,7 @@ void ProcessOutputLogFileReader::startProcess()
connect(d->process, SIGNAL(finished(int,QProcess::ExitStatus)), this,
SLOT(emitProcessOutput(int,QProcess::ExitStatus)));
d->process->start(d->logFile.url().path(), QIODevice::ReadOnly | QIODevice::Text);
d->process->start(d->logFile.url().path(), QStringList(), QIODevice::ReadOnly | QIODevice::Text);
d->process->waitForStarted();
......
......@@ -79,7 +79,11 @@ StatusBar::StatusBar(QWidget *parent)
d->messageList = new KComboBox(this);
d->messageList->setInsertPolicy(QComboBox::InsertAtTop);
d->messageList->setMaxVisibleItems(5);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(d->messageList, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &StatusBar::selectLastHistory);
#else
connect(d->messageList, QOverload<int, const QString &>::of(&KComboBox::currentIndexChanged), this, &StatusBar::selectLastHistory);
#endif
/*
//TODO Define a specifical palette (and make it works !)
QPalette palette(d->messageList->palette());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment