summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2006-07-17 20:04:18 (UTC)
committer llornkcor <llornkcor>2006-07-17 20:04:18 (UTC)
commit3e77cb64e7ca0d89656e6665c1007bff6b34d609 (patch) (unidiff)
tree1708763bc99ed75de6c395093c9421b1bd0fe268
parent20b8c8eb22b5498647430da49986f75b78cf2d79 (diff)
downloadopie-3e77cb64e7ca0d89656e6665c1007bff6b34d609.zip
opie-3e77cb64e7ca0d89656e6665c1007bff6b34d609.tar.gz
opie-3e77cb64e7ca0d89656e6665c1007bff6b34d609.tar.bz2
supply default arguments
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--library/timestring.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/library/timestring.h b/library/timestring.h
index b8d1aea..9a2889b 100644
--- a/library/timestring.h
+++ b/library/timestring.h
@@ -13,22 +13,12 @@
13** 13**
14** This program is distributed in the hope that it will be useful, but 14** This program is distributed in the hope that it will be useful, but
15** WITHOUT ANY WARRANTY; without even the implied warranty of 15** WITHOUT ANY WARRANTY; without even the implied warranty of
16** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17** See the GNU General Public License for more details. 17** See the GNU General Public License for more details.
18** 18**
19** In addition, as a special exception Trolltech gives permission to link
20** the code of this program with Qtopia applications copyrighted, developed
21** and distributed by Trolltech under the terms of the Qtopia Personal Use
22** License Agreement. You must comply with the GNU General Public License
23** in all respects for all of the code used other than the applications
24** licensed under the Qtopia Personal Use License Agreement. If you modify
25** this file, you may extend this exception to your version of the file,
26** but you are not obligated to do so. If you do not wish to do so, delete
27** this exception statement from your version.
28**
29** See http://www.trolltech.com/gpl/ for GPL licensing information. 19** See http://www.trolltech.com/gpl/ for GPL licensing information.
30** 20**
31** Contact info@trolltech.com if any conditions of this licensing are 21** Contact info@trolltech.com if any conditions of this licensing are
32** not clear to you. 22** not clear to you.
33** 23**
34**********************************************************************/ 24**********************************************************************/
@@ -153,17 +143,17 @@ public:
153 static QArray<DateFormat> formatOptions(); // qtopia 1.6.0 143 static QArray<DateFormat> formatOptions(); // qtopia 1.6.0
154 144
155 static void connectChange(QObject*,const char* member); 145 static void connectChange(QObject*,const char* member);
156 static void disconnectChange(QObject*,const char* member); 146 static void disconnectChange(QObject*,const char* member);
157 147
158 // Not recommended to call these (they don't honor system ampm) 148 // Not recommended to call these (they don't honor system ampm)
159 static QString dateString( const QDateTime &t, bool ampm ); 149 static QString dateString( const QDateTime &t, bool ampm = false);
160 static QString timeString( const QTime &t, bool ampm, bool seconds ); 150 static QString timeString( const QTime &t, bool ampm, bool seconds );
161 static QString timeString( const QTime &t, bool ampm ); 151 static QString timeString( const QTime &t, bool ampm = false);
162 static QString shortTime( bool ampm, bool seconds ); 152 static QString shortTime( bool ampm, bool seconds );
163 static QString shortTime( bool ampm ); 153 static QString shortTime( bool ampm = false);
164 154
165 static QString numberDateString( const QDate &d, DateFormat ); 155 static QString numberDateString( const QDate &d, DateFormat );
166 static QString numberDateString( const QDate &d ) 156 static QString numberDateString( const QDate &d )
167 { return numberDateString( d, currentDateFormat() ); } 157 { return numberDateString( d, currentDateFormat() ); }
168 static QString longNumberDateString( const QDate &d, DateFormat ); 158 static QString longNumberDateString( const QDate &d, DateFormat );
169 static QString longNumberDateString( const QDate &d ) 159 static QString longNumberDateString( const QDate &d )