Skip to main content

Crate day_toolkit_qt_sys

Crate day_toolkit_qt_sys 

Source
Expand description

day-toolkit-qt-sys — raw extern "C" declarations for the Qt 6 shim compiled by build.rs. Handles are opaque QWidget*; ownership stays with Qt’s parent/child tree (Day’s release calls day_qt_delete = deleteLater, per §4.3’s deferred-destruction allowance).

Structs§

DayQtAnim
An AnimSpec as the shim’s animation runs take it (shim.cpp’s DayQtAnim, docs/tween.md “The animation contract”).
DayQtDisplayed
What a widget shows now, as day_qt_read_displayed writes it (shim.cpp’s DayQtDisplayed).
DayQtNative
A widget’s native state as day_qt_read_native writes it (shim.cpp’s DayQtNative). Each field holds what was read from the widget, or its “not read” value: NULL, checked -1, number_kind 0, frame_ok 0.
DayQtPdfPage
One page of day_qt_canvas_render_pdf (shim.cpp’s DayQtPdfPage): its size in PDF points and its ops as day_spec::encode_ops flattens them, texts joined with U+001F. The pointers are borrowed for the call.

Functions§

day_qt_add_child⚠
day_qt_announce⚠
Speak text through the running screen reader, posted on window w; nothing without one. urgent interrupts the current speech.
day_qt_app_new⚠
day_qt_app_run⚠
day_qt_app_set_rtl⚠
day_qt_appearance_settable⚠
Nonzero when this Qt can override the color scheme (6.8+).
day_qt_baseline⚠
First text baseline from the widget’s top for a widget h tall; -1 ⇒ no text (docs/baseline.md).
day_qt_button_menu_fn⚠
Menu buttons (docs/menus.md “Menu buttons”): the QPushButton widget’s click calls cb(key, 0, 0) for a fresh QMenu* (null = show nothing this time) and pops it under the button instead of reporting the press.
day_qt_button_new⚠
day_qt_button_set_content⚠
day_qt_button_set_selected⚠
ButtonProps::selected: a checked QPushButton, restored after each click.
day_qt_button_set_style⚠
day_qt_button_set_title⚠
day_qt_bytes_free⚠
Release a buffer returned by day_qt_image_encode. Safe to call with null.
day_qt_can_announce⚠
1 when the Qt linked carries QAccessibleAnnouncementEvent (6.8+), else 0.
day_qt_cancel_frame⚠
day_qt_canvas_new⚠
day_qt_canvas_render_image⚠
Render encoded ops into a pw×ph pixel bitmap at scale pixels per point and store it in the decoded-bitmap registry under id. Returns 0 when the image could not be made.
day_qt_canvas_render_pdf⚠
Write count pages into one PDF. A heap buffer of *out_len bytes, released with day_qt_bytes_free; null on failure with *err set to a heap string, released with day_qt_string_free. title/author may be null.
day_qt_canvas_set_ops⚠
day_qt_checkbox_new⚠
day_qt_checkbox_set⚠
day_qt_container_new⚠
day_qt_context_menu_fn⚠
Summon-time context menus (docs/menus.md): cb receives (node, x, y) in widget coordinates and returns a fresh QMenu* (null = show nothing this time).
day_qt_cover_escape⚠
Report Escape over a presented sheet cover to cb (docs/cover.md “Modal sheet”).
day_qt_cover_top⚠
Raise a presented cover over its siblings; opaque fills it with the window color (a composed sheet’s cover is clear, docs/cover.md “Modal sheet”).
day_qt_dark_mode⚠
Nonzero when Qt’s palette is a dark one (system scheme, DAY_THEME, or the pre-6.8 Fusion fallback alike).
day_qt_delete⚠
day_qt_dismiss_present⚠
day_qt_enable_focus⚠
day_qt_enable_gesture⚠
day_qt_enable_keys⚠
Make w focusable and route its arrow keys to cb(node, code, modifiers, phase), which answers whether the app claimed the key (docs/menus.md). code: 0 left, 1 right, 2 up, 3 down, 10..=19 the digits; phase 0 down, 1 repeat, 2 up (only for a claimed down).
day_qt_enclosing_tabs⚠
The first QTabWidget above w, or null — how a nav menu finds the suite drawing its rows.
day_qt_font_families⚠
The QFontDatabase families and styles in Day’s font-list text format; a heap string to release with day_qt_string_free. Requires a constructed QApplication.
day_qt_icon_delete⚠
day_qt_icon_new⚠
A heap QIcon resolved like a toolbar item’s icon (theme|outline.svg, a vector path, or a QStyle standard pixmap), for a piece shim that draws icons of its own.
day_qt_image_decode⚠
Decode bytes into the registry under id; out (3 doubles) receives width, height and 1/0 for an alpha channel. Returns 0 when the bytes are not an image Qt reads.
day_qt_image_encode⚠
Re-encode a decoded bitmap. quality -1 takes the format’s default; fit_w/fit_h 0 means no downscale. A heap buffer of *out_len bytes, released with day_qt_bytes_free.
day_qt_image_new⚠
tint is “#rrggbb” or “” for the authored colors.
day_qt_image_new_bitmap⚠
An image widget showing a decoded bitmap rather than a staged file. tint is “#aarrggbb” to recolor it keeping its alpha, or “” for the authored colors.
day_qt_image_new_bytes⚠
An image widget showing raw encoded bytes.
day_qt_image_release⚠
Drop a decoded bitmap from the registry.
day_qt_image_set_bitmap⚠
Point a realized image widget at a decoded bitmap (the Source patch).
day_qt_image_set_bytes⚠
Point a realized image widget at raw encoded bytes (the Source patch).
day_qt_image_set_path⚠
Point a realized image widget at a different staged file (the Source patch), recording the path so a later tint re-renders from the right source.
day_qt_image_set_tint⚠
Repaint a realized glyph with a new tint (“” restores the authored colors).
day_qt_inspector_new⚠
leading nonzero puts the panel pane first (docs/inspector.md .edge).
day_qt_install_input_router⚠
Install the application filter that routes presses for hit slop and pass-through and reports the input kind to cb (0 touch, 1 mouse, 2 stylus) when it changes. Needs the QApplication; once is enough, a second call replaces the callback.
day_qt_is_wayland⚠
Whether Qt runs on its Wayland platform (no window positions there).
day_qt_label_height_for_width⚠
day_qt_label_natural_width⚠
The label’s unwrapped single-line natural width (font metrics — not the sizeHint heuristic, which suggests a narrow “readable” column for word-wrapped labels).
day_qt_label_new⚠
day_qt_label_on_link⚠
day_qt_label_on_selection⚠
Report the reader’s selection in the label to cb(id, start, end), byte offsets into the text the label displays (start == end when cleared).
day_qt_label_set_align⚠
0 leading, 1 center, 2 trailing, 3 justified; leading and trailing follow the label’s direction.
day_qt_label_set_color⚠
Text color via the label palette (on == 0 restores the theme default).
day_qt_label_set_font⚠
The label’s base font. tabular, small_caps and oldstyle ask the face for the OpenType tnum, smcp and onum features (Qt 6.7+).
day_qt_label_set_font_family⚠
Swap the label’s font family to a bundled one (after day_qt_label_set_font).
day_qt_label_set_monospace⚠
day_qt_label_set_paragraph⚠
The paragraph attributes, whole (docs/text.md): the line limit (0 = unlimited), the truncation mode (0 tail, 1 head, 2 middle), the letter spacing in ems and the line height as a multiple of the font size (nonpositive = natural). Idempotent.
day_qt_label_set_rich_text⚠
day_qt_label_set_selectable⚠
Make a label’s text user-selectable (the .selectable() modifier). No-op on non-labels.
day_qt_label_set_text⚠
day_qt_lineedit_enable_field_keys⚠
Hand Up, Down and Escape to cb(node, name, modifiers, deliver, phase) before the line edit sees them (docs/textfield.md “Keys”); a nonzero answer claims the key. deliver is 0 for Qt’s shortcut-override question, 1 for the press itself; phase 0 down, 1 repeat, 2 up (the release of a claimed key, always delivered).
day_qt_lineedit_new⚠
day_qt_lineedit_select⚠
Select characters (Unicode scalar values) start..end, held to the text, caret at end. No-op on a widget that is not a QLineEdit.
day_qt_lineedit_set_placeholder⚠
day_qt_lineedit_set_text⚠
day_qt_lineedit_set_traits⚠
How a line edit takes its text (Toolkit::set_input_traits): password echo, read-only, and the input-method hints for purpose (0 text, 1 name, 2 email, 3 url, 4 phone, 5 number, 6 decimal, 7 username, 8 password, 9 new password, 10 one-time code). Every member is applied on every call. No-op on a widget that is not a QLineEdit.
day_qt_list_cell_frame⚠
day_qt_list_clear_heights⚠
Forget every measured height (the rows moved under them).
day_qt_list_header_for⚠
The header of the section holding row (the nearest at or before it), or -1.
day_qt_list_new⚠
day_qt_list_on_reader_scroll⚠
The reader started a scroll (docs/list.md “Following the end”): a wheel step, the scroll bar or a key moved the list. Never for a programmatic scroll.
day_qt_list_on_viewport_resized⚠
day_qt_list_park_cell⚠
The cell went back to the pool: hidden, never deleted.
day_qt_list_pin_bound⚠
The pinned cell shows header row (-1: none), laid height tall.
day_qt_list_pin_cell⚠
The pinned header’s cell, made on the first call; it lives as long as the list.
day_qt_list_place_cell⚠
Show Day’s cell over row; the view keeps it there through scrolls and relayouts.
day_qt_list_scroll⚠
Scroll to row (-1: the end) aligned as align says (0 Nearest, 1 Start, 2 Center, 3 End), gliding when animated; queued behind a pending height relayout.
day_qt_list_scroll_to_end⚠
day_qt_list_scroll_to_row⚠
day_qt_list_set_automatic⚠
day_qt_list_set_count⚠
Bring the row count to n with one model delta; no selection report for rows dropped.
day_qt_list_set_estimate⚠
The height of a row Day has not measured yet.
day_qt_list_set_headers⚠
A sectioned list’s header rows (docs/list.md “Sections”): unselectable, painted as headers, sized apart from the item rows.
day_qt_list_set_row_height⚠
Row row is height tall; coalesced into one relayout per loop turn.
day_qt_list_set_selected⚠
Programmatic selection sync: no echo back through on_select.
day_qt_list_set_supplements⚠
The list’s supplementary rows (docs/list.md “Header, footer and empty state”): no flags, no chrome, sized to their content.
day_qt_list_splice⚠
One sequential row delta: kind 0 = insert at a, 1 = remove a, 2 = move a to b.
day_qt_list_splice_all⚠
A whole splice: count kind, a, b triples, after which the source holds final_len rows. Applied delta by delta when they fit the view’s rows and end at final_len; otherwise a model reset to final_len that keeps the scroll position. 1 = applied, 0 = reset.
day_qt_list_viewport⚠
What the list shows: first and last rows with any part in view and the distance from the viewport’s end to the content’s. 0 = nothing to report (no rows, no height).
day_qt_list_viewport_width⚠
day_qt_list_visible_rows⚠
The rows on screen (last < first before the view has laid anything out).
day_qt_measure_text⚠
Measure one line of canvas text; out (3 doubles) receives width, height, ascent.
day_qt_menu_add_action⚠
day_qt_menu_add_role⚠
day_qt_menu_add_separator⚠
day_qt_menu_add_submenu⚠
day_qt_menu_new⚠
day_qt_menubar_add_menu⚠
day_qt_modifiers⚠
The modifier keys held right now (docs/menus.md): shift 1, primary 2, alt 4. A query, not a callback — Qt exposes the live keyboard state directly.
day_qt_native_free⚠
Release the strings day_qt_read_native wrote, and null them.
day_qt_nav_header_install⚠
Install the stack-nav back header into a splitter’s detail side; returns the NEW pages host below it (use in place of pane 1). cb(id) fires on the back button.
day_qt_nav_header_update⚠
Show/hide the back header + set its title (activates layout synchronously).
day_qt_navlist_new⚠
day_qt_navlist_set_items⚠
joined = row titles (U+001F-separated). icons = a PARALLEL list of icon file paths (also U+001F-separated, empty entry = no icon for that row). tints = a PARALLEL list of per-row “#rrggbb” icon tints (empty entry = palette text color). sections = a PARALLEL list of section headings, each opening a group before its row (empty entry = the row continues the current group). The shim draws a heading as an item of its own but keeps reporting and accepting DAY’s row indices, so headings never shift what day_qt_navlist_set_selected and the selection callback mean.
day_qt_navlist_set_row_menus⚠
Per-row context menus for the nav list (docs/menus.md): a parallel array of QMenu* (null = no menu for that row); the shim maps a custom-context request to its row.
day_qt_navlist_set_selected⚠
day_qt_navlist_update_rows⚠
New words or decorations for the comma-joined Day rows of the same row set, in place.
day_qt_on_appearance⚠
Called once per turn of the event loop after the palette or the color scheme changed.
day_qt_on_text_scale⚠
Call cb when day_qt_text_scale may have changed.
day_qt_open_url⚠
day_qt_post⚠
day_qt_post_delayed⚠
day_qt_present_dialog⚠
day_qt_present_file_open⚠
multiple ≠ 0 lets the user pick several files; the answer joins every chosen path with the unit separator (tag 3, PresentResult::decode).
day_qt_present_file_save⚠
day_qt_present_folder_open⚠
A directory chooser (QFileDialog::Directory + ShowDirsOnly), answered like a file.
day_qt_present_prompt⚠
day_qt_progress_new⚠
day_qt_progress_set⚠
day_qt_quit⚠
QCoreApplication::quit.
day_qt_read_displayed⚠
What the widget shows now, mid-animation included (Toolkit::read_displayed).
day_qt_read_native⚠
Read a widget’s native state back into out (Toolkit::read_native, docs/testing.md). Release its strings with day_qt_native_free.
day_qt_register_font⚠
QFontDatabase::addApplicationFont — returns the font id (>= 0) or -1 on failure. Requires a constructed QApplication.
day_qt_register_resource⚠
day_qt_remove_child⚠
day_qt_request_frame⚠
day_qt_resource_data⚠
day_qt_resource_exists⚠
day_qt_screen_count⚠
day_qt_screen_info⚠
out[9]: frame, work area, scale. Returns 1 primary, 0 other, -1 out of range.
day_qt_scroll_bar_inset⚠
day_qt_scroll_configure⚠
The scroll piece’s preferences (docs/scroll.md): hidden drops both scroll bars; snap 0 = none, 1 = pages, 2 = every interval points (emulated: a glide to the nearest resting point once the user’s scrolling goes quiet).
day_qt_scroll_content⚠
day_qt_scroll_new⚠
day_qt_scroll_offset⚠
The content offset of any Qt scroll area (the scroll piece or a list), in points.
day_qt_scroll_set_content_size⚠
day_qt_scroll_to_rect⚠
The least scroll that shows the content rect, gliding when animated.
day_qt_scroll_track_offset⚠
track_offset: report the content offset to node through cb as it moves, at most once per frame and once more at rest.
day_qt_separator_new⚠
vertical: 1 for a rule down a row (QFrame::VLine), 0 for one across a column.
day_qt_set_a11y_traits⚠
Explicit role, spoken value and hidden flag, served by the shim’s own accessible interface (docs/accessibility.md). role follows day_spec::Role declaration order (shim.cpp carries the same table): 0 none (the widget’s own role stays), 1 Button, 2 Toggle, 3 Slider, 4 TextInput, 5 Heading with level, 6 Image, 7 Meter, 8 Group, 9 Tree, 10 TreeItem, 11 Tab, 12 TabList. value NULL = none. Once hidden, a widget stays hidden. selected -1 = unset, else the selected state.
day_qt_set_accessible_description⚠
day_qt_set_accessible_name⚠
day_qt_set_app_icon⚠
day_qt_set_appearance⚠
Day’s appearance override: 1 dark, 0 light, -1 the system’s again (QStyleHints::setColorScheme, Qt 6.8+). Nonzero when the request was made.
day_qt_set_context_menu⚠
day_qt_set_drag_axis⚠
The axis w’s drag follows: 0 any, 1 horizontal, 2 vertical (docs/gestures.md “Gestures inside a scroll view”).
day_qt_set_drag_region⚠
day_qt_set_enabled⚠
day_qt_set_focusable⚠
.focusable() beyond the keys and the focus reports: pointer input and the keyboard focus indicator (docs/focus.md).
day_qt_set_frame⚠
The widget’s frame in its parent, at once or animated as day_qt_set_opacity is.
day_qt_set_geometry⚠
day_qt_set_hit_slop⚠
Grow the area w takes pointer input in by these points per edge; zeros restore its bounds (docs/gestures.md “Hit slop”).
day_qt_set_keep_running⚠
Keep the process when the primary window closes; its close then reports as node 0.
day_qt_set_lifecycle_cb⚠
day_qt_set_menu_cb⚠
day_qt_set_object_name⚠
day_qt_set_opacity⚠
The widget’s opacity, shown through its DayEffect: at once with a null anim, which also stops a run in flight, or animated under anim from the opacity shown now.
day_qt_set_passive⚠
Mark w as a Day view that takes no pointer input until a recognizer, a menu, a drag, a drop or focus is attached (docs/gestures.md “Pass-through”).
day_qt_set_present_cb⚠
day_qt_set_text_keys⚠
day_qt_set_toolbar_cb⚠
day_qt_set_tooltip⚠
day_qt_set_touches_cb⚠
Where the contact lists of every touches recognizer go (docs/gestures.md “Touches”): cb(node, numbers, count), six numbers per contact (id, phase, x, y, pressure, kind), valid for the call.
day_qt_set_transform⚠
The widget’s transform (translation in points, scale, rotation in degrees about its center), shown through its DayEffect, at once or animated as day_qt_set_opacity is.
day_qt_set_visible⚠
day_qt_set_window_events_cb⚠
day_qt_set_window_state_cb⚠
Display-state reports for every Day window (docs/windows.md “Window properties”): the window’s node id (0 = the primary) and a day_spec::WindowState code.
day_qt_size_hint⚠
day_qt_slider_new⚠
day_qt_slider_set⚠
day_qt_snapshot_png⚠
scale > 0 renders at that many pixels per point; 0 keeps the widget’s own ratio.
day_qt_split_fraction⚠
day_qt_split_new⚠
A two-pane QSplitter (docs/split.md), stacked when vertical, each pane at least min_pane along the axis.
day_qt_split_set_fraction⚠
day_qt_split_set_orientation⚠
day_qt_splitter_new⚠
The navigation splitter: sidebar, content list, detail. list_width <= 0 hides the list pane; the minimums are the drag limits (docs/navigation.md).
day_qt_splitter_on_moved⚠
day_qt_splitter_on_resized⚠
Report a splitter’s pane geometry on every layout pass Qt runs on it — the first of which is what turns the constructor’s placeholder sizes into real ones.
day_qt_splitter_pane⚠
day_qt_splitter_set_pane_width⚠
Give one pane a width, taking the difference from the last pane.
day_qt_string_free⚠
Release a string returned by day_qt_font_families. Safe to call with null.
day_qt_subtree_enabled⚠
Disable (0) or enable (1) the subtree under w, counted per call (docs/forms.md “Disabling a group”).
day_qt_system_color⚠
The application palette’s color for the day_spec::SystemColor wire number role, written to rgba (0..1); 0 when the palette has no color for that role.
day_qt_tabs_add_page⚠
day_qt_tabs_chrome⚠
day_qt_tabs_content_size⚠
day_qt_tabs_documents⚠
day_qt_tabs_move_page⚠
day_qt_tabs_new⚠
day_qt_tabs_park⚠
The suite’s sidebar page, whose rows became the bar: kept under the QTabWidget for the menu’s parent chain, never a tab, so tab i is destination i.
day_qt_tabs_remove_page⚠
day_qt_tabs_set_current⚠
day_qt_tabs_set_icon⚠
Set (or clear, with an empty path) a tab’s leading icon.
day_qt_tabs_set_title⚠
day_qt_text_scale⚠
The desktop’s text-size factor for Day’s point-sized text (1.0 at the default).
day_qt_toolbar_add_action⚠
day_qt_toolbar_add_label⚠
day_qt_toolbar_add_menu⚠
day_qt_toolbar_add_search⚠
day_qt_toolbar_add_segmented⚠
day_qt_toolbar_add_separator⚠
day_qt_toolbar_begin_insert⚠
Aim the next add_* at group (0 leading, 1 principal, 2 trailing) of column col (0 sidebar, 1 list, 2 detail), right after item after (“” = first in the group). index is the item’s place in Day’s order, which a change of layout re-places by.
day_qt_toolbar_focus⚠
day_qt_toolbar_has_columns⚠
Whether this bar is laid out in columns (its window has a navigation splitter).
day_qt_toolbar_remove⚠
Take one item off the window’s bar.
day_qt_toolbar_set_checked⚠
day_qt_toolbar_set_enabled⚠
day_qt_toolbar_set_placeholder⚠
day_qt_toolbar_set_selected⚠
day_qt_toolbar_set_suggestions⚠
day_qt_toolbar_set_text⚠
day_qt_toolbar_set_words⚠
day_qt_toolbar_sync_columns⚠
Re-size the column tracks to the splitter’s panes.
day_qt_tray_available⚠
day_qt_tray_delete⚠
day_qt_tray_new⚠
day_qt_tray_update⚠
day_qt_tree_add⚠
day_qt_tree_begin⚠
day_qt_tree_cell⚠
day_qt_tree_end⚠
day_qt_tree_expand⚠
day_qt_tree_frame⚠
day_qt_tree_new⚠
day_qt_tree_reveal⚠
day_qt_tree_select⚠
day_qt_widget_focus⚠
day_qt_widget_has_styled_surface⚠
Nonzero once the container paints its own surface (day_qt_widget_set_styled_surface).
day_qt_widget_set_bg⚠
Update only the background color, preserving the corner radius captured by the last day_qt_widget_set_surface (so a reactive .background keeps its rounded corners). Animated under anim from the fill shown now when both ends are a fill; at once otherwise.
day_qt_widget_set_cursor⚠
QWidget::setCursor(Qt::CursorShape); a negative shape unsets it (docs/cursor.md).
day_qt_widget_set_direction⚠
The widget’s own reading direction (Toolkit::set_layout_direction).
day_qt_widget_set_section_card⚠
day_qt_widget_set_styled_surface⚠
A styled surface (docs/surfaces.md): fill or gradient, per-corner rounding, border and shadow on one container. spec is 24 numbers (fill r,g,b,a · radius · corner bits · clips · border r,g,b,a · border width · shadow r,g,b,a · shadow blur, dx, dy · gradient kind (0 none, 1 linear, 2 radial, 3 conic) · the gradient’s four numbers: linear start x,y and end x,y, radial center x,y and radius, conic center x,y and start degrees clockwise from +x) and stops is n_stops groups of (offset, r, g, b, a), ascending; stops may be null when n_stops is 0. The border is drawn over the container’s children. Idempotent: sent again for a reactive surface and on an appearance switch.
day_qt_widget_set_surface⚠
Apply a background/corner_radius surface via a scoped stylesheet (#objName { ... } so children don’t inherit the fill) + WA_StyledBackground. r,g,b are 0..1, a is the alpha 0..1; radius in px; clips != 0 requests rounded-child clipping (best-effort).
day_qt_widget_set_window_surface⚠
SurfaceRole::Window: the window’s own background (palette(window)), rounded and, with clips, clipping its children to the rounding.
day_qt_widget_size⚠
day_qt_window_alert⚠
day_qt_window_close⚠
day_qt_window_content⚠
day_qt_window_destroy⚠
day_qt_window_fit⚠
Resize to w×h of content and keep it there (WindowOptions::size_to_fit): a fixed-size panel moves its pin, a resizable window just resizes.
day_qt_window_frame⚠
The frame into out[4]; 0 where the platform does not say.
day_qt_window_is_active⚠
day_qt_window_menubar⚠
day_qt_window_menubar_done⚠
day_qt_window_new⚠
day_qt_window_new2⚠
day_qt_window_on_resize⚠
day_qt_window_place⚠
Open position: 1 centered, 2 at (x, y).
day_qt_window_raise⚠
day_qt_window_set_chrome⚠
The chrome a window opens with, before it is first shown.
day_qt_window_set_frame⚠
Move (frame top-left) and/or resize (content size).
day_qt_window_set_limits⚠
Content-size limits; negative lifts a bound.
day_qt_window_set_state⚠
Ask for a display state by day_spec::WindowState code (showNormal / showMinimized / showMaximized / showFullScreen); the outcome comes back through the state callback.
day_qt_window_set_switch⚠
0 on top, 1 tool window, 2 minimize, 3 maximize, 4 close button, 5 resizable, 6 visible.
day_qt_window_set_title⚠
day_qt_window_show⚠
day_qt_window_toolbar⚠
The window’s bar, created and laid out for the window on first use; begins an edit.
day_qt_window_toolbar_done⚠
End the edit: show the bar while it has items, and lay the window out.