diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-24 18:56:07 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-24 18:56:07 +0200 |
| commit | ab785283e6abd1730efd4499ba4bc436a3de2665 (patch) | |
| tree | 98ef6ac27b0d8cd1e663d193ccd85a5654e2065b | |
| parent | a54fa9952d4eb7c17025b41320e1a434dcccc670 (diff) | |
| download | qtmaildir-ab785283e6abd1730efd4499ba4bc436a3de2665.tar.gz qtmaildir-ab785283e6abd1730efd4499ba4bc436a3de2665.zip | |
feat: hide the calendar's event pane while nothing is selected
The pane reserved a quarter of the window even when empty. It now shows
only on the details or edit page, so the grid takes the full width until
an event is selected or a new one is started.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | src/eventpane.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eventpane.cpp b/src/eventpane.cpp index c83a569..abc9878 100644 --- a/src/eventpane.cpp +++ b/src/eventpane.cpp @@ -74,7 +74,11 @@ EventPane::EventPane(QWidget *parent) : QStackedWidget(parent) addWidget(buildDetails()); // 1 addWidget(buildForm()); // 2 setMinimumWidth(260); + // Collapsed while nothing is selected, so the grid takes the whole + // window; the splitter gives the space back when the pane shows. + connect(this, &QStackedWidget::currentChanged, this, [this](int page) { setVisible(page != 0); }); showNothing(); + hide(); } QWidget *EventPane::buildDetails() |
