diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-06 20:00:10 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-09 09:28:31 +0800 |
commit | 0c3075dc41cc9a6256bd5846e1654bc6c157d331 (patch) | |
tree | 8b60f9da8e5ef3c7a307200a5b652a22f0c8b627 | |
parent | a2e528cea09b8efcd2ab16300c6d664c9495de6c (diff) | |
download | subsurface-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.cpp | 5 |
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); |