Changeset View
Changeset View
Standalone View
Standalone View
src/qt/editaddressdialog.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <qt/editaddressdialog.h> | #include <qt/editaddressdialog.h> | ||||
#include <qt/forms/ui_editaddressdialog.h> | #include <qt/forms/ui_editaddressdialog.h> | ||||
#include <qt/addresstablemodel.h> | #include <qt/addresstablemodel.h> | ||||
#include <qt/guiutil.h> | #include <qt/guiutil.h> | ||||
#include <QDataWidgetMapper> | #include <QDataWidgetMapper> | ||||
#include <QMessageBox> | #include <QMessageBox> | ||||
EditAddressDialog::EditAddressDialog(Mode _mode, QWidget *parent) | EditAddressDialog::EditAddressDialog(Mode _mode, QWidget *parent) | ||||
: QDialog(parent), ui(new Ui::EditAddressDialog), mapper(0), mode(_mode), | : QDialog(parent), ui(new Ui::EditAddressDialog), mapper(nullptr), | ||||
model(0) { | mode(_mode), model(nullptr) { | ||||
ui->setupUi(this); | ui->setupUi(this); | ||||
GUIUtil::setupAddressWidget(ui->addressEdit, this); | GUIUtil::setupAddressWidget(ui->addressEdit, this); | ||||
switch (mode) { | switch (mode) { | ||||
case NewSendingAddress: | case NewSendingAddress: | ||||
setWindowTitle(tr("New sending address")); | setWindowTitle(tr("New sending address")); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |