* 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
37 lines
541 B
C++
37 lines
541 B
C++
#ifndef FILTERBUILDER_H
|
|
#define FILTERBUILDER_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QCheckBox;
|
|
class QComboBox;
|
|
class LineEditUnfocusable;
|
|
class CardFilter;
|
|
|
|
class FilterBuilder : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
QComboBox *typeCombo;
|
|
QComboBox *filterCombo;
|
|
LineEditUnfocusable *edit;
|
|
CardFilter *fltr;
|
|
|
|
void destroyFilter();
|
|
|
|
public:
|
|
FilterBuilder(QWidget *parent = nullptr);
|
|
~FilterBuilder();
|
|
|
|
signals:
|
|
void add(const CardFilter *f);
|
|
|
|
public slots:
|
|
private slots:
|
|
void emit_add();
|
|
|
|
protected:
|
|
};
|
|
|
|
#endif
|