From dde9c866786c9a080c346ae8417c0f73b8e8e171 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 21 Jan 2016 21:38:27 +0100 Subject: Scroll the item into view when selecting programatically --- src/sessiontreeitem.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/sessiontreeitem.cpp') 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 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 ""; default: -- cgit v1.2.3-55-g7522