File indexing completed on 2024-11-24 03:56:28
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #ifndef KEYBOARDSETTINGSWIDGET_H 0008 #define KEYBOARDSETTINGSWIDGET_H 0009 0010 #include <memory> 0011 #include <QWidget> 0012 #include "app/settings/keyboard_shortcuts.hpp" 0013 0014 class KeyboardSettingsWidget : public QWidget 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 KeyboardSettingsWidget(app::settings::ShortcutSettings* settings, QWidget* parent = nullptr); 0020 ~KeyboardSettingsWidget(); 0021 0022 protected: 0023 void changeEvent ( QEvent* e ) override; 0024 0025 private Q_SLOTS: 0026 void clear_filter(); 0027 void filter(const QString& text); 0028 0029 private: 0030 class Private; 0031 std::unique_ptr<Private> d; 0032 }; 0033 0034 #endif // KEYBOARDSETTINGSWIDGET_H