forked from qt-creator/qt-creator
Make it possible to specify shortcuts for Locator filters.
Task-number: QTCREATORBUG-1147
This commit is contained in:
@@ -158,6 +158,8 @@ void CommandMappings::commandChanged(QTreeWidgetItem *current)
|
||||
|
||||
void CommandMappings::filterChanged(const QString &f)
|
||||
{
|
||||
if (!m_page)
|
||||
return;
|
||||
for (int i=0; i<m_page->commandList->topLevelItemCount(); ++i) {
|
||||
QTreeWidgetItem *item = m_page->commandList->topLevelItem(i);
|
||||
item->setHidden(filter(f, item));
|
||||
@@ -203,3 +205,10 @@ void CommandMappings::setModified(QTreeWidgetItem *item , bool modified)
|
||||
f.setBold(modified);
|
||||
item->setFont(2, f);
|
||||
}
|
||||
|
||||
QString CommandMappings::filterText() const
|
||||
{
|
||||
if (!m_page)
|
||||
return QString();
|
||||
return m_page->filterEdit->text();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user