mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-10 23:23:52 +01:00
Change msgmodel base, final version.
This commit is contained in:
parent
144bd944ae
commit
b99acea244
@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
MessagesModel::MessagesModel(QObject *parent)
|
||||
: QSqlRelationalTableModel(parent, qApp->database()->connection(QSL("MessagesModel"), DatabaseFactory::FromSettings)),
|
||||
: QSqlTableModel(parent, qApp->database()->connection(QSL("MessagesModel"), DatabaseFactory::FromSettings)),
|
||||
m_fieldNames(QMap<int,QString>()), m_sortColumn(QList<int>()), m_sortOrder(QList<Qt::SortOrder>()),
|
||||
m_messageHighlighter(NoHighlighting), m_customDateFormat(QString()) {
|
||||
setupFonts();
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef MESSAGESMODEL_H
|
||||
#define MESSAGESMODEL_H
|
||||
|
||||
#include <QSqlRelationalTableModel>
|
||||
#include <QSqlTableModel>
|
||||
|
||||
#include "definitions/definitions.h"
|
||||
#include "core/message.h"
|
||||
@ -28,7 +28,7 @@
|
||||
#include <QIcon>
|
||||
|
||||
|
||||
class MessagesModel : public QSqlRelationalTableModel {
|
||||
class MessagesModel : public QSqlTableModel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user