diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-06-02 08:42:10 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-06-02 08:42:10 (GMT) |
commit | a8890b53f544ca7baccf91916b179e63dfbbda50 (patch) | |
tree | e419b58ccf2fa47a700990e16f4d1038ce2287e3 /demos | |
parent | 73e514015e416cb290adc1bb513669bc6f4b4ec9 (diff) | |
parent | 43df9b0eaf58fc9fb252919d61189da8b77cfe38 (diff) | |
download | Qt-a8890b53f544ca7baccf91916b179e63dfbbda50.zip Qt-a8890b53f544ca7baccf91916b179e63dfbbda50.tar.gz Qt-a8890b53f544ca7baccf91916b179e63dfbbda50.tar.bz2 |
Merge branch 'master' of git@scm.dev.troll.no:qt/qt-s60-public
Diffstat (limited to 'demos')
-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")); } } } |