Bug 153614

Summary: KPushButton (cancel button) on rename dialog is resized
Product: [Frameworks and Libraries] kdelibs Reporter: FiNeX <finex>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot about the KPushButton issue

Description FiNeX 2007-12-07 15:18:13 UTC
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.
Comment 1 FiNeX 2007-12-07 15:19:48 UTC
Created attachment 22394 [details]
Screenshot about the KPushButton issue
Comment 2 Urs Wolfer 2007-12-08 18:47:16 UTC
SVN commit 746319 by uwolfer:

Overwriting QPushButtons size policy makes no sense here.
BUG: 153614

 M  +0 -2      kpushbutton.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=746319