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
/**
* 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

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 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,

View File

@ -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.