diff options
author | Simon Rettberg | 2016-01-21 21:38:27 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-01-21 21:38:27 +0100 |
commit | dde9c866786c9a080c346ae8417c0f73b8e8e171 (patch) | |
tree | 429460ddb2536bc7abcd2245c7904daeb8a5b2f0 /src/sessiontreeitem.cpp | |
parent | Update translations (diff) | |
download | vmchooser2-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.cpp | 9 |
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: |