Commit 57f82571 authored by saubatn's avatar saubatn
Browse files

UPDATE Log level updated. Level 0, always enabled features CAMITK_ERROR &...

UPDATE Log level updated. Level 0, always enabled features CAMITK_ERROR & CAMITK_INFO. Level 1 (WARNING) and 2 (DEBUG) are optional.
FEATURE 588 Fixed warnings at compilation Time (Component.h)

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1872 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 42a2e06e
......@@ -388,8 +388,8 @@ Component * Application::open(const QString & fileName) {
restoreOverrideCursor();
resetProgressBar();
if (!comp->isTopLevel())
CAMITK_WARNING("Application", "Open", "Instanciating a NON top level component.")
if (!comp->isTopLevel())
CAMITK_WARNING("Application", "Open", "Instanciating a NON top level component.")
return comp;
}
......@@ -1056,7 +1056,7 @@ void Application::initResources(){
QTranslator* translator = new QTranslator();
QString languageFile = ":/translate_" + getName().remove("camitk-") +"/translate/translate_" + selectedLanguage + ".qm";
if (!translator->load(languageFile))
CAMITK_WARNING("Application", "initResources", "Cannot load file: " + languageFile.toStdString());
CAMITK_WARNING("Application", "initResources", "Cannot load file: " + languageFile.toStdString())
else
QCoreApplication::installTranslator(translator);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment