Skip to content

Commit

Permalink
chore: add a log for example
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
Decodetalkers authored and deepin-bot[bot] committed Jul 11, 2023
1 parent db600c7 commit fa7cd66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/exhibition/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include <QQuickWindow>
#include <QSGRendererInterface>

#include <DLog>

class Object : public QObject {
Q_OBJECT

Expand Down Expand Up @@ -76,7 +78,7 @@ int main(int argc, char **argv)
// QQuickWindow::setGraphicsApi(QSGRendererInterface::Software);
#endif
QQuickStyle::setStyle("Chameleon");

Dtk::Core::DLogManager::registerConsoleAppender();
engine.rootContext()->setContextProperty("examplesFiles",
QDir(":/examples").entryList({"*.qml"}));
engine.rootContext()->setContextProperty("globalObject", new Object());
Expand Down

0 comments on commit fa7cd66

Please sign in to comment.