[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/security/crypto
From:       Laurent Montel <montel () kde ! org>
Date:       2007-09-25 11:46:19
Message-ID: 1190720779.697047.24595.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 716853 by mlaurent:

Now layout is correct


 M  +6 -10     kdatetimedlg.cpp  
 M  +0 -1      kdatetimedlg.h  


--- trunk/KDE/kdelibs/security/crypto/kdatetimedlg.cpp #716852:716853
@@ -38,10 +38,14 @@
 KDateTimeDlg::KDateTimeDlg(QWidget *parent)
  : KDialog(parent)
 {
-   QGridLayout *grid = new QGridLayout(this);
+   QWidget *widget = new QWidget(this);
+   setMainWidget(widget);
+
+   QGridLayout *grid = new QGridLayout;
    grid->setSpacing(spacingHint());
    grid->setMargin(marginHint());
-
+   setButtons(Ok|Cancel);
+   widget->setLayout(grid);
    setCaption(i18nc("Select Time and Date", "Date & Time Selector"));
 
    _date = new KDatePicker(this);
@@ -62,14 +66,6 @@
    _secs->setRange(0, 59, 1, false);
    grid->addWidget(_secs, 7, 5);
 
-   _ok = new KPushButton(KStandardGuiItem::ok(), this);
-   grid->addWidget(_ok, 8, 4);
-   connect(_ok, SIGNAL(clicked()), SLOT(accept()));
-
-   _cancel = new KPushButton(KStandardGuiItem::cancel(), this);
-   grid->addWidget(_cancel, 8, 5);
-   connect(_cancel, SIGNAL(clicked()), SLOT(reject()));
-
 }
 
 
--- trunk/KDE/kdelibs/security/crypto/kdatetimedlg.h #716852:716853
@@ -50,7 +50,6 @@
 protected Q_SLOTS:
 
 private:
-   KPushButton *_ok, *_cancel;
    KDatePicker *_date;
    KIntNumInput *_hours, *_mins, *_secs;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic