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

List:       kde-core-devel
Subject:    Patch for kfilemetainfowidget.cpp
From:       Michael Pyne <pynm0001 () comcast ! net>
Date:       2004-12-02 10:08:46
Message-ID: 200412020508.47059.pynm0001 () comcast ! net
[Download RAW message or body]

Hi all,

The following patch fixes a problem with KFileMetaInfoWidget, which (at least 
sometimes) causes dates that the user enters to be passed to the KFilePlugin 
corrupted.  This also fixes a bug where the KFileMetaInfoWidget doesn't 
detect that the user has modified the date.

There looks to be other similar problems in the code, so I may have to submit 
more patches until my KFilePlugin works. ;)

Would it be alright for me to apply it?

Index: kfilemetainfowidget.cpp
===================================================================
RCS file: /home/kde/kdelibs/kio/kfile/kfilemetainfowidget.cpp,v
retrieving revision 1.9
diff -u -3 -p -r1.9 kfilemetainfowidget.cpp
--- kfilemetainfowidget.cpp     21 Nov 2004 20:34:26 -0000      1.9
+++ kfilemetainfowidget.cpp     2 Dec 2004 09:46:00 -0000
@@ -272,7 +272,10 @@ QWidget* KFileMetaInfoWidget::makeString

 QWidget* KFileMetaInfoWidget::makeDateWidget()
 {
-  return new QDateEdit(m_item.value().toDate(), this);
+  QWidget *e = new QDateEdit(m_item.value().toDate(), this);
+  connect(e,    SIGNAL(valueChanged(const QDate&)),
+          this, SLOT(slotDateChanged(const QDate&)));
+  return e;
 }

 QWidget* KFileMetaInfoWidget::makeTimeWidget()

Regards,
 - Michael Pyne
[prev in list] [next in list] [prev in thread] [next in thread] 

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