[Bug 153614] New: KPushButton (cancel button) on rename dialog is resized
FiNeX
finex at finex.org
Fri Dec 7 15:18:14 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=153614
Summary: KPushButton (cancel button) on rename dialog is resized
Product: kdelibs
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: kdeui
AssignedTo: kdelibs-bugs kde org
ReportedBy: finex finex org
Version: (using KDE Devel)
Installed from: Compiled sources
OS: Linux
The "Rename dialog" use a KPushButton for the "cancel" button. When the dialog is resized, the "cancel" button is resized too.
I've found on the kpushbutton.cpp file this code:
setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) );
I've changed it to:
setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
(Same as removing the setSizePolicy line)
In this way the button is not resized, but the dialog window is less clear. See the screenshot for an example.
The KPushButton should use the "Fixed" QSizePolicy and in the rename dialog it should be added a vertical spacer.
More information about the Kdelibs-bugs
mailing list