Diffstat (limited to 'noncore/graphics/drawpad/pageinformationdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/pageinformationdialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/graphics/drawpad/pageinformationdialog.cpp b/noncore/graphics/drawpad/pageinformationdialog.cpp index cb14d73..d769668 100644 --- a/noncore/graphics/drawpad/pageinformationdialog.cpp +++ b/noncore/graphics/drawpad/pageinformationdialog.cpp | |||
@@ -93,25 +93,25 @@ QString PageInformationDialog::dateTimeString(QDateTime dateTime) | |||
93 | 93 | ||
94 | for (int i = 0; i < 3; i++) { | 94 | for (int i = 0; i < 3; i++) { |
95 | switch((shortOrder >> (i * 3)) & 0x0007) { | 95 | switch((shortOrder >> (i * 3)) & 0x0007) { |
96 | case 0x0001: | 96 | case 0x0001: |
97 | result += QString().sprintf("%02d", dateTime.date().day()); | 97 | result.append( QString().sprintf("%02d", dateTime.date().day()) ); |
98 | break; | 98 | break; |
99 | case 0x0002: | 99 | case 0x0002: |
100 | result += QString().sprintf("%02d", dateTime.date().month()); | 100 | result.append( QString().sprintf("%02d", dateTime.date().month()) ); |
101 | break; | 101 | break; |
102 | case 0x0004: | 102 | case 0x0004: |
103 | result += QString().sprintf("%04d", dateTime.date().year()); | 103 | result.append( QString().sprintf("%04d", dateTime.date().year()) ); |
104 | break; | 104 | break; |
105 | default: | 105 | default: |
106 | break; | 106 | break; |
107 | } | 107 | } |
108 | 108 | ||
109 | if (i < 2) { | 109 | if (i < 2) { |
110 | result += separator; | 110 | result.append( separator ); |
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 | ||
114 | result += QString().sprintf(" %02d:%02d", dateTime.time().hour(), dateTime.time().minute()); | 114 | result.append( QString().sprintf(" %02d:%02d", dateTime.time().hour(), dateTime.time().minute()) ); |
115 | 115 | ||
116 | return result; | 116 | return result; |
117 | } | 117 | } |