aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-05-12 16:19:47 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-05-12 16:19:47 -0400
commit6ce5ee411d1e6093b68b1b4eca5dc6c12b927a96 (patch)
tree1a98416041b39765c1c42ffbeab6da9fd40e181b /SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp
parent1fc9d1a4a1af320e39810cee21bed1201e2bddfd (diff)
parent9618f0ebbf4b88045247c01ce8c8f58203508ebf (diff)
Merge tag 'upstream/3.0.6'
Upstream version 3.0.6 # gpg: Signature made Tue 12 May 2015 04:19:45 PM EDT using RSA key ID EBE9BD91 # gpg: Good signature from "Unit 193 <unit193@gmail.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.org>" # gpg: aka "Unit 193 <unit193@ubuntu.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.com>"
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp')
-rw-r--r--SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.cpp10
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;