mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
5e345fba0a
commit
181d4e2fa6
2 changed files with 22 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue