fix focus fighting between search field and cache value editors
This commit is contained in:
parent
68b8332088
commit
0b49e4ad1e
|
@ -221,7 +221,7 @@ void CMakeSetupDialog::initialize()
|
||||||
QObject::connect(this->ViewType, SIGNAL(currentIndexChanged(int)),
|
QObject::connect(this->ViewType, SIGNAL(currentIndexChanged(int)),
|
||||||
this, SLOT(setViewType(int)));
|
this, SLOT(setViewType(int)));
|
||||||
QObject::connect(this->Search, SIGNAL(textChanged(QString)),
|
QObject::connect(this->Search, SIGNAL(textChanged(QString)),
|
||||||
this->CacheValues, SLOT(setSearchFilter(QString)));
|
this, SLOT(setSearchFilter(QString)));
|
||||||
|
|
||||||
QObject::connect(this->CMakeThread->cmakeInstance(),
|
QObject::connect(this->CMakeThread->cmakeInstance(),
|
||||||
SIGNAL(generatorChanged(QString)),
|
SIGNAL(generatorChanged(QString)),
|
||||||
|
@ -1031,3 +1031,10 @@ void CMakeSetupDialog::showUserChanges()
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMakeSetupDialog::setSearchFilter(const QString& str)
|
||||||
|
{
|
||||||
|
this->CacheValues->selectionModel()->clear();
|
||||||
|
this->CacheValues->setSearchFilter(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,7 @@ protected slots:
|
||||||
void setDebugOutput(bool);
|
void setDebugOutput(bool);
|
||||||
void setViewType(int);
|
void setViewType(int);
|
||||||
void showUserChanges();
|
void showUserChanges();
|
||||||
|
void setSearchFilter(const QString& str);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue