Qt deprecation fixes
This commit is contained in:
parent
f7704a0339
commit
f009c54773
3 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ AddonsModel::~AddonsModel()
|
||||||
void AddonsModel::resetData(const QStringList& ndata)
|
void AddonsModel::resetData(const QStringList& ndata)
|
||||||
{
|
{
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
QSet<QString> newSet = QSet<QString>::fromList(ndata);
|
QSet<QString> newSet = QSet<QString>{ndata.begin(), ndata.end()};
|
||||||
|
|
||||||
for(const auto& path : m_addonsList) {
|
for(const auto& path : m_addonsList) {
|
||||||
if (!newSet.contains(path)) {
|
if (!newSet.contains(path)) {
|
||||||
|
|
|
@ -147,7 +147,7 @@ void PackageDelegate::catalogRefreshed(CatalogRef aCatalog, StatusCode aReason)
|
||||||
// silent about this
|
// silent about this
|
||||||
} else if (aCatalog) {
|
} else if (aCatalog) {
|
||||||
qWarning() << "failed refresh of"
|
qWarning() << "failed refresh of"
|
||||||
<< QString::fromStdString(aCatalog->url()) << ":" << aReason << endl;
|
<< QString::fromStdString(aCatalog->url()) << ":" << aReason;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ void AircraftProxyModel::setAircraftFilterString(QString s)
|
||||||
|
|
||||||
m_filterProps = new SGPropertyNode;
|
m_filterProps = new SGPropertyNode;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
Q_FOREACH(QString term, s.split(QRegExp("\\W+"), QString::SkipEmptyParts)) {
|
Q_FOREACH(QString term, s.split(QRegExp("\\W+"), Qt::SkipEmptyParts)) {
|
||||||
m_filterProps->getNode("all-of/text", index++, true)->setStringValue(term.toStdString());
|
m_filterProps->getNode("all-of/text", index++, true)->setStringValue(term.toStdString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue