2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Refactored dialogs structs.

Moved DialogRow, FakeDialogRow, DialogsList and DialogsIndexed
from history module to dialogs/ folder, for all struct -> class.
This commit is contained in:
John Preston
2016-04-09 22:45:55 +04:00
parent 8f00650f0e
commit 7bba52fb7e
22 changed files with 1428 additions and 1099 deletions

View File

@@ -1363,11 +1363,11 @@ void MainWidget::clearSelectedItems() {
}
}
DialogsIndexed &MainWidget::contactsList() {
Dialogs::IndexedList *MainWidget::contactsList() {
return dialogs.contactsList();
}
DialogsIndexed &MainWidget::dialogsList() {
Dialogs::IndexedList *MainWidget::dialogsList() {
return dialogs.dialogsList();
}
@@ -2653,7 +2653,7 @@ QRect MainWidget::historyRect() const {
return r;
}
void MainWidget::dlgUpdated(DialogRow *row) {
void MainWidget::dlgUpdated(Dialogs::Row *row) {
if (row) {
dialogs.dlgUpdated(row);
} else if (_peerInStack) {