GUI: Fix GUI to recognize and use "possible error" type (was "all" earlier).

This commit is contained in:
Kimmo Varis 2009-07-31 22:12:05 +03:00
parent 8588012df7
commit 2fb3b187f0
7 changed files with 23 additions and 10 deletions

View File

@ -459,7 +459,7 @@ Please check the application path and parameters are correct.</source>
</message>
<message>
<location filename="resultstree.cpp" line="611"/>
<source>all</source>
<source>possible error</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -482,8 +482,12 @@ Please check the application path and parameters are correct.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="611"/>
<source>possible error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>all</source>
<translation>All</translation>
<translation type="obsolete">All</translation>
</message>
<message>
<location filename="resultstree.cpp" line="615"/>

View File

@ -486,8 +486,12 @@ Tarkista että ohjelman polku ja parametrit ovat oikeat.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="611"/>
<source>possible error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>all</source>
<translation>Epävarmat</translation>
<translation type="obsolete">Epävarmat</translation>
</message>
<message>
<location filename="resultstree.cpp" line="615"/>

View File

@ -20,7 +20,8 @@
</message>
<message utf8="true">
<location filename="about.ui" line="81"/>
<source>Copyright (C) 2007-2009 Daniel Marjam??ki and cppcheck team.</source>
<source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source>
<oldsource>Copyright (C) 2007-2009 Daniel Marjam??ki and cppcheck team.</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
@ -466,7 +467,7 @@ Please check the application path and parameters are correct.</source>
</message>
<message>
<location filename="resultstree.cpp" line="611"/>
<source>all</source>
<source>possible error</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -479,8 +479,12 @@ Kontrollera att sökvägen och parametrarna är korrekta.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="611"/>
<source>possible error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>all</source>
<translation>allt</translation>
<translation type="obsolete">allt</translation>
</message>
<message>
<location filename="resultstree.cpp" line="615"/>

View File

@ -73,7 +73,7 @@ public slots:
void ClearResults();
/**
* @brief Show errors with type "all"
* @brief Show errors with type "possible error"
* @param checked Should errors be shown (true) or hidden (false)
*/
void ShowAll(bool checked);

View File

@ -183,7 +183,7 @@ ShowTypes ResultsTree::VariantToShowType(const QVariant &data)
ShowTypes ResultsTree::SeverityToShowType(const QString & severity)
{
if (severity == "all")
if (severity == "possible error")
return SHOW_ALL;
if (severity == "error")
return SHOW_ERRORS;
@ -528,7 +528,7 @@ void ResultsTree::CopyPath(QStandardItem *target, bool fullPath)
QString ResultsTree::SeverityToIcon(const QString &severity)
{
if (severity == "all")
if (severity == "possible error")
return ":images/dialog-warning.png";
if (severity == "error")
return ":images/dialog-error.png";
@ -608,7 +608,7 @@ QString ResultsTree::ShowTypeToString(ShowTypes type)
switch (type)
{
case SHOW_ALL:
return tr("all");
return tr("possible error");
break;
case SHOW_STYLE: