forked from qt-creator/qt-creator
Replace uses of qVariantFromValue with QVariant::fromValue
Deprecated in Qt 5.14, alternative has been around since Qt 4 at least. Change-Id: I4e3a53c289088368609e0d0ce2405a832d311308 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ QWidget *SystemSettings::widget()
|
||||
if (HostOsInfo::isAnyUnixHost()) {
|
||||
const QVector<TerminalCommand> availableTerminals = ConsoleProcess::availableTerminalEmulators();
|
||||
for (const TerminalCommand &term : availableTerminals)
|
||||
m_page->terminalComboBox->addItem(term.command, qVariantFromValue(term));
|
||||
m_page->terminalComboBox->addItem(term.command, QVariant::fromValue(term));
|
||||
updateTerminalUi(ConsoleProcess::terminalEmulator(ICore::settings()));
|
||||
connect(m_page->terminalComboBox,
|
||||
QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
|
||||
Reference in New Issue
Block a user