Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Tools/SqlBrowser/AddModel.h
T
berrux-dev e4743d631d Reduce qt6-after tree to release validation scope
Kept: TetraIF/, Z/src, Lts/Common, Lts/Proxies/TrainingAreaBase
(tabTelegrams dependency of TetraIF) plus build scaffolding
(cmake/, include/, external/, doxygen/, tests/, translations/,
lts-cc.conf, CTestCustom.ctest, new_docker_build.sh, rti_license.dat).
Removed: out-of-scope Lts modules (Application, DDS, Plugins, Projects,
Services, Tools, Viewer, all Proxies except TrainingAreaBase),
top-level src/, specs/, Qt5 tree (qt5-before + .gitmodules entry),
migration reports and leftover scripts.
2026-10-13 17:24:34 +02:00

34 lines
1.1 KiB
C++
Executable File

#pragma once
#include <QtCore/QAbstractTableModel>
#include "DataModel.h"
class AddModel : public QAbstractTableModel
{
Q_OBJECT
public:
using QAbstractTableModel::QAbstractTableModel;
void setHeaderList(const HeaderList& headerList);
void setTablename(const QString& tableName);
const QString& getTableName() const;
QMetaType::Type getColumnType(const int column) const;
const HeaderList& getHeaderList() const;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
bool removeRow(int row, const QModelIndex &parent = QModelIndex());
void clear();
private:
HeaderList m_headerList;
DataList m_dataList;
QString m_tableName;
};