-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SingleStrokeKeySequenceEdit: Emit keychange and show clear Button remove eventfilter * Update Settings to remove clearbutton for combos and use Server URL for host path * Remove keys on null input, Allow Shortcuts to be unbound --------- Co-authored-by: Chris Rizzitello <crizzitello@ics.com>
- Loading branch information
1 parent
96e8a9a
commit b170e87
Showing
5 changed files
with
37 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
src/components/custom_keyseq_edit/singlestrokekeysequenceedit.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
#pragma once | ||
|
||
#include <QObject> | ||
#include <QKeySequenceEdit> | ||
#include <QKeyEvent> | ||
|
||
class SingleStrokeKeySequenceEdit : public QKeySequenceEdit | ||
{ | ||
Q_OBJECT | ||
public: | ||
SingleStrokeKeySequenceEdit(QWidget* parent=nullptr); | ||
|
||
protected: | ||
void keyPressEvent(QKeyEvent *evt) override; | ||
|
||
bool eventFilter(QObject *object, QEvent *event) override; | ||
|
||
private: | ||
QKeySequence previousSequence; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters