diff --git a/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp b/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp index 20a9d25668e..695666ba0e2 100644 --- a/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp +++ b/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp @@ -50,13 +50,15 @@ Qt4UiCodeModelSupport::Qt4UiCodeModelSupport(CppTools::CppModelManagerInterface m_fileName(uiHeaderFile), m_updateIncludingFiles(false) { -// qDebug()<<"ctor Qt4UiCodeModelSupport for"< sourceTime)) { QFile file(m_fileName); if (file.open(QFile::ReadOnly)) { -// qDebug()<<"ui*h file is more recent then source file, using information from ui*h file"<= sourceTime) { -// qDebug()<<"Cache is still more recent then source"; + if (debug) + qDebug()<<"Cache is still more recent then source"; return; } else { QFileInfo fi(m_fileName); @@ -169,7 +182,8 @@ void Qt4UiCodeModelSupport::updateFromBuild() if (uiHeaderTime.isValid() && (uiHeaderTime > sourceTime)) { if (m_cacheTime >= uiHeaderTime) return; -// qDebug()<<"found ui*h updating from it"; + if (debug) + qDebug()<<"found ui*h updating from it"; QFile file(m_fileName); if (file.open(QFile::ReadOnly)) { @@ -180,8 +194,8 @@ void Qt4UiCodeModelSupport::updateFromBuild() return; } } - -// qDebug()<<"ui*h not found or not more recent then source not changing anything"; + if (debug) + qDebug()<<"ui*h not found or not more recent then source not changing anything"; } }