1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/opencs/model/prefs/shortcutsetting.hpp

31 lines
672 B
C++
Raw Normal View History

#ifndef CSM_PREFS_SHORTCUTSETTING_H
#define CSM_PREFS_SHORTCUTSETTING_H
#include <QKeySequence>
#include "setting.hpp"
namespace CSMPrefs
{
class ShortcutSetting : public Setting
{
Q_OBJECT
QKeySequence mDefault;
public:
ShortcutSetting(Category* parent, Settings::Manager* values, QMutex* mutex, const std::string& key,
const std::string& label, const QKeySequence& default_);
// TODO replace with custom page
virtual std::pair<QWidget*, QWidget*> makeWidgets(QWidget* parent);
private slots:
void valueChanged(const QString& text);
};
}
#endif