aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/menunode.h
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2013-01-10 15:54:35 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2013-01-10 15:54:35 -0300
commit33147e96ae17a01a3f025a5b7b78bff7943b4851 (patch)
tree5b9f5421585d19516f0b8f964eb878e0695f5d43 /libqmenumodel/src/menunode.h
parent2d050cddb8a4aa3ada8f956e071efed9d53898fd (diff)
downloadqmenumodel-33147e96ae17a01a3f025a5b7b78bff7943b4851.tar.gz
qmenumodel-33147e96ae17a01a3f025a5b7b78bff7943b4851.tar.bz2
qmenumodel-33147e96ae17a01a3f025a5b7b78bff7943b4851.zip
Fixed item removal and insertion.
Removed debug messages. Fixed tests to work with new tree model structure.
Diffstat (limited to 'libqmenumodel/src/menunode.h')
-rw-r--r--libqmenumodel/src/menunode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqmenumodel/src/menunode.h b/libqmenumodel/src/menunode.h
index d7a893c..21fc5bc 100644
--- a/libqmenumodel/src/menunode.h
+++ b/libqmenumodel/src/menunode.h
@@ -53,6 +53,9 @@ public:
void change(int start, int added, int removed);
MenuNode *find(GMenuModel *item);
+ int realPosition(int row) const;
+ void commitOperation();
+
static MenuNode *create(GMenuModel *model, int pos, MenuNode *parent=0, QObject *listener=0);
private:
@@ -63,6 +66,9 @@ private:
QObject *m_listener;
gulong m_signalChangedId;
QString m_linkType;
+ int m_currentOpPosition;
+ int m_currentOpAdded;
+ int m_currentOpRemoved;
static void onItemsChanged(GMenuModel *model, gint position, gint removed, gint added, gpointer data);
};