diff options
Diffstat (limited to 'globals.cpp')
-rw-r--r-- | globals.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/globals.cpp b/globals.cpp index 53bd1f0..68d710a 100644 --- a/globals.cpp +++ b/globals.cpp @@ -16,6 +16,12 @@ void Globals::addAction(QAction *a){ mActions.insert(a->data().toInt(), a); } +void Globals::addView(QTreeView *v){ + if(!mViews.contains(v)){ + mViews.append(v); + } +} + QAction *Globals::action(int actionType){ return mActions.value(actionType); } |