-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from justin-time/messageSupport
Full announcement and email support
- Loading branch information
Showing
14 changed files
with
471 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
#include <QDialog> | ||
|
||
|
||
namespace Ui { | ||
class Info; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "message.h" | ||
#include "ui_message.h" | ||
|
||
message::message(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::message) | ||
{ | ||
ui->setupUi(this); | ||
ui->retranslateUi(this); | ||
setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::CustomizeWindowHint); | ||
} | ||
|
||
void message::updateAuthor(QString author) | ||
{ | ||
ui->author_label->setText(author); | ||
} | ||
|
||
void message::updateSubject(QString subject) | ||
{ | ||
ui->subject_label->setText(subject); | ||
} | ||
|
||
void message::updateDate(QString date) | ||
{ | ||
ui->dates_label->setText(date); | ||
} | ||
|
||
void message::updateMessage(QString body) | ||
{ | ||
ui->message_body->setText(body); | ||
} | ||
|
||
message::~message() | ||
{ | ||
delete ui; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef MESSAGE_H | ||
#define MESSAGE_H | ||
|
||
#include <QDialog> | ||
|
||
namespace Ui { | ||
class message; | ||
} | ||
|
||
class message : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit message(QWidget *parent = 0); | ||
~message(); | ||
|
||
private: | ||
Ui::message *ui; | ||
|
||
public slots: | ||
void updateSubject(QString subject); | ||
void updateDate(QString date); | ||
void updateMessage(QString body); | ||
void updateAuthor(QString author); | ||
|
||
|
||
}; | ||
|
||
#endif // MESSAGE_H |
Oops, something went wrong.