diff --git a/plugins/devtoolsplugin/devtoolsplugin.cpp b/plugins/devtoolsplugin/devtoolsplugin.cpp
index df80d05..3174313 100644
--- a/plugins/devtoolsplugin/devtoolsplugin.cpp
+++ b/plugins/devtoolsplugin/devtoolsplugin.cpp
@@ -57,5 +57,6 @@ void DevToolsPlugin::attachTo(MainWindow &mainWindow)
{
auto dialog = new LogDialog(&mainWindow);
dialog->setModel(model.get());
- mainWindow.menuTools()->addAction(tr("Show log"), dialog, &QDialog::open);
+ mainWindow.menuTools()->addAction(QIcon(QStringLiteral(":/zeiterfassung/plugins/devtoolsplugin/images/dev-tools.png")),
+ tr("Show log"), dialog, &QDialog::open);
}
diff --git a/plugins/devtoolsplugin/devtoolsplugin.pro b/plugins/devtoolsplugin/devtoolsplugin.pro
index d856846..424bf9e 100644
--- a/plugins/devtoolsplugin/devtoolsplugin.pro
+++ b/plugins/devtoolsplugin/devtoolsplugin.pro
@@ -25,7 +25,7 @@ SOURCES += devtoolsplugin.cpp \
FORMS += \
logdialog.ui
-RESOURCES +=
+RESOURCES += devtoolsplugin_resources.qrc
TRANSLATIONS += translations/devtoolsplugin_en.ts \
translations/devtoolsplugin_de.ts
diff --git a/plugins/devtoolsplugin/devtoolsplugin_resources.qrc b/plugins/devtoolsplugin/devtoolsplugin_resources.qrc
new file mode 100644
index 0000000..5c8bd5c
--- /dev/null
+++ b/plugins/devtoolsplugin/devtoolsplugin_resources.qrc
@@ -0,0 +1,5 @@
+
+
+ images/dev-tools.png
+
+
diff --git a/plugins/devtoolsplugin/images/dev-tools.png b/plugins/devtoolsplugin/images/dev-tools.png
new file mode 100644
index 0000000..a12dbb0
Binary files /dev/null and b/plugins/devtoolsplugin/images/dev-tools.png differ
diff --git a/plugins/devtoolsplugin/logdialog.ui b/plugins/devtoolsplugin/logdialog.ui
index eb5c262..583dbcc 100644
--- a/plugins/devtoolsplugin/logdialog.ui
+++ b/plugins/devtoolsplugin/logdialog.ui
@@ -6,7 +6,7 @@
0
0
- 400
+ 694
300
diff --git a/plugins/devtoolsplugin/logmodel.cpp b/plugins/devtoolsplugin/logmodel.cpp
index 2da7363..ad71ceb 100644
--- a/plugins/devtoolsplugin/logmodel.cpp
+++ b/plugins/devtoolsplugin/logmodel.cpp
@@ -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;
diff --git a/plugins/devtoolsplugin/translations/devtoolsplugin_de.ts b/plugins/devtoolsplugin/translations/devtoolsplugin_de.ts
index 1552582..f0cf20a 100644
--- a/plugins/devtoolsplugin/translations/devtoolsplugin_de.ts
+++ b/plugins/devtoolsplugin/translations/devtoolsplugin_de.ts
@@ -1,4 +1,57 @@
+
+ DevToolsPlugin
+
+ Show log
+ Log anzeigen
+
+
+
+ LogDialog
+
+ Log
+ Log
+
+
+
+ LogModel
+
+ Type
+ Typ
+
+
+ Timestamp
+ Zeitpunkt
+
+
+ Function
+ Funktion
+
+
+ Message
+ Nachricht
+
+
+ Debug
+ Debug
+
+
+ Warning
+ Warnung
+
+
+ Critical
+ Kritisch
+
+
+ Fatal
+ Fatal
+
+
+ Info
+ Info
+
+
diff --git a/plugins/devtoolsplugin/translations/devtoolsplugin_en.ts b/plugins/devtoolsplugin/translations/devtoolsplugin_en.ts
index bc6d6e7..93ffe55 100644
--- a/plugins/devtoolsplugin/translations/devtoolsplugin_en.ts
+++ b/plugins/devtoolsplugin/translations/devtoolsplugin_en.ts
@@ -1,4 +1,57 @@
+
+ DevToolsPlugin
+
+ Show log
+
+
+
+
+ LogDialog
+
+ Log
+
+
+
+
+ LogModel
+
+ Type
+
+
+
+ Timestamp
+
+
+
+ Function
+
+
+
+ Message
+
+
+
+ Debug
+
+
+
+ Warning
+
+
+
+ Critical
+
+
+
+ Fatal
+
+
+
+ Info
+
+
+