TestDateTime Class | Qt
Description: Test class simulating QDateTime.

# TestDateTime Class

Test class simulating QDateTime. More...

Header: | `#include <TestDateTime>`

- List of all members, including inherited members

## Public Functions

void | toString() const
void | toString(const char *formatString) const
void | toString(int format) const

## Detailed Description

This class tests whether QDoc incorrectly reports "Multiple primary overloads" when different classes have methods with the same name, using shared comment nodes.

## Member Function Documentation

### void TestDateTime::toString() const

### void TestDateTime::toString(int format) const

Returns the datetime as a string. The format parameter determines the format of the result string.

This uses shared comment nodes (multiple \fn commands) just like Eddy's qtbase change, which triggers the bug.

### void TestDateTime::toString(const char *formatString) const

Returns the datetime as a string using the specified formatString.

This function overloads TestDateTime::toString().