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> 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());
138 searchLineEdit->setPlaceholderText(QApplication::translate(
"AddressBookPage",
"Enter address or label to search", Q_NULLPTR));
139 #ifndef QT_NO_TOOLTIP 140 tableView->setToolTip(QApplication::translate(
"AddressBookPage",
"Right-click to edit address or label", Q_NULLPTR));
141 #endif // QT_NO_TOOLTIP 142 #ifndef QT_NO_TOOLTIP 143 newAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Create a new address", Q_NULLPTR));
144 #endif // QT_NO_TOOLTIP 145 newAddress->setText(QApplication::translate(
"AddressBookPage",
"&New", Q_NULLPTR));
146 #ifndef QT_NO_TOOLTIP 147 copyAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Copy the currently selected address to the system clipboard", Q_NULLPTR));
148 #endif // QT_NO_TOOLTIP 149 copyAddress->setText(QApplication::translate(
"AddressBookPage",
"&Copy", Q_NULLPTR));
150 #ifndef QT_NO_TOOLTIP 151 deleteAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Delete the currently selected address from the list", Q_NULLPTR));
152 #endif // QT_NO_TOOLTIP 153 deleteAddress->setText(QApplication::translate(
"AddressBookPage",
"&Delete", Q_NULLPTR));
154 #ifndef QT_NO_TOOLTIP 155 exportButton->setToolTip(QApplication::translate(
"AddressBookPage",
"Export the data in the current tab to a file", Q_NULLPTR));
156 #endif // QT_NO_TOOLTIP 157 exportButton->setText(QApplication::translate(
"AddressBookPage",
"&Export", Q_NULLPTR));
158 closeButton->setText(QApplication::translate(
"AddressBookPage",
"C&lose", Q_NULLPTR));
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