Merge lp:~libqtelegram-team/telegram-app/obtain-messages-model-from-dialogid into lp:~libqtelegram-team/telegram-app/qml-plugin
Proposed by
Roberto Mier Escandon
Status: | Merged |
---|---|
Merged at revision: | 173 |
Proposed branch: | lp:~libqtelegram-team/telegram-app/obtain-messages-model-from-dialogid |
Merge into: | lp:~libqtelegram-team/telegram-app/qml-plugin |
Diff against target: |
261 lines (+72/-30) 12 files modified
qmlplugin/data.cpp (+2/-2) qmlplugin/models/dialogitem.cpp (+2/-2) qmlplugin/models/dialogitem.h (+2/-1) qmlplugin/models/dialogsmodel.cpp (+7/-2) qmlplugin/models/dialogsmodel.h (+1/-0) qmlplugin/models/dialogsproxy.cpp (+10/-6) qmlplugin/models/dialogsproxy.h (+2/-3) qmlplugin/telegramclient.cpp (+10/-0) qmlplugin/telegramclient.h (+4/-2) uitest/components/listitems/DlgItem.qml (+5/-0) uitest/ui/DialogDesignPage.qml (+24/-7) uitest/uitest.qml (+3/-5) |
To merge this branch: | bzr merge lp:~libqtelegram-team/telegram-app/obtain-messages-model-from-dialogid |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Karnicki (community) | Approve | ||
Review via email:
|
Description of the change
Added methods in TelegramClient accesible from qml:
Q_INVOKABLE QVariant getMessagesMode
Q_INVOKABLE QVariant getDialog(qint32 dialogId);
First returns a MessagesModel object to be attached to a listView
Second returns a DialogItem object with the general data of that dialog
Both them are necessary to implement in qml the messages page
-------
This commit also fix a hidden bug: getMessagesModel and getMessagesMode
To post a comment you must log in.
One in-line comment. Otherwise great.