9#ifndef UI_ADDRESSBOOKPAGE_H
10#define UI_ADDRESSBOOKPAGE_H
12#include <QtCore/QVariant>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QHBoxLayout>
16#include <QtWidgets/QHeaderView>
17#include <QtWidgets/QLabel>
18#include <QtWidgets/QLineEdit>
19#include <QtWidgets/QPushButton>
20#include <QtWidgets/QSpacerItem>
21#include <QtWidgets/QTableView>
22#include <QtWidgets/QVBoxLayout>
23#include <QtWidgets/QWidget>
48 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
57 searchLineEdit->setObjectName(QString::fromUtf8(
"searchLineEdit"));
62 tableView->setObjectName(QString::fromUtf8(
"tableView"));
63 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
66 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
67 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
69 tableView->verticalHeader()->setVisible(
false);
76 newAddress->setObjectName(QString::fromUtf8(
"newAddress"));
78 icon.addFile(QString::fromUtf8(
":/icons/add"), QSize(), QIcon::Normal, QIcon::Off);
85 copyAddress->setObjectName(QString::fromUtf8(
"copyAddress"));
87 icon1.addFile(QString::fromUtf8(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
94 deleteAddress->setObjectName(QString::fromUtf8(
"deleteAddress"));
96 icon2.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
102 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
107 exportButton->setObjectName(QString::fromUtf8(
"exportButton"));
109 icon3.addFile(QString::fromUtf8(
":/icons/export"), QSize(), QIcon::Normal, QIcon::Off);
116 closeButton->setObjectName(QString::fromUtf8(
"closeButton"));
117 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
118 sizePolicy.setHorizontalStretch(0);
119 sizePolicy.setVerticalStretch(0);
120 sizePolicy.setHeightForWidth(
closeButton->sizePolicy().hasHeightForWidth());
137 searchLineEdit->setPlaceholderText(QCoreApplication::translate(
"AddressBookPage",
"Enter address or label to search",
nullptr));
138#if QT_CONFIG(tooltip)
139 tableView->setToolTip(QCoreApplication::translate(
"AddressBookPage",
"Right-click to edit address or label",
nullptr));
141#if QT_CONFIG(tooltip)
142 newAddress->setToolTip(QCoreApplication::translate(
"AddressBookPage",
"Create a new address",
nullptr));
144 newAddress->setText(QCoreApplication::translate(
"AddressBookPage",
"&New",
nullptr));
145#if QT_CONFIG(tooltip)
146 copyAddress->setToolTip(QCoreApplication::translate(
"AddressBookPage",
"Copy the currently selected address to the system clipboard",
nullptr));
148 copyAddress->setText(QCoreApplication::translate(
"AddressBookPage",
"&Copy",
nullptr));
149#if QT_CONFIG(tooltip)
150 deleteAddress->setToolTip(QCoreApplication::translate(
"AddressBookPage",
"Delete the currently selected address from the list",
nullptr));
152 deleteAddress->setText(QCoreApplication::translate(
"AddressBookPage",
"&Delete",
nullptr));
153#if QT_CONFIG(tooltip)
154 exportButton->setToolTip(QCoreApplication::translate(
"AddressBookPage",
"Export the data in the current tab to a file",
nullptr));
156 exportButton->setText(QCoreApplication::translate(
"AddressBookPage",
"&Export",
nullptr));
157 closeButton->setText(QCoreApplication::translate(
"AddressBookPage",
"C&lose",
nullptr));
Widget that shows a list of sending or receiving addresses.
QLabel * labelExplanation
void setupUi(QWidget *AddressBookPage)
void retranslateUi(QWidget *AddressBookPage)
QSpacerItem * horizontalSpacer
QPushButton * copyAddress
QLineEdit * searchLineEdit
QPushButton * exportButton
QPushButton * deleteAddress
QHBoxLayout * horizontalLayout
QPushButton * closeButton
QVBoxLayout * verticalLayout