fixed toggling read/unread and star status

This commit is contained in:
csoler 2019-02-26 14:45:48 +01:00
parent 875d0a15da
commit 5cbff98e40
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 39 additions and 69 deletions

View file

@ -85,7 +85,6 @@ public:
void updateMessages();
const RsMessageId& currentMessageId() const;
void setMsgReadStatus(const QModelIndex& i, bool read_status);
void setFilter(int column, const QStringList& strings, uint32_t &count) ;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
@ -122,6 +121,10 @@ public:
*/
void debug_dump() const;
// control over message flags and so on. This is handled by the model because it will allow it to update accordingly
void setMsgReadStatus(const QModelIndex& i, bool read_status);
void setMsgStar(const QModelIndex& index,bool star) ;
signals:
void messagesLoaded(); // emitted after the messages have been set. Can be used to updated the UI.