1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 09:36:37 +00:00
OpenMW/apps/opencs/model/prefs/shortcutsetting.hpp

35 lines
754 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
public:
typedef std::pair<QKeySequence, int> SequenceData;
ShortcutSetting(Category* parent, Settings::Manager* values, QMutex* mutex, const std::string& key,
const std::string& label, const SequenceData& default_);
// TODO replace with custom page
virtual std::pair<QWidget*, QWidget*> makeWidgets(QWidget* parent);
private:
SequenceData mDefault;
private slots:
void valueChanged(const QString& text);
};
}
#endif