PIVX Core  5.6.99
P2P Digital Currency
balancebubble.h
Go to the documentation of this file.
1 // Copyright (c) 2020 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or https://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_BALANCEBUBBLE_H
6 #define PIVX_QT_BALANCEBUBBLE_H
7 
8 #include <QWidget>
9 #include <QString>
10 
11 namespace Ui {
12  class BalanceBubble;
13 }
14 
15 class BalanceBubble : public QWidget
16 {
17 
18 public:
19  explicit BalanceBubble(QWidget *parent = nullptr);
21 
22  virtual void showEvent(QShowEvent *event) override;
23  virtual void hideEvent(QHideEvent *event) override;
24 
25  void updateValues(int64_t nTransparentBalance, int64_t nShieldedBalance, int unit);
26 
27 public Q_SLOTS:
28  void hideTimeout();
29 
30 private:
31  Ui::BalanceBubble *ui;
32  QTimer* hideTimer{nullptr};
33 };
34 
35 #endif // PIVX_QT_BALANCEBUBBLE_H
QTimer * hideTimer
Definition: balancebubble.h:32
virtual void hideEvent(QHideEvent *event) override
void updateValues(int64_t nTransparentBalance, int64_t nShieldedBalance, int unit)
Ui::BalanceBubble * ui
Definition: balancebubble.h:31
virtual void showEvent(QShowEvent *event) override
BalanceBubble(QWidget *parent=nullptr)