TestTime Class | Qt
Description: Test class simulating QTime.
Keywords: class

# TestTime Class

Test class simulating QTime. More...

Header: | `#include <testoverloads.h>`

- 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 TestTime::toString() const

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

Returns the time 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 TestTime::toString(const char *formatString) const

Returns the time as a string using the specified formatString.

This function overloads TestTime::toString().