mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-28 00:06:23 -05:00
fix test + docstring
This commit is contained in:
parent
44681dc841
commit
2ea8229ba3
@ -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
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user