mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Removed Q_OBJECT from Dialogs::Widget.
This commit is contained in:
@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "base/timer.h"
|
||||
#include "dialogs/dialogs_key.h"
|
||||
#include "window/section_widget.h"
|
||||
#include "ui/effects/animations.h"
|
||||
@@ -15,8 +16,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "mtproto/sender.h"
|
||||
#include "api/api_single_message_search.h"
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
|
||||
namespace MTP {
|
||||
class Error;
|
||||
} // namespace MTP
|
||||
@@ -57,7 +56,6 @@ class InnerWidget;
|
||||
enum class SearchRequestType;
|
||||
|
||||
class Widget final : public Window::AbstractSectionWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Widget(QWidget *parent, not_null<Window::SessionController*> controller);
|
||||
@@ -86,7 +84,7 @@ public:
|
||||
void scrollToEntry(const RowDescriptor &entry);
|
||||
|
||||
void searchMessages(const QString &query, Key inChat = {});
|
||||
void onSearchMore();
|
||||
void searchMore();
|
||||
|
||||
void updateForwardBar();
|
||||
|
||||
@@ -99,21 +97,10 @@ public:
|
||||
bool floatPlayerHandleWheelEvent(QEvent *e) override;
|
||||
QRect floatPlayerAvailableRect() override;
|
||||
|
||||
bool cancelSearch();
|
||||
|
||||
~Widget();
|
||||
|
||||
public Q_SLOTS:
|
||||
void onListScroll();
|
||||
bool onCancelSearch();
|
||||
void onCancelSearchInChat();
|
||||
|
||||
void onFilterCursorMoved(int from = -1, int to = -1);
|
||||
void onCompleteHashtag(QString tag);
|
||||
|
||||
bool onSearchMessages(bool searchCache = false);
|
||||
void onNeedSearchMessages();
|
||||
|
||||
void onChooseByDrag();
|
||||
|
||||
protected:
|
||||
void dragEnterEvent(QDragEnterEvent *e) override;
|
||||
void dragMoveEvent(QDragMoveEvent *e) override;
|
||||
@@ -129,6 +116,14 @@ private:
|
||||
Internal,
|
||||
};
|
||||
|
||||
void listScrollUpdated();
|
||||
void cancelSearchInChat();
|
||||
void filterCursorMoved(int from = -1, int to = -1);
|
||||
void completeHashtag(QString tag);
|
||||
|
||||
bool searchMessages(bool searchCache = false);
|
||||
void needSearchMessages();
|
||||
|
||||
void animationCallback();
|
||||
void searchReceived(
|
||||
SearchRequestType type,
|
||||
@@ -183,7 +178,7 @@ private:
|
||||
|
||||
bool _dragInScroll = false;
|
||||
bool _dragForward = false;
|
||||
QTimer _chooseByDragTimer;
|
||||
base::Timer _chooseByDragTimer;
|
||||
|
||||
object_ptr<Ui::IconButton> _forwardCancel = { nullptr };
|
||||
object_ptr<Ui::RpWidget> _searchControls;
|
||||
@@ -219,7 +214,7 @@ private:
|
||||
PeerData *_searchFromAuthor = nullptr;
|
||||
QString _lastFilterText;
|
||||
|
||||
QTimer _searchTimer;
|
||||
base::Timer _searchTimer;
|
||||
|
||||
QString _peerSearchQuery;
|
||||
bool _peerSearchFull = false;
|
||||
|
Reference in New Issue
Block a user