PIVX Core  5.6.99
P2P Digital Currency
addresslabelrow.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2021 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_ADDRESSLABELROW_H
6 #define PIVX_QT_ADDRESSLABELROW_H
7 
8 #include <QWidget>
9 
10 namespace Ui {
11 class AddressLabelRow;
12 }
13 
14 class AddressLabelRow : public QWidget
15 {
16  Q_OBJECT
17 
18 public:
19  explicit AddressLabelRow(QWidget *parent = nullptr);
21 
22  void init(bool isLightTheme, bool isHover);
23 
24  void updateState(bool isLightTheme, bool isHovered, bool isSelected);
25  void updateView(const QString& address, const QString& label);
26 protected:
27  virtual void enterEvent(QEvent *);
28  virtual void leaveEvent(QEvent *);
29 
30 private:
31  Ui::AddressLabelRow *ui;
32 };
33 
34 #endif // PIVX_QT_ADDRESSLABELROW_H
virtual void enterEvent(QEvent *)
void updateState(bool isLightTheme, bool isHovered, bool isSelected)
AddressLabelRow(QWidget *parent=nullptr)
void init(bool isLightTheme, bool isHover)
Ui::AddressLabelRow * ui
virtual void leaveEvent(QEvent *)
void updateView(const QString &address, const QString &label)
bool isLightTheme()
Definition: qtutils.cpp:210