Some tweaking of message list & update UPDATES file.
This commit is contained in:
parent
c38b0d7ba1
commit
9b8cbfc0f0
@ -1,4 +1,9 @@
|
|||||||
<body>
|
<body>
|
||||||
|
[1.9.9.6]
|
||||||
|
<ul>
|
||||||
|
<li>[~] Message list optimizations.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
[1.9.9.6]
|
[1.9.9.6]
|
||||||
<ul>
|
<ul>
|
||||||
<li>[~] Localization handling.</li>
|
<li>[~] Localization handling.</li>
|
||||||
|
@ -10,7 +10,12 @@
|
|||||||
[~] Default feeds.
|
[~] Default feeds.
|
||||||
[#] Restarting of application on all platforms.
|
[#] Restarting of application on all platforms.
|
||||||
[+] Initial French, Portuguese, German localizations. THANKS to theirs authors!!!
|
[+] Initial French, Portuguese, German localizations. THANKS to theirs authors!!!
|
||||||
[#] Bugs #15, #16, #13, #19, #20, #26, #25, #18, #21, #25.]]>
|
[#] Bugs #15, #16, #13, #19, #20, #26, #25, #18, #21, #25.
|
||||||
|
|
||||||
|
[+] added
|
||||||
|
[#] fixed
|
||||||
|
[~] changed
|
||||||
|
[@] other action]]>
|
||||||
</changes>
|
</changes>
|
||||||
</release>
|
</release>
|
||||||
</releases>
|
</releases>
|
@ -49,8 +49,6 @@ MessagesModel::~MessagesModel() {
|
|||||||
qDebug("Destroying MessagesModel instance.");
|
qDebug("Destroying MessagesModel instance.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void MessagesModel::setupIcons() {
|
void MessagesModel::setupIcons() {
|
||||||
m_favoriteIcon = IconThemeFactory::instance()->fromTheme("mail-mark-favorite");
|
m_favoriteIcon = IconThemeFactory::instance()->fromTheme("mail-mark-favorite");
|
||||||
m_readIcon = IconThemeFactory::instance()->fromTheme("mail-mark-read");
|
m_readIcon = IconThemeFactory::instance()->fromTheme("mail-mark-read");
|
||||||
@ -105,7 +103,7 @@ Message MessagesModel::messageAt(int row_index) const {
|
|||||||
message.m_contents = rec.value(MSG_DB_CONTENTS_INDEX).toString();
|
message.m_contents = rec.value(MSG_DB_CONTENTS_INDEX).toString();
|
||||||
message.m_title = rec.value(MSG_DB_TITLE_INDEX).toString();
|
message.m_title = rec.value(MSG_DB_TITLE_INDEX).toString();
|
||||||
message.m_url = rec.value(MSG_DB_URL_INDEX).toString();
|
message.m_url = rec.value(MSG_DB_URL_INDEX).toString();
|
||||||
message.m_created = TextFactory::parseDateTime(rec.value(MSG_DB_DCREATED_INDEX).value<qint64>());
|
message.m_created = TextFactory::parseDateTime(rec.value(MSG_DB_DCREATED_INDEX).value<qint64>()).toLocalTime();
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
// Represents single message.
|
// Represents single message.
|
||||||
class Message {
|
class Message {
|
||||||
public:
|
public:
|
||||||
Message() {
|
explicit Message() {
|
||||||
m_title = m_url = m_author = m_contents = "";
|
m_title = m_url = m_author = m_contents = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,7 +58,6 @@ class MessagesModel : public QSqlTableModel {
|
|||||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||||
|
|
||||||
public:
|
|
||||||
// Returns message at given index.
|
// Returns message at given index.
|
||||||
Message messageAt(int row_index) const;
|
Message messageAt(int row_index) const;
|
||||||
int messageId(int row_index) const;
|
int messageId(int row_index) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user