forked from qt-creator/qt-creator
		
	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:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user