From a679132b101dceb13830dfc4e79e1c84e79a9e03 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sun, 12 Jul 2026 20:28:42 +0200 Subject: [PATCH] fileitemaction: size dialog to 33% of screen width --- fileitemaction/denote_fileitemaction.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fileitemaction/denote_fileitemaction.cpp b/fileitemaction/denote_fileitemaction.cpp index 3c2853d..2bafa87 100644 --- a/fileitemaction/denote_fileitemaction.cpp +++ b/fileitemaction/denote_fileitemaction.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -82,7 +83,10 @@ void DenoteFileItemAction::renameWithDenote(const KFileItemList &items, QWidget // Build dialog QDialog dialog(parentWidget); dialog.setWindowTitle(QStringLiteral("Rename with Denote")); - dialog.setMinimumWidth(480); + // Size to 33% of screen width (accounts for HiDPI) + if (auto *screen = dialog.screen()) { + dialog.setMinimumWidth(screen->availableGeometry().width() / 3); + } auto *layout = new QVBoxLayout(&dialog); auto *form = new QFormLayout();