Commit 9ee04161 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

SettingValue: Adding a flag to force a value not to be empty.

parent d40941d6
...@@ -58,6 +58,7 @@ class SettingValue : public QObject ...@@ -58,6 +58,7 @@ class SettingValue : public QObject
Password = 1 << 1, Password = 1 << 1,
Clamped = 1 << 2, ///< When used, the m_min and m_max will be used Clamped = 1 << 2, ///< When used, the m_min and m_max will be used
EightMultiple = 1 << 3, ///< Forces the value to be a multiple of 8 EightMultiple = 1 << 3, ///< Forces the value to be a multiple of 8
NotEmpty = 1 << 4, ///< Forces the value not to be empty (likely to be user only with Strings)
}; };
Q_DECLARE_FLAGS( Flags, Flag ); Q_DECLARE_FLAGS( Flags, Flag );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment