mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: correct virtual overrides
This commit is contained in:
parent
ec4a5d08ef
commit
36f7f65732
|
@ -26,7 +26,7 @@ class CircleWidget final : public CategoryWidget
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CircleWidget(FriendListWidget* parent, int id);
|
||||
explicit CircleWidget(FriendListWidget* parent, int id);
|
||||
~CircleWidget();
|
||||
|
||||
void editName();
|
||||
|
@ -36,15 +36,15 @@ signals:
|
|||
void renameRequested(CircleWidget* circleWidget, const QString &newName);
|
||||
|
||||
protected:
|
||||
virtual void contextMenuEvent(QContextMenuEvent* event) final override;
|
||||
virtual void dragEnterEvent(QDragEnterEvent* event) final override;
|
||||
virtual void dragLeaveEvent(QDragLeaveEvent* event) final override;
|
||||
virtual void dropEvent(QDropEvent* event) final override;
|
||||
void contextMenuEvent(QContextMenuEvent* event) final override;
|
||||
void dragEnterEvent(QDragEnterEvent* event) final override;
|
||||
void dragLeaveEvent(QDragLeaveEvent* event) final override;
|
||||
void dropEvent(QDropEvent* event) final override;
|
||||
|
||||
private:
|
||||
virtual void onSetName() final override;
|
||||
virtual void onExpand() final override;
|
||||
virtual void onAddFriendWidget(FriendWidget* w) final override;
|
||||
void onSetName() final override;
|
||||
void onExpand() final override;
|
||||
void onAddFriendWidget(FriendWidget* w) final override;
|
||||
void updateID(int index);
|
||||
|
||||
static QHash<int, CircleWidget*> circleList;
|
||||
|
|
|
@ -28,15 +28,16 @@ class FriendWidget : public GenericChatroomWidget
|
|||
Q_OBJECT
|
||||
public:
|
||||
FriendWidget(int FriendId, QString id);
|
||||
virtual void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
virtual void setAsActiveChatroom() override;
|
||||
virtual void setAsInactiveChatroom() override;
|
||||
virtual void updateStatusLight() override;
|
||||
virtual bool chatFormIsSet(bool focus) const override;
|
||||
virtual void setChatForm(ContentLayout* contentLayout) override;
|
||||
virtual void resetEventFlags() override;
|
||||
virtual QString getStatusString() const override;
|
||||
virtual Friend* getFriend() const override;
|
||||
void contextMenuEvent(QContextMenuEvent* event) override final;
|
||||
void setAsActiveChatroom() override final;
|
||||
void setAsInactiveChatroom() override final;
|
||||
void updateStatusLight() override final;
|
||||
bool chatFormIsSet(bool focus) const override final;
|
||||
void setChatForm(ContentLayout* contentLayout) override final;
|
||||
void resetEventFlags() override final;
|
||||
QString getStatusString() const override final;
|
||||
Friend* getFriend() const override final;
|
||||
|
||||
void search(const QString &searchString, bool hide = false);
|
||||
|
||||
signals:
|
||||
|
|
Loading…
Reference in New Issue
Block a user