PIVX Core  5.6.99
P2P Digital Currency
csrow.h
Go to the documentation of this file.
1 // Copyright (c) 2019 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_CSROW_H
6 #define PIVX_QT_CSROW_H
7 
8 #include <QWidget>
9 
10 namespace Ui {
11 class CSRow;
12 }
13 
14 class CSRow : public QWidget
15 {
16  Q_OBJECT
17 
18 public:
19  explicit CSRow(QWidget *parent = nullptr);
20  ~CSRow();
21 
22  void updateView(const QString& address, const QString& label, bool isStaking, bool isReceivedDelegation, const QString& amount);
23  void updateState(bool isLightTheme, bool isHovered, bool isSelected);
24  void showMenuButton(bool show);
25 protected:
26  virtual void enterEvent(QEvent *);
27  virtual void leaveEvent(QEvent *);
28 
29 private:
30  Ui::CSRow *ui;
31 
32  bool fShowMenuButton = true;
33 };
34 
35 #endif // PIVX_QT_CSROW_H
Definition: csrow.h:15
CSRow(QWidget *parent=nullptr)
Definition: csrow.cpp:8
void updateState(bool isLightTheme, bool isHovered, bool isSelected)
Definition: csrow.cpp:31
virtual void leaveEvent(QEvent *)
Definition: csrow.cpp:49
bool fShowMenuButton
Definition: csrow.h:32
void updateView(const QString &address, const QString &label, bool isStaking, bool isReceivedDelegation, const QString &amount)
Definition: csrow.cpp:19
Ui::CSRow * ui
Definition: csrow.h:30
virtual void enterEvent(QEvent *)
Definition: csrow.cpp:42
void showMenuButton(bool show)
Definition: csrow.cpp:38
~CSRow()
Definition: csrow.cpp:56
bool isLightTheme()
Definition: qtutils.cpp:210