Something added.

This commit is contained in:
Martin Rotter 2013-11-09 19:04:00 +01:00
parent 96438d8b5f
commit 5b506032ec
6 changed files with 55 additions and 1 deletions

View File

@ -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.

View File

@ -0,0 +1,5 @@
#include "core/messagesmodel.h"
MessagesModel::MessagesModel(QObject *parent) : QSqlTableModel(parent) {
}

19
src/core/messagesmodel.h Normal file
View 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

View File

@ -0,0 +1,6 @@
#include "core/messagesproxymodel.h"
MessagesProxyModel::MessagesProxyModel(QObject *parent)
: QSortFilterProxyModel(parent) {
}

View 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

View File

@ -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);