Skip to content
Snippets Groups Projects
Commit ba8faa35 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Remove empty destructors

parent 26f221ec
No related branches found
No related tags found
No related merge requests found
Showing
with 3 additions and 29 deletions
......@@ -60,7 +60,6 @@ public:
ChatPage(QSharedPointer<MatrixClient> client,
QSharedPointer<UserSettings> userSettings,
QWidget *parent = 0);
~ChatPage();
// Initialize all the components of the UI.
void bootstrap(QString userid, QString homeserver, QString token);
......
......@@ -24,8 +24,6 @@ public:
QString community_id,
QWidget *parent = nullptr);
~CommunitiesListItem();
void setCommunity(QSharedPointer<Community> community);
inline bool isPressed() const;
......@@ -87,7 +85,6 @@ class WorldCommunityListItem : public CommunitiesListItem
Q_OBJECT
public:
WorldCommunityListItem(QWidget *parent = nullptr);
~WorldCommunityListItem();
protected:
void mousePressEvent(QMouseEvent *event) override;
......
......@@ -35,7 +35,6 @@ class LoginPage : public QWidget
public:
LoginPage(QSharedPointer<MatrixClient> client, QWidget *parent = 0);
~LoginPage();
void reset();
......
......@@ -32,7 +32,6 @@ class RegisterPage : public QWidget
public:
RegisterPage(QSharedPointer<MatrixClient> client, QWidget *parent = 0);
~RegisterPage();
protected:
void paintEvent(QPaintEvent *event) override;
......
......@@ -67,8 +67,6 @@ public:
RoomInfoListItem(QString room_id, mtx::responses::InvitedRoom room, QWidget *parent = 0);
~RoomInfoListItem();
void updateUnreadMessageCount(int count);
void clearUnreadMessageCount();
void setState(QSharedPointer<RoomState> state)
......
......@@ -44,7 +44,6 @@ public:
RoomList(QSharedPointer<MatrixClient> client,
QSharedPointer<UserSettings> userSettings,
QWidget *parent = 0);
~RoomList();
void setCache(QSharedPointer<Cache> cache) { cache_ = cache; }
void setInitialRooms(const std::map<QString, QSharedPointer<RoomSettings>> &settings,
......
......@@ -19,7 +19,6 @@ class SideBarActions : public QWidget
public:
SideBarActions(QWidget *parent = nullptr);
~SideBarActions();
signals:
void showSettings();
......
......@@ -80,7 +80,6 @@ class TextInputWidget : public QWidget
public:
TextInputWidget(QWidget *parent = 0);
~TextInputWidget();
void stopTyping();
......
......@@ -41,7 +41,6 @@ class TopRoomBar : public QWidget
Q_OBJECT
public:
TopRoomBar(QWidget *parent = 0);
~TopRoomBar();
void updateRoomAvatar(const QImage &avatar_image);
void updateRoomAvatar(const QIcon &icon);
......
......@@ -32,7 +32,6 @@ class UserInfoWidget : public QWidget
public:
UserInfoWidget(QWidget *parent = 0);
~UserInfoWidget();
void setAvatar(const QImage &img);
void setDisplayName(const QString &name);
......
......@@ -32,7 +32,6 @@ class Category : public QWidget
public:
Category(QString category, std::vector<Emoji> emoji, QWidget *parent = nullptr);
~Category();
signals:
void emojiSelected(const QString &emoji);
......
......@@ -86,8 +86,6 @@ public:
void setEventId(const QString &event_id) { event_id_ = event_id; }
void markReceived();
~TimelineItem();
protected:
void paintEvent(QPaintEvent *event) override;
void contextMenuEvent(QContextMenuEvent *event) override;
......
......@@ -35,7 +35,6 @@ class TimelineViewManager : public QStackedWidget
public:
TimelineViewManager(QSharedPointer<MatrixClient> client, QWidget *parent);
~TimelineViewManager();
// Initialize with timeline events.
void initialize(const mtx::responses::Rooms &rooms);
......
......@@ -16,7 +16,6 @@ class Avatar : public QWidget
public:
explicit Avatar(QWidget *parent = 0);
~Avatar();
void setBackgroundColor(const QColor &color);
void setIcon(const QIcon &icon);
......
......@@ -19,7 +19,6 @@ public:
explicit Badge(QWidget *parent = 0);
explicit Badge(const QIcon &icon, QWidget *parent = 0);
explicit Badge(const QString &text, QWidget *parent = 0);
~Badge();
void setBackgroundColor(const QColor &color);
void setTextColor(const QColor &color);
......
......@@ -11,7 +11,6 @@ public:
explicit Label(const QString &text,
QWidget *parent = Q_NULLPTR,
Qt::WindowFlags f = Qt::WindowFlags());
~Label() override {}
signals:
void clicked(QMouseEvent *e);
......
......@@ -18,7 +18,6 @@ class Ripple : public QParallelAnimationGroup
public:
explicit Ripple(const QPoint &center, QObject *parent = 0);
Ripple(const QPoint &center, RippleOverlay *overlay, QObject *parent = 0);
~Ripple();
inline void setOverlay(RippleOverlay *overlay);
......
......@@ -12,7 +12,6 @@ class RippleOverlay : public OverlayWidget
public:
explicit RippleOverlay(QWidget *parent = 0);
~RippleOverlay();
void addRipple(Ripple *ripple);
void addRipple(const QPoint &position, qreal radius = 300);
......
......@@ -2,7 +2,7 @@
#include <QCoreApplication>
#include <QPaintEvent>
#include <QStateMachine>
#include <QSharedPointer>
#include <QTimer>
#include "OverlayWidget.h"
......@@ -19,7 +19,6 @@ class SnackBar : public OverlayWidget
public:
explicit SnackBar(QWidget *parent);
~SnackBar();
inline void setBackgroundColor(const QColor &color);
inline void setTextColor(const QColor &color);
......@@ -48,8 +47,8 @@ private:
QList<QString> messages_;
QTimer *showTimer_;
QTimer *hideTimer_;
QSharedPointer<QTimer> showTimer_;
QSharedPointer<QTimer> hideTimer_;
int duration_;
int boxWidth_;
......
......@@ -23,7 +23,6 @@ class TextField : public QLineEdit
public:
explicit TextField(QWidget *parent = 0);
~TextField();
void setInkColor(const QColor &color);
void setBackgroundColor(const QColor &color);
......@@ -72,7 +71,6 @@ class TextFieldLabel : public QWidget
public:
TextFieldLabel(TextField *parent);
~TextFieldLabel();
inline void setColor(const QColor &color);
inline void setOffset(const QPointF &pos);
......@@ -140,7 +138,6 @@ class TextFieldStateMachine : public QStateMachine
public:
TextFieldStateMachine(TextField *parent);
~TextFieldStateMachine();
inline void setProgress(qreal progress);
void setLabel(TextFieldLabel *label);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment