text: //Copyright (c) 2019 The PIVX developers
  //Copyright (c) 2020 The Bitcrore Coin developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #include "qt/bitcrore_coin/myaddressrow.h"
  #include "qt/bitcrore_coin/forms/ui_myaddressrow.h"
  
  MyAddressRow::MyAddressRow(QWidget *parent) :
      QWidget(parent),
      ui(new Ui::MyAddressRow)
  {
      ui->setupUi(this);
      ui->labelName->setProperty("cssClass", "text-list-title1");
      ui->labelAddress->setProperty("cssClass", "text-list-body2");
      ui->labelDate->setProperty("cssClass", "text-list-caption");
  }
  
  void MyAddressRow::updateView(QString address, QString label, QString date){
      ui->labelName->setText(label);
      ui->labelAddress->setText(address);
      if (date.isEmpty()){
          ui->labelDate->setVisible(false);
      } else {
          ui->labelDate->setVisible(true);
          ui->labelDate->setText(date);
      }
  }
  
  MyAddressRow::~MyAddressRow(){
      delete ui;
  }
  