mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 01:13:19 +00:00
Move Models and Actions slint definitions in the shared directory
This commit is contained in:
parent
f2f472a595
commit
72b004b7b0
15 changed files with 58 additions and 66 deletions
|
@ -228,7 +228,6 @@ void AppWindow::setupCallbacks()
|
|||
});
|
||||
|
||||
actions().on_create_event([&](ui::CreateEventParams newEventParams) {
|
||||
std::println("okkk");
|
||||
const ui::Date &date = newEventParams.date;
|
||||
const std::string dateStr = SlintDateToStdString(date);
|
||||
const auto sourceId = models().get_default_source_index();
|
||||
|
@ -416,12 +415,12 @@ void AppWindow::run()
|
|||
mainWindow_->run();
|
||||
}
|
||||
|
||||
const ui::AppWindowModels &AppWindow::models()
|
||||
const ui::AppModels &AppWindow::models()
|
||||
{
|
||||
return mainWindow_->global<ui::AppWindowModels>();
|
||||
return mainWindow_->global<ui::AppModels>();
|
||||
}
|
||||
|
||||
const ui::AppWindowActions &AppWindow::actions()
|
||||
const ui::AppActions &AppWindow::actions()
|
||||
{
|
||||
return mainWindow_->global<ui::AppWindowActions>();
|
||||
return mainWindow_->global<ui::AppActions>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue