Skip to content

Commit

Permalink
Item scanning rework and QML support
Browse files Browse the repository at this point in the history
Moved all platform independent code from the widget based
ItemScannerDialog into a new class Scanner::Capture and added a QML
API for that.
Also, the brickcognize backend will now try to resolve broken item ids
via the changelog.
  • Loading branch information
rgriebl committed Apr 21, 2024
1 parent dd0effa commit ce6f8e3
Show file tree
Hide file tree
Showing 17 changed files with 1,182 additions and 545 deletions.
5 changes: 3 additions & 2 deletions src/common/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include "utility/transfer.h"
#include "common/undo.h"
#include "common/sentryinterface.h"
#include "scanner/itemscanner.h"
#include "scanner/core.h"
#include "version.h"

#if defined(Q_OS_ANDROID)
Expand Down Expand Up @@ -298,7 +298,7 @@ void Application::afterInit()
currencyUpdateTimer->callOnTimeout(Currency::inst(),
[]() { Currency::inst()->updateRates(true /*silent*/); });

ItemScanner::inst();
Scanner::Core::inst();

auto delayedInit = [this]() {
if ((!BrickLink::core()->database()->isValid()
Expand Down Expand Up @@ -998,6 +998,7 @@ void Application::setupQml()
extern void qml_register_types_LDraw(); qml_register_types_LDraw();
extern void qml_register_types_BrickLink(); qml_register_types_BrickLink();
extern void qml_register_types_BrickStore(); qml_register_types_BrickStore();
extern void qml_register_types_Scanner(); qml_register_types_Scanner();

m_engine = new QQmlApplicationEngine(this);
redirectQmlEngineWarnings(LogQml());
Expand Down
Loading

0 comments on commit ce6f8e3

Please sign in to comment.