summaryrefslogtreecommitdiffstats
path: root/qt-ui/usersurvey.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-14 14:20:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-14 14:35:17 -0700
commit181d4e2fa66a0ce31c600821e55c9b7f0e597b8b (patch)
tree57e5c47e3808c629c0f062a89fd2adef7e38f6f6 /qt-ui/usersurvey.cpp
parent5e345fba0a3cc8dd7e2316ad5a8c2d2b54cea37d (diff)
downloadsubsurface-181d4e2fa66a0ce31c600821e55c9b7f0e597b8b.tar.gz
User survey: small updates
Just make it behave a little more sanely - support Ctrl-W and Ctrl-Q - remove the silly placeholder text for system info - add language and version information Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usersurvey.cpp')
-rw-r--r--qt-ui/usersurvey.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/usersurvey.cpp b/qt-ui/usersurvey.cpp
index d9cee8ce8..10beb94ee 100644
--- a/qt-ui/usersurvey.cpp
+++ b/qt-ui/usersurvey.cpp
@@ -13,9 +13,16 @@ UserSurvey::UserSurvey(QWidget *parent) : QDialog(parent),
ui(new Ui::UserSurvey)
{
ui->setupUi(this);
+ QShortcut *closeKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this);
+ connect(closeKey, SIGNAL(activated()), this, SLOT(close()));
+ QShortcut *quitKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this);
+ connect(quitKey, SIGNAL(activated()), parent, SLOT(close()));
+
// fill in the system data
+ ui->system->append(tr("Subsurface %1").arg(VERSION_STRING));
ui->system->append(tr("Operating System: %1").arg(SubsurfaceSysInfo::prettyOsName()));
ui->system->append(tr("CPU Architecture: %1").arg(SubsurfaceSysInfo::cpuArchitecture()));
+ ui->system->append(tr("Language: %1").arg(uiLanguage(NULL)));
}
UserSurvey::~UserSurvey()