diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-02-13 18:58:35 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-02-13 18:58:35 (GMT) |
commit | c327b569f07e1fb0f1421e9e72bb1f61a3547414 (patch) | |
tree | 6adb4f28d38f0b17c4635df0042a942ae14759e8 /Source/QtDialog/QCMakeCacheView.cxx | |
parent | 54a39b58d59f6ec537860ee3649c319d4c04c5e5 (diff) | |
download | CMake-c327b569f07e1fb0f1421e9e72bb1f61a3547414.zip CMake-c327b569f07e1fb0f1421e9e72bb1f61a3547414.tar.gz CMake-c327b569f07e1fb0f1421e9e72bb1f61a3547414.tar.bz2 |
ENH: Remove CurrentChanged from the table view's edit triggers.
It results in editor issues when modifying the view.
Remove workarounds for some of those issues.
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 466006a..ba9ece3 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -70,7 +70,10 @@ QCMakeCacheView::QCMakeCacheView(QWidget* p) QCMakeCacheModelDelegate* delegate = new QCMakeCacheModelDelegate(this); this->setItemDelegate(delegate); - this->setEditTriggers(QAbstractItemView::AllEditTriggers); + this->setEditTriggers(QAbstractItemView::DoubleClicked | + QAbstractItemView::SelectedClicked | + QAbstractItemView::EditKeyPressed | + QAbstractItemView::AnyKeyPressed); // set up headers and sizes int h = 0; @@ -146,7 +149,6 @@ bool QCMakeCacheView::showAdvanced() const void QCMakeCacheView::setSearchFilter(const QString& s) { - this->selectionModel()->clear(); this->SearchFilter->setFilterFixedString(s); } |