mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Closing about window by shortcut
This adds the ability to close the about window with the ctrl + w shortcut. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
48b8cbadf7
commit
e253ec66d6
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include "ssrf-version.h"
|
#include "ssrf-version.h"
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
#include <QShortcut>
|
||||||
|
|
||||||
SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
|
SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
|
||||||
{
|
{
|
||||||
|
@ -15,6 +16,9 @@ SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(p
|
||||||
"<span style='font-size: 8pt'>"
|
"<span style='font-size: 8pt'>"
|
||||||
"Linus Torvalds, Dirk Hohndel, Tomaz Canabrava, and others, 2011-2014"
|
"Linus Torvalds, Dirk Hohndel, Tomaz Canabrava, and others, 2011-2014"
|
||||||
"</span>").arg(VERSION_STRING));
|
"</span>").arg(VERSION_STRING));
|
||||||
|
|
||||||
|
QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this);
|
||||||
|
connect(close, SIGNAL(activated()), this, SLOT(close()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SubsurfaceAbout::on_licenseButton_clicked()
|
void SubsurfaceAbout::on_licenseButton_clicked()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue