From 409ff22d80301e15df1e1306c5e33c4d8795ffb2 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 28 Dec 2021 20:14:42 +0100 Subject: Remove unused button class --- src/ui/FloatingButton.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/ui/FloatingButton.h (limited to 'src/ui/FloatingButton.h') diff --git a/src/ui/FloatingButton.h b/src/ui/FloatingButton.h deleted file mode 100644 index df14dd2c..00000000 --- a/src/ui/FloatingButton.h +++ /dev/null @@ -1,30 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Nheko Contributors -// -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include "RaisedButton.h" - -constexpr int DIAMETER = 40; -constexpr int ICON_SIZE = 18; - -constexpr int OFFSET_X = 30; -constexpr int OFFSET_Y = 20; - -class FloatingButton : public RaisedButton -{ - Q_OBJECT - -public: - FloatingButton(const QIcon &icon, QWidget *parent = nullptr); - - QSize sizeHint() const override { return QSize(DIAMETER, DIAMETER); }; - QRect buttonGeometry() const; - -protected: - bool event(QEvent *event) override; - bool eventFilter(QObject *obj, QEvent *event) override; - - void paintEvent(QPaintEvent *event) override; -}; -- cgit 1.5.1