Mercurial > retraceit
comparison src/filterwidget.cpp @ 18:e12284a222ba
Fix resetting filters
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 14 Apr 2015 18:56:13 +0200 |
parents | 73efe717b944 |
children | 6b9b5efcd7f4 |
comparison
equal
deleted
inserted
replaced
17:73efe717b944 | 18:e12284a222ba |
---|---|
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 void FilterWidget::filterChanged() { | 46 void FilterWidget::filterChanged() { |
47 QString filterText = mEditLine->text(); | 47 QString filterText = mEditLine->text(); |
48 if (filterText.size() < 1) { | |
49 return; | |
50 } | |
51 qDebug() << "Filter on Column: " << mColFilterMap.value(mCombo->currentIndex()); | |
52 qDebug() << "Instead of: " << mCombo->currentIndex(); | |
53 mModel->setFilterKeyColumn(mColFilterMap.value(mCombo->currentIndex())); | 48 mModel->setFilterKeyColumn(mColFilterMap.value(mCombo->currentIndex())); |
54 mModel->setFilterWildcard(filterText); | 49 mModel->setFilterWildcard(filterText); |
55 } | 50 } |
56 | 51 |
57 void FilterWidget::setupGUI() { | 52 void FilterWidget::setupGUI() { |