Bug 74328 - Calender widget close button is not right-aligned.
Summary: Calender widget close button is not right-aligned.
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 10:52 UTC by Thomas Zander
Modified: 2004-02-06 11:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Zander 2004-02-06 10:52:11 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

The calendar widget that I get when I click on kickers-clock applet has a close button on the right.
That button will always be positioned directly next to the 'next year' even when I make the widget bigger.

The close button should be right-aligned (spacer left of it)
Comment 1 Stephan Kulow 2004-02-06 11:32:21 UTC
Subject: kdelibs/kdeui

CVS commit by coolo: 

move the close button to where thomasz expects it :)
CCMAIL: 74328-done@bugs.kde.org


  M +4 -0      kdatepicker.cpp   1.69


--- kdelibs/kdeui/kdatepicker.cpp  #1.68:1.69
@@ -118,4 +118,8 @@ void KDatePicker::init( const QDate &dt 
   monthForward = new QToolButton(d->tb);
   yearForward = new QToolButton(d->tb);
+  QWidget *dummy = new QWidget(d->tb);
+  dummy->setName("kde toolbar widget");
+  d->tb->setStretchableWidget(dummy);
+
   line = new KLineEdit(this);
   val = new KDateValidator(this);