Show more info about a search and move UI for replacing

Change-Id: I6e024583c0d778a65007eb4590118c4329b2118a
Reviewed-on: http://codereview.qt-project.org/4554
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Eike Ziller
2011-09-07 20:28:04 +02:00
parent d298cffeb0
commit 5990b039e8
23 changed files with 249 additions and 66 deletions

View File

@@ -77,6 +77,16 @@ Utils::FileIterator *FindInCurrentFile::files() const
return new Utils::FileIterator(QStringList() << fileName, QList<QTextCodec *>() << codec);
}
QString FindInCurrentFile::label() const
{
return tr("File '%1':").arg(QFileInfo(m_currentFile->fileName()).fileName());
}
QString FindInCurrentFile::toolTip() const
{
return tr("File path: %1\n%2").arg(QDir::toNativeSeparators(m_currentFile->fileName()));
}
bool FindInCurrentFile::isEnabled() const
{
return m_currentFile && !m_currentFile->fileName().isEmpty();