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>
This commit is contained in:
Dirk Hohndel 2014-06-14 14:20:14 -07:00
parent 5e345fba0a
commit 181d4e2fa6
2 changed files with 22 additions and 15 deletions

View file

@ -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()