2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replace ContactsBox with PeerListBox in two cases.

- View contacts list in PeerListBox.
- Add participants when creating group / channel in PeerListBox.
This commit is contained in:
John Preston
2017-08-14 15:53:49 +03:00
parent 17cef93ac0
commit f7359093b4
31 changed files with 825 additions and 393 deletions

View File

@@ -78,7 +78,7 @@ enum class FileOption {
User = 0x01,
Safe = 0x02,
};
Q_DECLARE_FLAGS(FileOptions, FileOption);
using FileOptions = QFlags<FileOption>;
Q_DECLARE_OPERATORS_FOR_FLAGS(FileOptions);
bool keyAlreadyUsed(QString &name, FileOptions options = FileOption::User | FileOption::Safe) {