diff --git a/CMakeLists.txt b/CMakeLists.txt index 556d4023d..d5912a7ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. diff --git a/src/core/messagesmodel.cpp b/src/core/messagesmodel.cpp new file mode 100644 index 000000000..6586519ae --- /dev/null +++ b/src/core/messagesmodel.cpp @@ -0,0 +1,5 @@ +#include "core/messagesmodel.h" + + +MessagesModel::MessagesModel(QObject *parent) : QSqlTableModel(parent) { +} diff --git a/src/core/messagesmodel.h b/src/core/messagesmodel.h new file mode 100644 index 000000000..bb8b1e509 --- /dev/null +++ b/src/core/messagesmodel.h @@ -0,0 +1,19 @@ +#ifndef MESSAGESMODEL_H +#define MESSAGESMODEL_H + +#include + + +class MessagesModel : public QSqlTableModel { + Q_OBJECT + + public: + explicit MessagesModel(QObject *parent = 0); + + signals: + + public slots: + +}; + +#endif // MESSAGESMODEL_H diff --git a/src/core/messagesproxymodel.cpp b/src/core/messagesproxymodel.cpp new file mode 100644 index 000000000..39ada9074 --- /dev/null +++ b/src/core/messagesproxymodel.cpp @@ -0,0 +1,6 @@ +#include "core/messagesproxymodel.h" + + +MessagesProxyModel::MessagesProxyModel(QObject *parent) + : QSortFilterProxyModel(parent) { +} diff --git a/src/core/messagesproxymodel.h b/src/core/messagesproxymodel.h new file mode 100644 index 000000000..44341bef9 --- /dev/null +++ b/src/core/messagesproxymodel.h @@ -0,0 +1,19 @@ +#ifndef MESSAGESPROXYMODEL_H +#define MESSAGESPROXYMODEL_H + +#include + + +class MessagesProxyModel : public QSortFilterProxyModel { + Q_OBJECT + + public: + explicit MessagesProxyModel(QObject *parent = 0); + + signals: + + public slots: + +}; + +#endif // MESSAGESPROXYMODEL_H diff --git a/src/gui/baselineedit.h b/src/gui/baselineedit.h index 628d9787d..5a3fe65ba 100644 --- a/src/gui/baselineedit.h +++ b/src/gui/baselineedit.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);