comparison demos/browser/xbel.d @ 94:87bb4e622f9e

more porting
author mandel
date Thu, 28 May 2009 22:11:52 +0000
parents 5c8c9c5d9ee1
children
comparison
equal deleted inserted replaced
93:55fd7080c4b9 94:87bb4e622f9e
40 ****************************************************************************/ 40 ****************************************************************************/
41 41
42 module xbel; 42 module xbel;
43 43
44 44
45 import qt.core.QXmlStreamReader; 45 import qt.xml.QXmlStreamReader;
46
46 import qt.core.QDateTime; 47 import qt.core.QDateTime;
47 import qt.core.QFile; 48 import qt.core.QFile;
48 49
49 50
50 class BookmarkNode 51 class BookmarkNode
56 Folder, 57 Folder,
57 Bookmark, 58 Bookmark,
58 Separator 59 Separator
59 }; 60 };
60 61
61 this(Type type = Root, BookmarkNode parent = null) 62 this(Type type = Type.Root, BookmarkNode parent = null)
62 { 63 {
63 expanded = false; 64 expanded = false;
64 m_parent = parent; 65 m_parent = parent;
65 m_type = type; 66 m_type = type;
66 67
285 if (bookmark.title.isEmpty()) 286 if (bookmark.title.isEmpty())
286 bookmark.title = QObject.tr("Unknown title"); 287 bookmark.title = QObject.tr("Unknown title");
287 } 288 }
288 } 289 }
289 290
290 import qt.core.QXmlStreamWriter; 291 import qt.xml.QXmlStreamWriter;
291 292
292 class XbelWriter : public QXmlStreamWriter 293 class XbelWriter : public QXmlStreamWriter
293 { 294 {
294 public: 295 public:
295 296