PIVX Core  5.6.99
P2P Digital Currency
contactdropdownrow.cpp
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 #include "contactdropdownrow.h"
6 #include "ui_contactdropdownrow.h"
7 
9  QWidget(parent),
10  ui(new Ui::ContactDropdownRow)
11 {
12  ui->setupUi(this);
13  ui->lblAddress->setProperty("cssClass", "text-list-contact-body1");
14  ui->lblLabel->setProperty("cssClass", "text-list-contact-title1");
15 }
16 
17 void ContactDropdownRow::init(bool isLightTheme, bool isHover) {
18  update(isLightTheme, isHover, false);
19 }
20 
21 void ContactDropdownRow::update(bool isLightTheme, bool isHover, bool isSelected){
22  ui->lblDivisory->setStyleSheet("background-color:#bababa");
23 }
24 
25 void ContactDropdownRow::setData(QString address, QString label){
26  ui->lblAddress->setText(address);
27  ui->lblLabel->setText(label);
28 }
29 
31 {
32  delete ui;
33 }
void update(bool isLightTheme, bool isHover, bool isSelected)
void init(bool isLightTheme, bool isHover)
void setData(QString address, QString label)
ContactDropdownRow(QWidget *parent=nullptr)
Ui::ContactDropdownRow * ui
bool isLightTheme()
Definition: qtutils.cpp:210