mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
fix test + docstring
This commit is contained in:
parent
44681dc841
commit
2ea8229ba3
@ -1805,8 +1805,7 @@ namespace std
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns a map of all enum entries.
|
||||
* The map has the enum values (int) as keys and the enum keys (QString) as values.
|
||||
* Returns a list all enum entries.
|
||||
* The enum must have been declared using Q_ENUM or Q_FLAG.
|
||||
*/
|
||||
template<class T> const QList<T> qgsEnumList() SIP_SKIP
|
||||
|
||||
@ -102,7 +102,6 @@ class CORE_EXPORT QgsSettingsEntryString : public QgsSettingsEntryByReference<QS
|
||||
* The \a options arguments specifies the options for the settings entry.
|
||||
* The \a minLength argument specifies the minimal length of the string value. 0 means no limit.
|
||||
* The \a maxLength argument specifies the maximal length of the string value. -1 means no limit.
|
||||
* By -1 the there is no limit
|
||||
*/
|
||||
QgsSettingsEntryString( const QString &key,
|
||||
QgsSettings::Section section,
|
||||
|
||||
@ -34,13 +34,14 @@ class TestQgis : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
public:
|
||||
enum class TestEnum : int
|
||||
{
|
||||
TestEnum1 = 1,
|
||||
TestEnum2 = 2,
|
||||
TestEnum3 = 6,
|
||||
};
|
||||
Q_ENUM( TestEnum )
|
||||
|
||||
private slots:
|
||||
void initTestCase();// will be called before the first testfunction is executed.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user