ui/qt/model.h

changeset 516
4b31c74666d7
parent 130
212b63dd61be
--- a/ui/qt/model.h	Wed Mar 26 20:27:20 2025 +0100
+++ b/ui/qt/model.h	Wed Mar 26 20:39:04 2025 +0100
@@ -39,53 +39,6 @@
 #include <QAbstractItemModel>
 #include <QItemSelectionModel>
 
-class ListModel : public QAbstractListModel {
-    Q_OBJECT
-    
-    UiObject    *obj;
-    UiListPtr   *list;
-    ui_model_getvalue_f getvalue;
-    ui_callback callback;
-    void        *userdata;
-    QListView   *view;
-    
-public:
-    ListModel(UiObject *obj, QListView *view, UiListPtr *list, ui_model_getvalue_f getvalue, ui_callback f, void *userdata);
-    
-    int rowCount(const QModelIndex &parent = QModelIndex()) const;
-    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
-    
-public slots:
-    void selectionChanged(
-        const QItemSelection & selected,
-        const QItemSelection & deselected);
-};
-
-class TableModel : public QAbstractTableModel {
-    Q_OBJECT
-    
-    UiObject    *obj;
-    UiListPtr   *list;
-    UiModelInfo *info;
-    QTreeView   *view;
-public:
-    TableModel(UiObject *obj, QTreeView *view, UiListPtr *list, UiModelInfo *info);
-    
-    int rowCount(const QModelIndex &parent = QModelIndex()) const;
-    int columnCount(const QModelIndex &parent = QModelIndex()) const;
-    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
-    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
-    
-    void update();
-    
-public slots:
-    void selectionChanged(
-        const QItemSelection & selected,
-        const QItemSelection & deselected);
-    void activate(const QModelIndex &);
-};
-
-UiListSelection* listSelection(QItemSelectionModel *s);
 
 #endif	/* MODEL_H */
 

mercurial