diff options
| author | 2015-05-12 16:19:40 -0400 | |
|---|---|---|
| committer | 2015-05-12 16:19:40 -0400 | |
| commit | 9618f0ebbf4b88045247c01ce8c8f58203508ebf (patch) | |
| tree | 20c9894691353ee8bab4eec668e9b0b6c6426e0f /SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp | |
| parent | a308f430f694423064ebc86fd0506c8c6fdb3d93 (diff) | |
Imported Upstream version 3.0.6upstream/3.0.6
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp b/SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp index 78f0db8..c0f527f 100644 --- a/SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp @@ -534,7 +534,7 @@ QList<QStandardItem *> DbTreeModel::refreshSchemaTables(const QStringList &table { QStringList sortedTables = tables; if (sort) - qSort(sortedTables); + sortedTables.sort(Qt::CaseInsensitive); QList<QStandardItem *> items; foreach (const QString& table, sortedTables) @@ -573,7 +573,7 @@ StrHash<QList<QStandardItem *> > DbTreeModel::refreshSchemaIndexes(const StrHash { sortedIndexes = indexes[key]; if (sort) - qSort(sortedIndexes); + sortedIndexes.sort(Qt::CaseInsensitive); for (const QString& index : sortedIndexes) items[key] += DbTreeItemFactory::createIndex(index, this); @@ -589,7 +589,7 @@ StrHash<QList<QStandardItem*>> DbTreeModel::refreshSchemaTriggers(const StrHash< { sortedTriggers = triggers[key]; if (sort) - qSort(sortedTriggers); + sortedTriggers.sort(Qt::CaseInsensitive); for (const QString& trigger : sortedTriggers) items[key] += DbTreeItemFactory::createTrigger(trigger, this); @@ -601,10 +601,10 @@ QList<QStandardItem *> DbTreeModel::refreshSchemaViews(const QStringList &views, { QStringList sortedViews = views; if (sort) - qSort(sortedViews); + sortedViews.sort(Qt::CaseInsensitive); QList<QStandardItem *> items; - foreach (const QString& view, views) + foreach (const QString& view, sortedViews) items += DbTreeItemFactory::createView(view, this); return items; |
