2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Replace dialogs mode with filters.

This commit is contained in:
John Preston
2020-02-07 13:43:12 +04:00
parent 98b947fbdf
commit 71f7aae948
28 changed files with 330 additions and 236 deletions

View File

@@ -38,7 +38,6 @@ namespace Dialogs {
class Row;
class FakeRow;
class IndexedList;
enum class Mode;
struct ChosenRow {
Key key;
@@ -89,7 +88,7 @@ public:
void refreshDialog(Key key);
void removeDialog(Key key);
void repaintDialogRow(Mode list, not_null<Row*> row);
void repaintDialogRow(FilterId filterId, not_null<Row*> row);
void repaintDialogRow(RowDescriptor row);
void dragLeft();
@@ -310,7 +309,7 @@ private:
not_null<Window::SessionController*> _controller;
Mode _mode = Mode();
FilterId _filterId = 0;
bool _mouseSelection = false;
std::optional<QPoint> _lastMousePosition;
Qt::MouseButton _pressButton = Qt::LeftButton;