]> Some of my projects - localmylist.git/commitdiff
Add namespace declarations
authorAPTX <redacted>
Fri, 1 Jun 2012 17:08:30 +0000 (19:08 +0200)
committerAPTX <redacted>
Fri, 1 Jun 2012 17:08:30 +0000 (19:08 +0200)
localmylist/mylistmodel.cpp
localmylist/mylistmodel.h
localmylist/mylistnode.cpp
localmylist/mylistnode.h

index a7bfe08..61a8952 100644 (file)
@@ -4,6 +4,8 @@
 
 #include <QDebug>
 
+namespace LocalMyList {
+
 MyListModel::MyListModel(QObject *parent) :
        QAbstractItemModel(parent)
 {
@@ -132,3 +134,5 @@ bool MyListModel::hasChildren(const QModelIndex &parent) const
        else
                return rootItem->hasChildren();
 }
+
+} // namespace LocalMyList
index a4630a8..9e33466 100644 (file)
@@ -4,6 +4,8 @@
 #include "localmylist_global.h"
 #include <QAbstractItemModel>
 
+namespace LocalMyList {
+
 class MyListNode;
 
 class LOCALMYLISTSHARED_EXPORT MyListModel : public QAbstractItemModel
@@ -37,4 +39,6 @@ private:
        MyListNode *rootItem;
 };
 
+} // namespace LocalMyList
+
 #endif // MYLISTMODEL_H
index a301d14..fea4954 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <QDebug>
 
+namespace LocalMyList {
+
 MyListNode::MyListNode(NodeType type, int id, const QList<QVariant> &data, MyListNode *parent) :
        m_totalRowCount(-1), fetchedRowCount(0)
 {
@@ -203,3 +205,5 @@ QString MyListFileNode::totalRowCountSql() const
 {
        return "SELECT 0";
 }
+
+} // namespace LocalMyList
index 9fa3907..7ef91a0 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <QVariant>
 
+namespace LocalMyList {
+
 class MyListNode
 {
 public:
@@ -80,5 +82,6 @@ protected:
        QString totalRowCountSql() const;
 };
 
+} // namespace LocalMyList
 
 #endif // MYLISTNODE_H