PIVX Core  5.6.99
P2P Digital Currency
txrow.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2020 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_TXROW_H
6 #define PIVX_QT_TXROW_H
7 
8 #include <QWidget>
9 #include <QDateTime>
10 #include "transactionrecord.h"
11 
12 namespace Ui {
13 class TxRow;
14 }
15 
16 class TxRow : public QWidget
17 {
18  Q_OBJECT
19 
20 public:
21  explicit TxRow(QWidget *parent = nullptr);
22  ~TxRow();
23 
24  void init(bool isLightTheme);
25  void showHideSecondAmount(bool show);
26  void updateStatus(bool isLightTheme, bool isHover, bool isSelected);
27 
28  void setDate(QDateTime);
29  void setLabel(QString);
30  void setAmount(QString top, QString bottom);
31  void setType(bool isLightTheme, int type, bool isConfirmed);
32  void setConfirmStatus(bool isConfirmed);
33 
34 private:
35  Ui::TxRow *ui;
36  bool isConfirmed = false;
37  bool isDoubleAmount = false;
38 };
39 
40 #endif // PIVX_QT_TXROW_H
Definition: txrow.h:17
void showHideSecondAmount(bool show)
Definition: txrow.cpp:25
void init(bool isLightTheme)
Definition: txrow.cpp:19
bool isConfirmed
Definition: txrow.h:36
void setDate(QDateTime)
Definition: txrow.cpp:50
void setConfirmStatus(bool isConfirmed)
Definition: txrow.cpp:32
bool isDoubleAmount
Definition: txrow.h:37
TxRow(QWidget *parent=nullptr)
Definition: txrow.cpp:11
~TxRow()
Definition: txrow.cpp:163
void updateStatus(bool isLightTheme, bool isHover, bool isSelected)
Definition: txrow.cpp:42
void setLabel(QString)
Definition: txrow.cpp:55
void setAmount(QString top, QString bottom)
Definition: txrow.cpp:60
Ui::TxRow * ui
Definition: txrow.h:35
void setType(bool isLightTheme, int type, bool isConfirmed)
Definition: txrow.cpp:66
bool isLightTheme()
Definition: qtutils.cpp:210