mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
move default case to the bottom in QErrorMessage jump helper
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
24f0ce78a1
commit
e230c7d958
1 changed files with 4 additions and 4 deletions
|
@ -151,15 +151,15 @@ static void jump(QtMsgType t, const char * m)
|
||||||
QString rich;
|
QString rich;
|
||||||
|
|
||||||
switch (t) {
|
switch (t) {
|
||||||
case QtDebugMsg:
|
|
||||||
default:
|
|
||||||
rich = QErrorMessage::tr("Debug Message:");
|
|
||||||
break;
|
|
||||||
case QtWarningMsg:
|
case QtWarningMsg:
|
||||||
rich = QErrorMessage::tr("Warning:");
|
rich = QErrorMessage::tr("Warning:");
|
||||||
break;
|
break;
|
||||||
case QtFatalMsg:
|
case QtFatalMsg:
|
||||||
rich = QErrorMessage::tr("Fatal Error:");
|
rich = QErrorMessage::tr("Fatal Error:");
|
||||||
|
case QtDebugMsg:
|
||||||
|
default:
|
||||||
|
rich = QErrorMessage::tr("Debug Message:");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
rich = QString::fromLatin1("<p><b>%1</b></p>").arg(rich);
|
rich = QString::fromLatin1("<p><b>%1</b></p>").arg(rich);
|
||||||
rich += Qt::convertFromPlainText(QLatin1String(m), Qt::WhiteSpaceNormal);
|
rich += Qt::convertFromPlainText(QLatin1String(m), Qt::WhiteSpaceNormal);
|
||||||
|
|
Loading…
Add table
Reference in a new issue