summary refs log tree commit diff
path: root/src/ui/LoadingIndicator.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-01-30 13:16:36 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-01-30 13:16:36 +0100
commitf44d8e916beb3e1059ba31e149de0cffbcaa02fd (patch)
tree71ef187a209d4fb4bf11bd7015d75bc0bd857d8f /src/ui/LoadingIndicator.h
parentFix centering dialogs (diff)
downloadnheko-f44d8e916beb3e1059ba31e149de0cffbcaa02fd.tar.xz
Remove a few now unused files
Diffstat (limited to 'src/ui/LoadingIndicator.h')
-rw-r--r--src/ui/LoadingIndicator.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/ui/LoadingIndicator.h b/src/ui/LoadingIndicator.h
deleted file mode 100644

index 6d3f2a89..00000000 --- a/src/ui/LoadingIndicator.h +++ /dev/null
@@ -1,49 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Nheko Contributors -// SPDX-FileCopyrightText: 2022 Nheko Contributors -// -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include <QColor> -#include <QWidget> - -class QPainter; -class QTimer; -class QPaintEvent; -class LoadingIndicator : public QWidget -{ - Q_OBJECT - Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) - -public: - LoadingIndicator(QWidget *parent = nullptr); - - void paintEvent(QPaintEvent *e) override; - - void start(); - void stop(); - - QColor color() { return color_; } - void setColor(QColor color) - { - color_ = color; - emit colorChanged(); - } - - int interval() { return interval_; } - void setInterval(int interval) { interval_ = interval; } - -private slots: - void onTimeout(); - -signals: - void colorChanged(); - -private: - int interval_; - int angle_; - - QColor color_; - QTimer *timer_; -};