summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
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-07 06:19:04 +0800
commitddecc3b56a7d2b51d3fdd2d02c26b129b38f6ee9 (patch)
tree83f9d6e57523092fc5142fde2b0676c237fafc4f /qt-ui/maintab.cpp
parente783493f8ad77284b3f62e5b4a0ede1680c8d3b7 (diff)
downloadsubsurface-ddecc3b56a7d2b51d3fdd2d02c26b129b38f6ee9.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>
Diffstat (limited to 'qt-ui/maintab.cpp')
-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 fb37992b1..1de4b6df7 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);