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

index a7bfe082dac8e127c2f4b8d16e536a0753412338..61a8952b03754aea4bc42eb447b1bdfa1d3202b0 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 a4630a8490ac7855678eb33c7ac3a18d9ba68756..9e334669524f7c5c9fe5d89ec684c415969adbee 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 a301d14578fbddd87fde30432bb3867553e5dbe0..fea4954ddc9f46721772df9601dec89be1230090 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 9fa3907a54ecd10f1452360006590213e6251f64..7ef91a0a6327ca17fea12767c17eacd3b4ce96aa 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