diff options
author | dt <qtc-committer@nokia.com> | 2009-05-14 11:26:57 +0200 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2009-05-14 11:26:57 +0200 |
commit | 87e40ac6f5c7c7c5360e6982911761df3c9aeb4d (patch) | |
tree | de7a6f272bd301e7ba0e1ea369f8ecbed481d207 /src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp | |
parent | 286325ceb625b0cc1a40de4f56b73cdc4bcc726e (diff) | |
download | qt-creator-87e40ac6f5c7c7c5360e6982911761df3c9aeb4d.tar.gz |
Remove debugging output
Diffstat (limited to 'src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp b/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp index baf1e00855..8d078f60c6 100644 --- a/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp +++ b/src/plugins/qt4projectmanager/qtuicodemodelsupport.cpp @@ -16,13 +16,13 @@ Qt4UiCodeModelSupport::Qt4UiCodeModelSupport(CppTools::CppModelManagerInterface m_fileName(uiHeaderFile), m_updateIncludingFiles(false) { - qDebug()<<"ctor Qt4UiCodeModelSupport for"<<m_sourceName; +// qDebug()<<"ctor Qt4UiCodeModelSupport for"<<m_sourceName; init(); } Qt4UiCodeModelSupport::~Qt4UiCodeModelSupport() { - qDebug()<<"dtor ~Qt4UiCodeModelSupport for"<<m_sourceName; +// qDebug()<<"dtor ~Qt4UiCodeModelSupport for"<<m_sourceName; } void Qt4UiCodeModelSupport::init() @@ -33,7 +33,7 @@ void Qt4UiCodeModelSupport::init() if (uiHeaderTime.isValid() && (uiHeaderTime > 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"<<m_fileName; +// qDebug()<<"ui*h file is more recent then source file, using information from ui*h file"<<m_fileName; QTextStream stream(&file); m_contents = stream.readAll().toUtf8(); m_cacheTime = uiHeaderTime; @@ -41,17 +41,17 @@ void Qt4UiCodeModelSupport::init() } } - qDebug()<<"ui*h file not found, or not recent enough, trying to create it on the fly"; +// qDebug()<<"ui*h file not found, or not recent enough, trying to create it on the fly"; QFile file(m_sourceName); if (file.open(QFile::ReadOnly)) { QTextStream stream(&file); const QString contents = stream.readAll(); if (runUic(contents)) { - qDebug()<<"created on the fly"; +// qDebug()<<"created on the fly"; return; } else { // uic run was unsuccesfull - qDebug()<<"uic run wasn't succesfull"; +// qDebug()<<"uic run wasn't succesfull"; m_cacheTime = QDateTime(); m_contents = QByteArray(); // and if the header file wasn't there, next time we need to update @@ -61,7 +61,7 @@ void Qt4UiCodeModelSupport::init() return; } } else { - qDebug()<<"Could open "<<m_sourceName<<"needed for the cpp model"; +// qDebug()<<"Could open "<<m_sourceName<<"needed for the cpp model"; m_contents = QByteArray(); } } @@ -97,17 +97,13 @@ bool Qt4UiCodeModelSupport::runUic(const QString &ui) const if (uic.waitForFinished()) { m_contents = uic.readAllStandardOutput(); m_cacheTime = QDateTime::currentDateTime(); -// qDebug()<<"\nusing uic from"<<m_project->qtVersion(m_project->activeBuildConfiguration())->uicCommand(); -// qDebug()<<"resulted in:"; -// qDebug()<< m_contents; -// qDebug()<<"============================="; return true; } else { - qDebug()<<"running uic failed"<<" using uic: "<<m_project->qtVersion(m_project->activeBuildConfiguration())->uicCommand(); - qDebug()<<uic.readAllStandardError(); - qDebug()<<uic.readAllStandardOutput(); - qDebug()<<uic.errorString(); - qDebug()<<uic.error(); +// qDebug()<<"running uic failed"<<" using uic: "<<m_project->qtVersion(m_project->activeBuildConfiguration())->uicCommand(); +// qDebug()<<uic.readAllStandardError(); +// qDebug()<<uic.readAllStandardOutput(); +// qDebug()<<uic.errorString(); +// qDebug()<<uic.error(); uic.kill(); } return false; @@ -115,23 +111,23 @@ bool Qt4UiCodeModelSupport::runUic(const QString &ui) const void Qt4UiCodeModelSupport::updateFromEditor(Designer::Internal::FormWindowEditor *fw) { - qDebug()<<"Qt4UiCodeModelSupport::updateFromEditor"<<fw; +// qDebug()<<"Qt4UiCodeModelSupport::updateFromEditor"<<fw; if (runUic(fw->contents())) { - qDebug()<<"runUic: success, updated on the fly"; +// qDebug()<<"runUic: success, updated on the fly"; updateDocument(); } else { - qDebug()<<"runUic: failed, not updated"; +// qDebug()<<"runUic: failed, not updated"; } } void Qt4UiCodeModelSupport::updateFromBuild() { - qDebug()<<"Qt4UiCodeModelSupport::updateFromBuild() for file"<<m_sourceName; +// qDebug()<<"Qt4UiCodeModelSupport::updateFromBuild() for file"<<m_sourceName; // This is mostly a fall back for the cases when uic couldn't be run // it pays special attention to the case where a ui_*h was newly created QDateTime sourceTime = QFileInfo(m_sourceName).lastModified(); if (m_cacheTime.isValid() && m_cacheTime >= sourceTime) { - qDebug()<<"Cache is still more recent then source"; +// qDebug()<<"Cache is still more recent then source"; return; } else { QFileInfo fi(m_fileName); @@ -139,7 +135,7 @@ void Qt4UiCodeModelSupport::updateFromBuild() if (uiHeaderTime.isValid() && (uiHeaderTime > sourceTime)) { if (m_cacheTime >= uiHeaderTime) return; - qDebug()<<"found ui*h updating from it"; +// qDebug()<<"found ui*h updating from it"; QFile file(m_fileName); if (file.open(QFile::ReadOnly)) { @@ -151,7 +147,7 @@ void Qt4UiCodeModelSupport::updateFromBuild() } } - qDebug()<<"ui*h not found or not more recent then source not changing anything"; +// qDebug()<<"ui*h not found or not more recent then source not changing anything"; } } |