fix test + docstring

This commit is contained in:
Denis Rouzaud 2022-02-28 19:52:14 +01:00
parent 44681dc841
commit 2ea8229ba3
3 changed files with 3 additions and 4 deletions

View File

@ -1805,8 +1805,7 @@ namespace std
#endif #endif
/** /**
* Returns a map of all enum entries. * Returns a list all enum entries.
* The map has the enum values (int) as keys and the enum keys (QString) as values.
* The enum must have been declared using Q_ENUM or Q_FLAG. * The enum must have been declared using Q_ENUM or Q_FLAG.
*/ */
template<class T> const QList<T> qgsEnumList() SIP_SKIP template<class T> const QList<T> qgsEnumList() SIP_SKIP

View File

@ -102,7 +102,6 @@ class CORE_EXPORT QgsSettingsEntryString : public QgsSettingsEntryByReference<QS
* The \a options arguments specifies the options for the settings entry. * 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 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. * 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, QgsSettingsEntryString( const QString &key,
QgsSettings::Section section, QgsSettings::Section section,

View File

@ -34,13 +34,14 @@ class TestQgis : public QObject
{ {
Q_OBJECT Q_OBJECT
private: public:
enum class TestEnum : int enum class TestEnum : int
{ {
TestEnum1 = 1, TestEnum1 = 1,
TestEnum2 = 2, TestEnum2 = 2,
TestEnum3 = 6, TestEnum3 = 6,
}; };
Q_ENUM( TestEnum )
private slots: private slots:
void initTestCase();// will be called before the first testfunction is executed. void initTestCase();// will be called before the first testfunction is executed.