PIVX Core  5.6.99
P2P Digital Currency
furlistrow.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_FURLISTROW_H
6 #define PIVX_QT_FURLISTROW_H
7 
8 #include <QWidget>
9 #include <QColor>
10 
11 template <class T=QWidget*>
12 class FurListRow{
13 
14 public:
16  virtual inline ~FurListRow(){}
17 
18  virtual inline T createHolder(int){
19  return nullptr;
20  }
21 
22  virtual inline void init(T, const QModelIndex&, bool isHovered, bool isSelected) const{
23 
24  }
25 
26  virtual inline QColor rectColor(bool isHovered, bool isSelected){
27  return QColor();
28  }
29 };
30 
31 #endif // PIVX_QT_FURLISTROW_H
virtual void init(T, const QModelIndex &, bool isHovered, bool isSelected) const
Definition: furlistrow.h:22
virtual QColor rectColor(bool isHovered, bool isSelected)
Definition: furlistrow.h:26
virtual T createHolder(int)
Definition: furlistrow.h:18
virtual ~FurListRow()
Definition: furlistrow.h:16
#define T(expected, seed, data)