mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-30 07:46:51 +08:00
22 lines
403 B
C++
22 lines
403 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#ifndef CUSTOMSQLMODEL_H
|
|
#define CUSTOMSQLMODEL_H
|
|
|
|
#include <QSqlQueryModel>
|
|
|
|
//! [0]
|
|
class CustomSqlModel : public QSqlQueryModel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
CustomSqlModel(QObject *parent = nullptr);
|
|
|
|
QVariant data(const QModelIndex &item, int role) const override;
|
|
};
|
|
//! [0]
|
|
|
|
#endif
|