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.
This commit is contained in:
Clinton Stimpson 2008-02-13 13:58:35 -05:00
parent 54a39b58d5
commit c327b569f0
2 changed files with 4 additions and 3 deletions

View File

@ -695,7 +695,6 @@ void CMakeSetupDialog::removeSelectedCacheEntries()
{
pidxs.append(i);
}
this->CacheValues->selectionModel()->clear();
foreach(QPersistentModelIndex pi, pidxs)
{
this->CacheValues->model()->removeRow(pi.row());

View File

@ -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);
}