blob: 8a82fb41b16fe89149933c45d919a7c19230600a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef DDLHISTORYMODEL_H
#define DDLHISTORYMODEL_H
#include "coreSQLiteStudio_global.h"
#include <QSortFilterProxyModel>
class QueryModel;
class Db;
class API_EXPORT DdlHistoryModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
DdlHistoryModel(Db* db, QObject *parent = nullptr);
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
void refresh();
QString getDbNameForFilter() const;
void setDbNameForFilter(const QString& value);
QStringList getDbNames() const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
private:
QueryModel* internalModel = nullptr;
signals:
void refreshed();
};
#endif // DDLHISTORYMODEL_H
|