@@ -11,7 +11,7 @@ using namespace declarative;
1111MainWindow::MainWindow (_<MyUpdater> updater)
1212 : AWindow(" Project template app" , 300_dp, 200_dp), mUpdater(std::move(updater)) {
1313 setContents (Centered { Vertical {
14- Centered { Icon { " :img/icon.svg" } with_style { FixedSize (64_dp) } },
14+ Centered { Icon { " :img/icon.svg" } AUI_WITH_STYLE { FixedSize (64_dp) } },
1515 Centered { Label { " Hello world from AUI!" } },
1616 _new<AButton>(" Visit GitHub repo" )
1717 .connect (&AView::clicked, this , [] { APlatform::openUrl (" https://github.com/aui-framework/aui" ); }),
@@ -22,7 +22,7 @@ MainWindow::MainWindow(_<MyUpdater> updater)
2222 &AView::clicked, this , [] { APlatform::openUrl (" https://github.com/aui-framework/aui/issues/new" ); }),
2323 CustomLayout {} & mUpdater ->status .readProjected ([&updater = mUpdater ](const std::any& status) -> _<AView> {
2424 if (std::any_cast<AUpdater::StatusIdle>(&status)) {
25- return _new<AButton>(" Check for updates" ).connect (&AView::clicked, slot (updater)::checkForUpdates);
25+ return _new<AButton>(" Check for updates" ).connect (&AView::clicked, AUI_SLOT (updater)::checkForUpdates);
2626 }
2727 if (std::any_cast<AUpdater::StatusCheckingForUpdates>(&status)) {
2828 return Label { " Checking for updates..." };
@@ -35,7 +35,7 @@ MainWindow::MainWindow(_<MyUpdater> updater)
3535 }
3636 if (std::any_cast<AUpdater::StatusWaitingForApplyAndRestart>(&status)) {
3737 return _new<AButton>(" Apply update and restart" )
38- .connect (&AView::clicked, slot (updater)::applyUpdateAndRestart);
38+ .connect (&AView::clicked, AUI_SLOT (updater)::applyUpdateAndRestart);
3939 }
4040 return nullptr ;
4141 }),
0 commit comments