Bug 74328

Summary: Calender widget close button is not right-aligned.
Product: [Frameworks and Libraries] kdelibs Reporter: Thomas Zander <zander>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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);