Bug 153614 - KPushButton (cancel button) on rename dialog is resized
Summary: KPushButton (cancel button) on rename dialog is resized
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 15:18 UTC by FiNeX
Modified: 2007-12-08 18:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot about the KPushButton issue (146.10 KB, image/jpeg)
2007-12-07 15:19 UTC, FiNeX
Details

Note You need to log in before you can comment on or make changes to this bug.
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