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() diff --git a/qt-ui/usersurvey.ui b/qt-ui/usersurvey.ui index 436ec9079..67d8d9870 100644 --- a/qt-ui/usersurvey.ui +++ b/qt-ui/usersurvey.ui @@ -6,7 +6,7 @@ 0 0 - 410 + 500 524 @@ -18,7 +18,7 @@ 40 490 - 341 + 451 32 @@ -34,7 +34,7 @@ 10 10 - 381 + 481 16 @@ -52,7 +52,7 @@ 10 40 - 371 + 481 81 @@ -71,7 +71,7 @@ 10 140 - 151 + 261 20 @@ -82,9 +82,9 @@ - 160 + 290 140 - 151 + 201 20 @@ -97,7 +97,7 @@ 10 160 - 211 + 421 20 @@ -110,7 +110,7 @@ 10 180 - 371 + 481 20 @@ -123,7 +123,7 @@ 10 200 - 371 + 481 20 @@ -136,7 +136,7 @@ 10 220 - 371 + 481 20 @@ -149,7 +149,7 @@ 10 270 - 371 + 481 101 @@ -166,7 +166,7 @@ p, li { white-space: pre-wrap; } 10 240 - 381 + 481 20 @@ -179,7 +179,7 @@ p, li { white-space: pre-wrap; } 10 380 - 371 + 481 101 @@ -188,7 +188,7 @@ p, li { white-space: pre-wrap; } <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Filled with some preferences (language, units, etc) plus system data (OS detailed version)</p></body></html> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html>