mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-22 04:27:02 +02:00
Imported /gui/ from mercurial.
This commit is contained in:
parent
6a86d3a1e4
commit
81227b8fab
81 changed files with 7177 additions and 0 deletions
23
gui/src/HotkeyDialog.cpp
Normal file
23
gui/src/HotkeyDialog.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "HotkeyDialog.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
HotkeyDialog::HotkeyDialog (QWidget* parent, Hotkey& hotkey) :
|
||||
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
||||
Ui::HotkeyDialogBase(),
|
||||
m_Hotkey(hotkey)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
m_pKeySequenceWidgetHotkey->setText(m_Hotkey.text());
|
||||
}
|
||||
|
||||
void HotkeyDialog::accept()
|
||||
{
|
||||
if (!sequenceWidget()->valid())
|
||||
return;
|
||||
|
||||
hotkey().setKeySequence(sequenceWidget()->keySequence());
|
||||
QDialog::accept();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue