mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-10 23:23:52 +01:00
Save work.
This commit is contained in:
parent
0773db7b5a
commit
6776d3809d
@ -39,6 +39,8 @@ MessagesModel::MessagesModel(QObject *parent)
|
||||
// via model, but via DIRECT SQL calls are used to do persistent messages.
|
||||
setEditStrategy(QSqlTableModel::OnManualSubmit);
|
||||
setTable(QSL("Messages"));
|
||||
//setRelation(MSG_DB_FEED_INDEX, QSqlRelation("Feeds", "custom_id", "title"));
|
||||
|
||||
loadMessages(nullptr);
|
||||
}
|
||||
|
||||
|
@ -44,14 +44,13 @@ class MessagesModel : public QSqlRelationalTableModel {
|
||||
explicit MessagesModel(QObject *parent = 0);
|
||||
virtual ~MessagesModel();
|
||||
|
||||
QString orderByClause() const;
|
||||
|
||||
// Model implementation.
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
QVariant data(int row, int column, int role = Qt::DisplayRole) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
|
||||
QString orderByClause() const;
|
||||
QString selectStatement() const;
|
||||
|
||||
// Returns message at given index.
|
||||
|
Loading…
Reference in New Issue
Block a user