summaryrefslogtreecommitdiffstats
path: root/mappingtreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-08-21 16:59:04 +0200
committerArno <am@disconnect.de>2013-08-21 16:59:04 +0200
commitd9ed1e53b7ea0c994972f4628a4dbb431fdf9fde (patch)
tree609df5caae9dd9cb6d29c228f3d408053297e69c /mappingtreemodel.h
parent0f3219e77f65a4c3d67f34034e67775a32d2aacb (diff)
downloadSheMov-d9ed1e53b7ea0c994972f4628a4dbb431fdf9fde.tar.gz
SheMov-d9ed1e53b7ea0c994972f4628a4dbb431fdf9fde.tar.bz2
SheMov-d9ed1e53b7ea0c994972f4628a4dbb431fdf9fde.zip
Fix MappingTreeModel for good
* Again: remove the transaction madness besides almost everywhere leaving one instance where it is actually useful. * Hide the buttons to add and delete mapping types. Haven't thought that through complete. What should be deleted on cascade? Do we really want/
Diffstat (limited to 'mappingtreemodel.h')
-rw-r--r--mappingtreemodel.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/mappingtreemodel.h b/mappingtreemodel.h
index 1fd2c82..c28967a 100644
--- a/mappingtreemodel.h
+++ b/mappingtreemodel.h
@@ -64,7 +64,7 @@ class MappingTreeModel : public SmTreeModel {
QVariant name;
};
void getMappings();
- int addChild(const QString &name, int type);
+ int addDescription(const QString &name, int type);
void getMappingTypes();
void getChildrenRecursive(SmTreeItem *item);
bool updateChild(SmTreeItem *item, const QVariant &value);
@@ -74,13 +74,6 @@ class MappingTreeModel : public SmTreeModel {
int lowerBound(SmTreeItem *item, const QVariant &value, int column = 0) const;
QSqlDatabase mDb;
QString mSParentsQ;
- QSqlQuery *mAddMappingTypeQ;
- QSqlQuery *mDeleteMappingTypeQ;
- QSqlQuery *mAddDescriptionQ;
- QSqlQuery *mSelectDescriptionQ;
- QSqlQuery *mUpdateParentQ;
- QSqlQuery *mDeleteMappingParentQ;
- QSqlQuery *mDescriptionQ;
QList<mappingType> mMappingTypes;
QMap<QString, int> mMappings;
const QString mForbidden;