Patch for kfilemetainfowidget.cpp
Michael Pyne
pynm0001 at comcast.net
Thu Dec 2 10:08:46 GMT 2004
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
More information about the kde-core-devel
mailing list