|
沙发
楼主 |
发表于 2020-3-6 10:33:17
|
只看该作者
本帖最后由 Qter 于 2020-3-6 15:27 编辑
- object_ptr<DialogsWidget> _dialogs
- dialogs->destroyData();
- _dialogs->raise();
- object_ptr<QTimer> _draggingScrollTimer = { nullptr };
- _draggingScrollDelta = _scroll ? delta : 0;
- if (_draggingScrollDelta) {
- if (!_draggingScrollTimer) {
- _draggingScrollTimer.create(this);
- _draggingScrollTimer->setSingleShot(false);
- connect(_draggingScrollTimer, SIGNAL(timeout()), this, SLOT(onDraggingScrollTimer()));
- }
- _draggingScrollTimer->start(15);
- } else {
- _draggingScrollTimer.destroy();
- }
- QTimer _searchTimer;
- _searchTimer.setSingleShot(true);
- connect(&_searchTimer, SIGNAL(timeout()), this, SLOT(onSearchMessages()));
- _searchTimer.start(AutoSearchTimeout);
- _searchTimer.stop();
- base::unique_qptr<Ui::PopupMenu> _contextMenu;
- if (_contextMenu) {
- _contextMenu->deleteLater();
- _contextMenu = nullptr;
- }
复制代码 d |
|