1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/apps/opencs/model/prefs/shortcutsetting.hpp
2016-07-20 08:25:11 -04:00

31 lines
672 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
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