aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-06 20:00:10 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-09 09:28:31 +0800
commit0c3075dc41cc9a6256bd5846e1654bc6c157d331 (patch)
tree8b60f9da8e5ef3c7a307200a5b652a22f0c8b627
parenta2e528cea09b8efcd2ab16300c6d664c9495de6c (diff)
downloadsubsurface-0c3075dc41cc9a6256bd5846e1654bc6c157d331.tar.gz
Add CaseInsensitivity to all of the completers.
Just one of the completers had Qt::CaseInsentitive set, setting for all of them. Fixes #400 Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 8da113700..d149815f6 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -91,6 +91,11 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
completers.location = new QCompleter(LocationCompletionModel::instance(), ui.location);
completers.suit = new QCompleter(SuitCompletionModel::instance(), ui.suit);
completers.tags = new QCompleter(TagCompletionModel::instance(), ui.tagWidget);
+ completers.buddy->setCaseSensitivity(Qt::CaseInsensitive);
+ completers.divemaster->setCaseSensitivity(Qt::CaseInsensitive);
+ completers.location->setCaseSensitivity(Qt::CaseInsensitive);
+ completers.suit->setCaseSensitivity(Qt::CaseInsensitive);
+ completers.buddy->setCaseSensitivity(Qt::CaseInsensitive);
completers.tags->setCaseSensitivity(Qt::CaseInsensitive);
ui.buddy->setCompleter(completers.buddy);
ui.divemaster->setCompleter(completers.divemaster);