Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,27 @@
#include <QDBusConnection>
#include <QDBusInterface>
#include <QScreen>
#include <QDebug>

Check warning on line 25 in src/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <QDebug> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 25 in src/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QDebug> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include <iostream>

Check warning on line 27 in src/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <iostream> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 27 in src/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <iostream> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QLoggingCategory>

Check warning on line 28 in src/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <QLoggingCategory> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 28 in src/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QLoggingCategory> not found. Please note: Cppcheck does not need standard library headers to get proper results.

DWIDGET_USE_NAMESPACE

static const char *DEFAULT_LOGGING_RULES = "*.debug=false";

static void initLoggingRules()
{
QByteArray rules = qgetenv("QT_LOGGING_RULES");
if (rules.isEmpty()) {
QLoggingCategory::setFilterRules(DEFAULT_LOGGING_RULES);
}
}

int main(int argc, char *argv[])
{
initLoggingRules();

qDebug() << "Application starting with arguments:" << QCoreApplication::arguments();
DCORE_USE_NAMESPACE
PerformanceMonitor::initializeAppStart();
Expand Down
Loading