forked from qt-creator/qt-creator
Add "Find in directory" to project tree context menu
And also to the filesystem view. Task-Nr: QTCREATORBUG-5879 Change-Id: I27bfe05808182f56deafd6ceab474894631f0a26 Reviewed-on: http://codereview.qt.nokia.com/4185 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
b09f527f24
commit
b8b8f167b1
@@ -186,6 +186,16 @@ void FindPlugin::openFindFilter()
|
||||
d->m_findDialog->open(filter);
|
||||
}
|
||||
|
||||
void FindPlugin::openFindDialog(IFindFilter *filter)
|
||||
{
|
||||
if (d->m_currentDocumentFind->candidateIsEnabled())
|
||||
d->m_currentDocumentFind->acceptCandidate();
|
||||
QString currentFindString = (d->m_currentDocumentFind->isEnabled() ? d->m_currentDocumentFind->currentFindString() : "");
|
||||
if (!currentFindString.isEmpty())
|
||||
d->m_findDialog->setFindText(currentFindString);
|
||||
d->m_findDialog->open(filter);
|
||||
}
|
||||
|
||||
void FindPlugin::setupMenu()
|
||||
{
|
||||
Core::ActionManager *am = Core::ICore::instance()->actionManager();
|
||||
|
||||
Reference in New Issue
Block a user