summaryrefslogtreecommitdiffstats
path: root/src/sessiontreeitem.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-21 21:38:27 +0100
committerSimon Rettberg2016-01-21 21:38:27 +0100
commitdde9c866786c9a080c346ae8417c0f73b8e8e171 (patch)
tree429460ddb2536bc7abcd2245c7904daeb8a5b2f0 /src/sessiontreeitem.cpp
parentUpdate translations (diff)
downloadvmchooser2-dde9c866786c9a080c346ae8417c0f73b8e8e171.tar.gz
vmchooser2-dde9c866786c9a080c346ae8417c0f73b8e8e171.tar.xz
vmchooser2-dde9c866786c9a080c346ae8417c0f73b8e8e171.zip
Scroll the item into view when selecting programatically
Diffstat (limited to 'src/sessiontreeitem.cpp')
-rw-r--r--src/sessiontreeitem.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sessiontreeitem.cpp b/src/sessiontreeitem.cpp
index 65deae8..5f3c28e 100644
--- a/src/sessiontreeitem.cpp
+++ b/src/sessiontreeitem.cpp
@@ -1,15 +1,16 @@
#include "sessiontreeitem.h"
+#include <QCoreApplication>
QString SessionTreeItem::typeToName(const SectionType type) {
switch (type) {
case SECTION_FOR_LOCATION:
- return QObject::tr("Working environments for this room");
+ return QCoreApplication::instance()->translate("Dialog", "Working environments for this room");
case SECTION_TEMPLATES:
- return QObject::tr("Templates");
+ return QCoreApplication::instance()->translate("Dialog", "Templates");
case SECTION_GENERIC:
- return QObject::tr("Working environments");
+ return QCoreApplication::instance()->translate("Dialog", "Working environments");
case SECTION_XSESSION:
- return QObject::tr("X-Sessions");
+ return QCoreApplication::instance()->translate("Dialog", "X-Sessions");
case SECTION_NULL:
return "<null>";
default: