diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-08-11 13:50:56 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-08-11 13:50:56 +0300 |
commit | aa2f6ce77d924a0dc53325a425215a1b03e72f43 (patch) | |
tree | a6d8b8808a0f31c541aa7cb6af0cfd1f6826776f /src/ui/LoadingIndicator.cpp | |
parent | Add solid background in TypingDisplay (diff) | |
download | nheko-aa2f6ce77d924a0dc53325a425215a1b03e72f43.tar.xz |
Simplify dialog creation
Diffstat (limited to 'src/ui/LoadingIndicator.cpp')
-rw-r--r-- | src/ui/LoadingIndicator.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ui/LoadingIndicator.cpp b/src/ui/LoadingIndicator.cpp index 05b7fff5..c8337089 100644 --- a/src/ui/LoadingIndicator.cpp +++ b/src/ui/LoadingIndicator.cpp @@ -12,17 +12,10 @@ LoadingIndicator::LoadingIndicator(QWidget *parent) setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); setFocusPolicy(Qt::NoFocus); - timer_ = new QTimer(); + timer_ = new QTimer(this); connect(timer_, SIGNAL(timeout()), this, SLOT(onTimeout())); } -LoadingIndicator::~LoadingIndicator() -{ - stop(); - - delete timer_; -} - void LoadingIndicator::paintEvent(QPaintEvent *e) { |