mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
refs #415, mixin style lists
This commit is contained in:
@@ -23,12 +23,14 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Settings
|
||||
{
|
||||
/*!
|
||||
* Value object encapsulating a list of keyboard keys.
|
||||
*/
|
||||
class BLACKMISC_EXPORT CSettingKeyboardHotkeyList : public CSequence<CSettingKeyboardHotkey>
|
||||
//! Value object encapsulating a list of keyboard keys.
|
||||
class BLACKMISC_EXPORT CSettingKeyboardHotkeyList :
|
||||
public CSequence<CSettingKeyboardHotkey>,
|
||||
public BlackMisc::Mixin::MetaType<CSettingKeyboardHotkeyList>
|
||||
{
|
||||
public:
|
||||
BLACKMISC_DECLARE_USING_MIXIN_METATYPE(CSettingKeyboardHotkeyList)
|
||||
|
||||
//! Default constructor
|
||||
CSettingKeyboardHotkeyList();
|
||||
|
||||
@@ -41,21 +43,10 @@ namespace BlackMisc
|
||||
//! Key for given function
|
||||
BlackMisc::Settings::CSettingKeyboardHotkey keyForFunction(const CHotkeyFunction &function) const;
|
||||
|
||||
/*!
|
||||
* Fill the list with hotkeys
|
||||
* \param reset true, list will be be reset, otherwise values will not be overridde
|
||||
*/
|
||||
//! Fill the list with hotkeys
|
||||
//! \param reset true, list will be be reset, otherwise values will not be overridde
|
||||
void initAsHotkeyList(bool reset = true);
|
||||
|
||||
//! \copydoc CValueObject::toQVariant
|
||||
QVariant toQVariant() const { return QVariant::fromValue(*this); }
|
||||
|
||||
//! \copydoc CValueObject::convertFromQVariant
|
||||
void convertFromQVariant(const QVariant &variant) { BlackMisc::setFromQVariant(this, variant); }
|
||||
|
||||
//! Register metadata
|
||||
static void registerMetadata();
|
||||
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
Reference in New Issue
Block a user