• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

basequerymodel.h

Go to the documentation of this file.
00001 #ifndef BASEQUERYMODEL_H
00002 #define BASEQUERYMODEL_H
00003 
00004 #define DEBUG_DEFAULTQUERY
00005 #undef DEBUG_DEFAULTQUERY
00006 #define DEBUG_WITHOUTDB
00007 #undef DEBUG_WITHOUTDB
00008 
00009 #include "database.h"
00010 
00011 class BuilderView;
00012 class TreeItem;
00013 
00020 class BaseQueryModel : public SqlQueryModel
00021 {   Q_OBJECT
00022 public:
00023     BaseQueryModel(QObject *parent = 0);
00024     bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex & parent);
00025 
00026 #ifdef DEBUG_WITHOUTDB
00027     QVariant data(const QModelIndex &item, int role) const ;
00028     int rowCount(const QModelIndex &parent = QModelIndex()) const;
00029     int columnCount(const QModelIndex &parent = QModelIndex()) const;
00030 #endif //DEBUG_WITHOUTDB
00031 
00032     void setBuilderView(BuilderView *view);
00033     BuilderView *builderView();
00034     QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const ;
00035     QStringList mimeTypes() const ;
00036     Qt::DropActions supportedDropActions() const;
00037     Qt::ItemFlags flags(const QModelIndex &index) const ;
00038 
00039 signals:
00040     void signal_treeItemDropped(int db_tree_id);
00041     void signal_treeItemDropped(TreeItem *item);
00042 
00043 private:
00044     QMap<int, TreeItem*> droppedTrees; 
00045     BuilderView *view;
00046 };
00047 
00048 #endif // BASEQUERYMODEL_H

Generated on Tue Aug 24 2010 15:58:54 for Smartlet by  doxygen 1.7.1