diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-07-14 18:43:47 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-14 14:54:01 -0700 |
commit | cd3f10d5ad4124960b66112074797a16517117e9 (patch) | |
tree | 0863ac82d534553a53b640cc4dcf3cd20828849a /qt-ui/maintab.cpp | |
parent | 4dfb39cc490ed889e872ff54437f70df3ed88553 (diff) | |
download | subsurface-cd3f10d5ad4124960b66112074797a16517117e9.tar.gz |
Offer an option to just complete the text
Make the kids fight no more.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index abb6af9bd..05196254a 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -61,10 +61,11 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), QCompleter *completer = new QCompleter(); QListView *completerListview = new QListView(); + LocationInformationModel::instance()->setFirstRowTextField(ui.location); + completer->setPopup(completerListview); completer->setModel(LocationInformationModel::instance()); completer->setCompletionColumn(LocationInformationModel::NAME); - completer->setCompletionRole(Qt::DisplayRole); completer->setCaseSensitivity(Qt::CaseInsensitive); completerListview->setItemDelegate(new LocationFilterDelegate()); |