diff options
author | David Boddie <dboddie@trolltech.com> | 2009-05-26 14:09:51 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-05-26 14:09:51 (GMT) |
commit | 36159004508d145646e0755debf5564ce29a8649 (patch) | |
tree | f8ba1f22fa5d7fb5ae658ea2ec4e43a86c81e62d /demos/spreadsheet/spreadsheetdelegate.cpp | |
parent | f61056a556259c12a6de23f12756e45737345111 (diff) | |
parent | b03f598df2aa4037815eab9249ba1213236216c5 (diff) | |
download | Qt-36159004508d145646e0755debf5564ce29a8649.zip Qt-36159004508d145646e0755debf5564ce29a8649.tar.gz Qt-36159004508d145646e0755debf5564ce29a8649.tar.bz2 |
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Diffstat (limited to 'demos/spreadsheet/spreadsheetdelegate.cpp')
-rw-r--r-- | demos/spreadsheet/spreadsheetdelegate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/spreadsheet/spreadsheetdelegate.cpp b/demos/spreadsheet/spreadsheetdelegate.cpp index 465c92f..2916757 100644 --- a/demos/spreadsheet/spreadsheetdelegate.cpp +++ b/demos/spreadsheet/spreadsheetdelegate.cpp @@ -51,7 +51,7 @@ QWidget *SpreadSheetDelegate::createEditor(QWidget *parent, { if (index.column() == 1) { QDateTimeEdit *editor = new QDateTimeEdit(parent); - editor->setDisplayFormat("dd/M/yyy"); + editor->setDisplayFormat("dd/M/yyyy"); editor->setCalendarPopup(true); return editor; } @@ -93,7 +93,7 @@ void SpreadSheetDelegate::setEditorData(QWidget *editor, if (dateEditor) { dateEditor->setDate(QDate::fromString( index.model()->data(index, Qt::EditRole).toString(), - "d/M/yy")); + "d/M/yyyy")); } } } @@ -107,7 +107,7 @@ void SpreadSheetDelegate::setModelData(QWidget *editor, } else { QDateTimeEdit *dateEditor = qobject_cast<QDateTimeEdit *>(editor); if (dateEditor) { - model->setData(index, dateEditor->date().toString("dd/M/yyy")); + model->setData(index, dateEditor->date().toString("dd/M/yyyy")); } } } |