summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-09-04 20:43:07 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-09-04 20:43:07 (GMT)
commit0b49e4ad1e0531755349b3ddb172305787f3f614 (patch)
treebe920b067d386c08daf86bd92f87d0d75ed299d1
parent68b833208886bc07223db96b7377ee71939b7bc6 (diff)
downloadCMake-0b49e4ad1e0531755349b3ddb172305787f3f614.zip
CMake-0b49e4ad1e0531755349b3ddb172305787f3f614.tar.gz
CMake-0b49e4ad1e0531755349b3ddb172305787f3f614.tar.bz2
fix focus fighting between search field and cache value editors
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx9
-rw-r--r--Source/QtDialog/CMakeSetupDialog.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index d873334..552f84e 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -221,7 +221,7 @@ void CMakeSetupDialog::initialize()
QObject::connect(this->ViewType, SIGNAL(currentIndexChanged(int)),
this, SLOT(setViewType(int)));
QObject::connect(this->Search, SIGNAL(textChanged(QString)),
- this->CacheValues, SLOT(setSearchFilter(QString)));
+ this, SLOT(setSearchFilter(QString)));
QObject::connect(this->CMakeThread->cmakeInstance(),
SIGNAL(generatorChanged(QString)),
@@ -1031,3 +1031,10 @@ void CMakeSetupDialog::showUserChanges()
dialog.exec();
}
+void CMakeSetupDialog::setSearchFilter(const QString& str)
+{
+ this->CacheValues->selectionModel()->clear();
+ this->CacheValues->setSearchFilter(str);
+}
+
+
diff --git a/Source/QtDialog/CMakeSetupDialog.h b/Source/QtDialog/CMakeSetupDialog.h
index e758056..911af0f 100644
--- a/Source/QtDialog/CMakeSetupDialog.h
+++ b/Source/QtDialog/CMakeSetupDialog.h
@@ -77,6 +77,7 @@ protected slots:
void setDebugOutput(bool);
void setViewType(int);
void showUserChanges();
+ void setSearchFilter(const QString& str);
protected: