mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
fix deprecated warning QString::SplitBehavior
enum QString::SplitBehavior This enum is obsolete. Use Qt::SplitBehavior instead. This enum was introduced or modified in Qt 5.14.
This commit is contained in:
committed by
Laurent Trinques
parent
2570108caf
commit
2ec018a4e9
@@ -638,7 +638,11 @@ void ElementsCollectionWidget::search()
|
||||
}
|
||||
|
||||
hideCollection(true);
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) // ### Qt 6: remove
|
||||
QStringList text_list = text.split("+", QString::SkipEmptyParts);
|
||||
#else
|
||||
QStringList text_list = text.split("+", Qt::SkipEmptyParts);
|
||||
#endif
|
||||
QModelIndexList match_index;
|
||||
foreach (QString txt, text_list) {
|
||||
match_index << m_model->match(m_showed_index.isValid() ? m_model->index(0,0,m_showed_index) : m_model->index(0,0),
|
||||
|
||||
Reference in New Issue
Block a user