mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
Implement stringable interface for Version type
This commit is contained in:
@@ -1892,14 +1892,14 @@ void MainWindow::on_actionSearchWidget_triggered()
|
||||
#ifdef Q_OS_WIN
|
||||
const QMessageBox::StandardButton buttonPressed = QMessageBox::question(this, tr("Old Python Runtime")
|
||||
, tr("Your Python version (%1) is outdated. Minimum requirement: %2.\nDo you want to install a newer version now?")
|
||||
.arg(pyInfo.version, QLatin1String("3.5.0"))
|
||||
.arg(pyInfo.version.toString(), u"3.5.0")
|
||||
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes);
|
||||
if (buttonPressed == QMessageBox::Yes)
|
||||
installPython();
|
||||
#else
|
||||
QMessageBox::information(this, tr("Old Python Runtime")
|
||||
, tr("Your Python version (%1) is outdated. Please upgrade to latest version for search engines to work.\nMinimum requirement: %2.")
|
||||
.arg(pyInfo.version, QLatin1String("3.5.0")));
|
||||
.arg(pyInfo.version.toString(), u"3.5.0"));
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ void PluginSelectDialog::addNewPlugin(const QString &pluginName)
|
||||
DownloadRequest(plugin->url + u"/favicon.ico").saveToFile(true)
|
||||
, this, &PluginSelectDialog::iconDownloadFinished);
|
||||
}
|
||||
item->setText(PLUGIN_VERSION, plugin->version);
|
||||
item->setText(PLUGIN_VERSION, plugin->version.toString());
|
||||
}
|
||||
|
||||
void PluginSelectDialog::startAsyncOp()
|
||||
@@ -483,7 +483,7 @@ void PluginSelectDialog::pluginUpdated(const QString &name)
|
||||
finishAsyncOp();
|
||||
PluginVersion version = m_pluginManager->pluginInfo(name)->version;
|
||||
QTreeWidgetItem *item = findItemWithID(name);
|
||||
item->setText(PLUGIN_VERSION, version);
|
||||
item->setText(PLUGIN_VERSION, version.toString());
|
||||
m_updatedPlugins.append(name);
|
||||
finishPluginUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user