qt.cfg: Add functions of class QDate (#1979)

Reference:
https://doc.qt.io/qt-5/qdate.html

Found by daca@home
This commit is contained in:
Sebastian 2019-07-11 09:47:33 +02:00 committed by GitHub
parent e49b098a86
commit a4bcb7e0fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 172 additions and 0 deletions

View File

@ -1415,6 +1415,178 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- QDate QDate::addDays(qint64 ndays) const -->
<!-- QDate QDate::addMonths(int nmonths) const -->
<!-- QDate QDate::addYears(int nyears) const -->
<function name="QDate::addDays,QDate::addMonths,QDate::addYears">
<noreturn>false</noreturn>
<returnValue type="QDate"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- QDate QDate::currentDate() // static -->
<function name="QDate::currentDate">
<noreturn>false</noreturn>
<returnValue type="QDate"/>
<use-retval/>
<leak-ignore/>
</function>
<!-- int QDate::day() const -->
<!-- int QDate::dayOfWeek() const -->
<!-- int QDate::dayOfYear() const -->
<!-- int QDate::daysInMonth() const -->
<!-- int QDate::daysInYear() const -->
<function name="QDate::day,QDate::dayOfWeek,QDate::dayOfYear,QDate::daysInMonth,QDate::daysInYear">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<const/>
</function>
<!-- qint64 QDate::daysTo(const QDate &d) const -->
<function name="QDate::daysTo">
<noreturn>false</noreturn>
<returnValue type="qint64"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- QDate QDate::fromJulianDay(qint64 jd) // static -->
<function name="QDate::fromJulianDay">
<noreturn>false</noreturn>
<returnValue type="QDate"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- QDate QDate::fromString(const QString &string, Qt::DateFormat format = Qt::TextDate) // static -->
<!-- QDate QDate::fromString(const QString &string, const QString &format) // static -->
<function name="QDate::fromString">
<noreturn>false</noreturn>
<returnValue type="QDate"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in" default="Qt::TextDate">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void QDate::getDate(int *year, int *month, int *day) const -->
<function name="QDate::getDate">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<const/>
<arg nr="1" direction="out"/>
<arg nr="2" direction="out"/>
<arg nr="3" direction="out">
<not-bool/>
</arg>
</function>
<!-- bool QDate::isLeapYear(int year) // static -->
<function name="QDate::isLeapYear">
<noreturn>false</noreturn>
<returnValue type="bool"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- bool QDate::isNull() const -->
<function name="QDate::isNull">
<noreturn>false</noreturn>
<returnValue type="bool"/>
<use-retval/>
<const/>
</function>
<!-- bool QDate::isValid() const -->
<!-- bool QDate::isValid(int year, int month, int day) // static -->
<function name="QDate::isValid">
<noreturn>false</noreturn>
<returnValue type="bool"/>
<use-retval/>
<arg nr="1" direction="in" default=""/>
<arg nr="2" direction="in" default=""/>
<arg nr="3" direction="in" default=""/>
</function>
<!-- int QDate::month() const -->
<function name="QDate::month">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<const/>
</function>
<!-- bool QDate::setDate(int year, int month, int day) -->
<function name="QDate::setDate">
<noreturn>false</noreturn>
<returnValue type="bool"/>
<arg nr="1" direction="in">
<not-uninit/>
<valid>:-1,1:</valid>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>1:12</valid>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
<valid>1:31</valid>
</arg>
</function>
<!-- qint64 QDate::toJulianDay() const -->
<function name="QDate::toJulianDay">
<noreturn>false</noreturn>
<returnValue type="qint64"/>
<use-retval/>
<const/>
</function>
<!-- QString QDate::toString(const QString &format) const -->
<!-- QString QDate::toString(QStringView format) const -->
<!-- QString QDate::toString(Qt::DateFormat format = Qt::TextDate) const -->
<function name="QDate::toString">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in" default="Qt::TextDate">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- int QDate::weekNumber(int *yearNumber = nullptr) const -->
<function name="QDate::weekNumber">
<noreturn>false</noreturn>
<returnValue type="int"/>
<const/>
<arg nr="1" direction="out" default="nullptr">
<not-bool/>
</arg>
</function>
<!-- int QDate::year() const -->
<function name="QDate::year">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<const/>
</function>
<container id="qtContainer" opLessAllowed="false"> <container id="qtContainer" opLessAllowed="false">
<type templateParameter="0"/> <type templateParameter="0"/>
<size> <size>