https://bugs.kde.org/show_bug.cgi?id=514694
Bug ID: 514694
Summary: Inconsistent button heights in Overwrite dialog
(QToolButton vs QPushButton)
Classification: Frameworks and Libraries
Product: frameworks-kio
Version First 6.22.0
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: Overwrite dialog
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 188590
--> https://bugs.kde.org/attachment.cgi?id=188590&action=edit
look_at_buttons
SUMMARY
I noticed that buttons in the "File Already Exists" (RenameDialog) have
different heights. Specifically, the "Write Into" and "Overwrite" buttons are
shorter than the standard "Skip", "Rename", and "Cancel" buttons.
Looking at the code in kio/src/widgets/renamedialog.cpp, I found that the
"Write Into" button is implemented as a QToolButton, while others are standard
QPushButton. Due to how the Breeze style handles these widgets, they end up
with different heights when placed in the same layout.
This issue seems to stem from how Breeze (or common styles) implements
QToolButton vs QPushButton. It might be worth looking into a global fix in the
Breeze theme.
I have already create a MR about a very similar issue in Dolphin's Selection
Mode: https://invent.kde.org/system/dolphin/-/merge_requests/1139
There, QToolButton also had a different size, which broke the visual alignment.
STEPS TO REPRODUCE
1. Open Dolphin.
2. Try to copy a folder into a directory where a folder with the same name
already exists.
3. Observe the "Already Exists as Folder" dialog buttons.
OBSERVED RESULT
The buttons in the bottom row have inconsistent heights.
EXPECTED RESULT
All buttons in the dialog should have a consistent height.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora KDE 43
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
--
You are receiving this mail because:
You are watching all bug changes.