Translated devtoolsplugin

This commit is contained in:
0xFEEDC0DE64
2017-12-22 12:22:46 +01:00
parent d301a9bd71
commit f4cf491051
8 changed files with 126 additions and 4 deletions
+11 -1
View File
@@ -35,7 +35,17 @@ QVariant LogModel::data(const QModelIndex &index, int role) const
case Qt::EditRole:
switch(index.column())
{
case 0: return entry.type;
case 0:
{
switch(entry.type)
{
case QtDebugMsg: return tr("Debug");
case QtWarningMsg: return tr("Warning");
case QtCriticalMsg: return tr("Critical");
case QtFatalMsg: return tr("Fatal");
case QtInfoMsg: return tr("Info");
}
}
case 1: return entry.dateTime.toString(QStringLiteral("dd.MM.yyyy HH:mm:ss.zzz"));
case 2: return entry.functionName;
case 3: return entry.message;