Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Jan 19th, 2014 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #ifndef MODEL_H
  3. #define MODEL_H
  4.  
  5. #include <QAbstractTableModel>
  6. #include <QStringList>
  7. #include <QVariant>
  8.  
  9. class TableModel : public QAbstractTableModel
  10. {
  11.     Q_OBJECT
  12.  
  13. public:
  14.     TableModel(int rows = 1, int columns = 1, QObject *parent = 0);
  15.  
  16.     int rowCount(const QModelIndex &parent = QModelIndex()) const;
  17.     int columnCount(const QModelIndex &parent = QModelIndex()) const;
  18.     QVariant data(const QModelIndex &index, int role) const;
  19.     QVariant headerData(int section, Qt::Orientation orientation,
  20.                         int role = Qt::DisplayRole) const;
  21.  
  22.     Qt::ItemFlags flags(const QModelIndex &index) const;
  23.     bool setData(const QModelIndex &index, const QVariant &value,
  24.                  int role = Qt::EditRole);
  25.  
  26.     bool insertRows(int position, int rows, const QModelIndex &parent = QModelIndex());
  27.     bool insertColumns(int position, int columns, const QModelIndex &parent = QModelIndex());
  28.     bool removeRows(int position, int rows, const QModelIndex &parent = QModelIndex());
  29.     bool removeColumns(int position, int columns, const QModelIndex &parent = QModelIndex());
  30.  
  31. private:
  32.     QList<QStringList> rowList;
  33. };
  34.  
  35. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top