diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-22 16:51:29 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-22 16:51:29 -0400 |
| commit | 4b310a234e1ba1bb8d8de01089ba1b2e0788e905 (patch) | |
| tree | 02d9674bcd16f9fe8a504ea04d8c433bc1422473 | |
| parent | f336da57a6d5c1737fdec4f957e1454bb63771b4 (diff) | |
Don't export BaseModel
| -rw-r--r-- | sigmodr/SigmodrUI.cpp | 5 | ||||
| -rw-r--r-- | sigmodr/tree/BaseModel.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp index 98dfdf5a..88ce2f3e 100644 --- a/sigmodr/SigmodrUI.cpp +++ b/sigmodr/SigmodrUI.cpp @@ -23,7 +23,6 @@ #include "SigmodrPreferencesWidget.h" // Sigmodr tree includes -#include <sigmodr/tree/BaseModel.h> #include <sigmodr/tree/SigmodrTree.h> // Sigmodr widget includes @@ -489,8 +488,8 @@ void SigmodrUI::on_treeSigmod_customContextMenuRequested(const QPoint& position) KMenu* menu = treeSigmod->contextMenu(index); if (menu) { - QString type = treeSigmod->model()->data(index, BaseModel::TypeRole).toString(); - QStringList types = treeSigmod->model()->data(index, BaseModel::DropAcceptRole).toString().split(';'); + QString type = treeSigmod->typeOf(index); + QStringList types = treeSigmod->dropTypes(index); KAction* paste = new KAction("&Paste", this); connect(paste, SIGNAL(triggered()), this, SLOT(pasteObject())); paste->setEnabled(types.contains(m_clipboard.doctype().name())); diff --git a/sigmodr/tree/BaseModel.h b/sigmodr/tree/BaseModel.h index 4eaa873e..e17c8696 100644 --- a/sigmodr/tree/BaseModel.h +++ b/sigmodr/tree/BaseModel.h @@ -38,7 +38,7 @@ namespace Sigmodr { namespace Tree { -class SIGMODRTREE_EXPORT BaseModel : public QObject +class SIGMODRTREE_NO_EXPORT BaseModel : public QObject { Q_OBJECT |
