mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add keyboard shorcuts to focus and unfocus chat (#3898)
* Added keyboard shorcuts to focus and unfocus chat * Fixed format * Changed the Esc behavior to work on any QLineEdit in the main Window and ignore shortcut conflicts * Fixed a conflict with shortcuts * Configurable unfocus shortcut and format fixes * minor style fix
This commit is contained in:
parent
7285f24a29
commit
63b4f9b2f0
25 changed files with 235 additions and 107 deletions
|
|
@ -1,12 +1,12 @@
|
|||
#include "filterbuilder.h"
|
||||
|
||||
#include "cardfilter.h"
|
||||
#include "customlineedit.h"
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QGridLayout>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "cardfilter.h"
|
||||
|
||||
FilterBuilder::FilterBuilder(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
filterCombo = new QComboBox;
|
||||
|
|
@ -23,7 +23,7 @@ FilterBuilder::FilterBuilder(QWidget *parent) : QWidget(parent)
|
|||
ok->setObjectName("ok");
|
||||
ok->setMaximumSize(20, 20);
|
||||
|
||||
edit = new QLineEdit;
|
||||
edit = new LineEditUnfocusable;
|
||||
edit->setObjectName("edit");
|
||||
edit->setPlaceholderText(tr("Type your filter here"));
|
||||
edit->setClearButtonEnabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue