mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-29 01:20:32 +01:00
Something added.
This commit is contained in:
parent
96438d8b5f
commit
5b506032ec
@ -210,6 +210,8 @@ set(APP_SOURCES
|
||||
src/core/webbrowsernetworkaccessmanager.cpp
|
||||
src/core/textfactory.cpp
|
||||
src/core/databasefactory.cpp
|
||||
src/core/messagesmodel.cpp
|
||||
src/core/messagesproxymodel.cpp
|
||||
|
||||
# Basic application sources.
|
||||
src/main.cpp
|
||||
@ -253,6 +255,8 @@ set(APP_HEADERS
|
||||
src/core/webbrowsernetworkaccessmanager.h
|
||||
src/core/basewebpage.h
|
||||
src/core/databasefactory.h
|
||||
src/core/messagesmodel.h
|
||||
src/core/messagesproxymodel.h
|
||||
)
|
||||
|
||||
# Add form files.
|
||||
|
5
src/core/messagesmodel.cpp
Normal file
5
src/core/messagesmodel.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
#include "core/messagesmodel.h"
|
||||
|
||||
|
||||
MessagesModel::MessagesModel(QObject *parent) : QSqlTableModel(parent) {
|
||||
}
|
19
src/core/messagesmodel.h
Normal file
19
src/core/messagesmodel.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef MESSAGESMODEL_H
|
||||
#define MESSAGESMODEL_H
|
||||
|
||||
#include <QSqlTableModel>
|
||||
|
||||
|
||||
class MessagesModel : public QSqlTableModel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MessagesModel(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
};
|
||||
|
||||
#endif // MESSAGESMODEL_H
|
6
src/core/messagesproxymodel.cpp
Normal file
6
src/core/messagesproxymodel.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "core/messagesproxymodel.h"
|
||||
|
||||
|
||||
MessagesProxyModel::MessagesProxyModel(QObject *parent)
|
||||
: QSortFilterProxyModel(parent) {
|
||||
}
|
19
src/core/messagesproxymodel.h
Normal file
19
src/core/messagesproxymodel.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef MESSAGESPROXYMODEL_H
|
||||
#define MESSAGESPROXYMODEL_H
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
|
||||
class MessagesProxyModel : public QSortFilterProxyModel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MessagesProxyModel(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
};
|
||||
|
||||
#endif // MESSAGESPROXYMODEL_H
|
@ -6,11 +6,12 @@
|
||||
|
||||
class BaseLineEdit : public QLineEdit {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
// Constructors and destructors.
|
||||
explicit BaseLineEdit(QWidget *parent = 0);
|
||||
virtual ~BaseLineEdit();
|
||||
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user