Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp File Reference

(ade429af3308e6254f46caf513925f00af42d6c2)

#include <QCoreApplication>
#include <QLoggingCategory>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

struct  UsbEntry
 [1] More...
 

Functions

QDebug operator<< (QDebug &debug, const UsbEntry &entry)
 
QList< UsbEntryusbEntries ()
 
void myCategoryFilter (QLoggingCategory *)
 [20]
 
int main (int argc, char *argv[])
 [21]
 

Variables

static QLoggingCategory::CategoryFilter oldCategoryFilter = nullptr
 [20]
 

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

[21]

[2]

[2]

[2]

[22]

[22]

[3]

[3]

[4]

[4]

[10]

[10]

[qcinfo_stream]

[qcinfo_stream]

[11]

[11]

[12]

[12]

[13]

[13]

[qcinfo_printf]

[qcinfo_printf]

[14]

[14]

[15]

[15]

[16]

[16]

[17]

[17]

Definition at line 59 of file main.cpp.

References category(), QLoggingCategory::categoryName(), QLoggingCategory::installFilter(), myCategoryFilter(), oldCategoryFilter, qCCritical, qCDebug, qCFatal, qCInfo, qCWarning, qSetMessagePattern(), QStringLiteral, QLoggingCategory::setFilterRules(), and usbEntries().

+ Here is the call graph for this function:

◆ myCategoryFilter()

void myCategoryFilter ( QLoggingCategory * category)

[20]

Definition at line 44 of file main.cpp.

References category(), QLoggingCategory::categoryName(), oldCategoryFilter, qstrcmp(), QtDebugMsg, and QLoggingCategory::setEnabled().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<<()

QDebug operator<< ( QDebug & debug,
const UsbEntry & entry )

Definition at line 25 of file main.cpp.

References debug.

◆ usbEntries()

QList< UsbEntry > usbEntries ( )

Definition at line 32 of file main.cpp.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

◆ oldCategoryFilter

QLoggingCategory::CategoryFilter oldCategoryFilter = nullptr
static

[20]

[21]

Definition at line 42 of file main.cpp.

Referenced by main(), and myCategoryFilter().