1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 00:39:59 +00:00
OpenMW/apps/opencs/model/prefs/shortcutsetting.hpp
Aesylwinn 455d227f3c Changed shortcut design to allow a configurable second output. Also
re-added shift for temporarily changing camera speed.
2016-07-22 01:58:17 -04:00

35 lines
754 B
C++

#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