1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 06:19:55 +00:00
openmw-tes3mp/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