9 #ifndef UI_ADDRESSBOOKPAGE_H
10 #define UI_ADDRESSBOOKPAGE_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QHBoxLayout>
17 #include <QtWidgets/QHeaderView>
18 #include <QtWidgets/QLabel>
19 #include <QtWidgets/QLineEdit>
20 #include <QtWidgets/QPushButton>
21 #include <QtWidgets/QSpacerItem>
22 #include <QtWidgets/QTableView>
23 #include <QtWidgets/QVBoxLayout>
24 #include <QtWidgets/QWidget>
45 if (AddressBookPage->objectName().isEmpty())
46 AddressBookPage->setObjectName(QStringLiteral(
"AddressBookPage"));
47 AddressBookPage->resize(760, 380);
62 tableView =
new QTableView(AddressBookPage);
63 tableView->setObjectName(QStringLiteral(
"tableView"));
64 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
67 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
68 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
70 tableView->verticalHeader()->setVisible(
false);
77 newAddress->setObjectName(QStringLiteral(
"newAddress"));
79 icon.addFile(QStringLiteral(
":/icons/add"), QSize(), QIcon::Normal, QIcon::Off);
86 copyAddress->setObjectName(QStringLiteral(
"copyAddress"));
88 icon1.addFile(QStringLiteral(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
95 deleteAddress->setObjectName(QStringLiteral(
"deleteAddress"));
97 icon2.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
103 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
108 exportButton->setObjectName(QStringLiteral(
"exportButton"));
110 icon3.addFile(QStringLiteral(
":/icons/export"), QSize(), QIcon::Normal, QIcon::Off);
117 closeButton->setObjectName(QStringLiteral(
"closeButton"));
118 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
119 sizePolicy.setHorizontalStretch(0);
120 sizePolicy.setVerticalStretch(0);
121 sizePolicy.setHeightForWidth(
closeButton->sizePolicy().hasHeightForWidth());
133 QMetaObject::connectSlotsByName(AddressBookPage);
138 searchLineEdit->setPlaceholderText(QApplication::translate(
"AddressBookPage",
"Enter address or label to search", 0));
139 #ifndef QT_NO_TOOLTIP
140 tableView->setToolTip(QApplication::translate(
"AddressBookPage",
"Right-click to edit address or label", 0));
141 #endif // QT_NO_TOOLTIP
142 #ifndef QT_NO_TOOLTIP
143 newAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Create a new address", 0));
144 #endif // QT_NO_TOOLTIP
145 newAddress->setText(QApplication::translate(
"AddressBookPage",
"&New", 0));
146 #ifndef QT_NO_TOOLTIP
147 copyAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Copy the currently selected address to the system clipboard", 0));
148 #endif // QT_NO_TOOLTIP
149 copyAddress->setText(QApplication::translate(
"AddressBookPage",
"&Copy", 0));
150 #ifndef QT_NO_TOOLTIP
151 deleteAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Delete the currently selected address from the list", 0));
152 #endif // QT_NO_TOOLTIP
153 deleteAddress->setText(QApplication::translate(
"AddressBookPage",
"&Delete", 0));
154 #ifndef QT_NO_TOOLTIP
155 exportButton->setToolTip(QApplication::translate(
"AddressBookPage",
"Export the data in the current tab to a file", 0));
156 #endif // QT_NO_TOOLTIP
157 exportButton->setText(QApplication::translate(
"AddressBookPage",
"&Export", 0));
158 closeButton->setText(QApplication::translate(
"AddressBookPage",
"C&lose", 0));
159 Q_UNUSED(AddressBookPage);
170 #endif // UI_ADDRESSBOOKPAGE_H
void retranslateUi(QWidget *AddressBookPage)
QPushButton * copyAddress
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout
QPushButton * closeButton
QLineEdit * searchLineEdit
void setupUi(QWidget *AddressBookPage)
QPushButton * deleteAddress
Widget that shows a list of sending or receiving addresses.
QPushButton * exportButton
QLabel * labelExplanation