9 #ifndef UI_ADDRESSBOOKPAGE_H 10 #define UI_ADDRESSBOOKPAGE_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 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));
140 #endif // QT_CONFIG(tooltip) 141 #if QT_CONFIG(tooltip) 142 newAddress->setToolTip(QCoreApplication::translate(
"AddressBookPage",
"Create a new address",
nullptr));
143 #endif // QT_CONFIG(tooltip) 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));
147 #endif // QT_CONFIG(tooltip) 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));
151 #endif // QT_CONFIG(tooltip) 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));
155 #endif // QT_CONFIG(tooltip) 156 exportButton->setText(QCoreApplication::translate(
"AddressBookPage",
"&Export",
nullptr));
157 closeButton->setText(QCoreApplication::translate(
"AddressBookPage",
"C&lose",
nullptr));
169 #endif // UI_ADDRESSBOOKPAGE_H QHBoxLayout * horizontalLayout
Definition: ui_addressbookpage.h:34
QPushButton * exportButton
Definition: ui_addressbookpage.h:39
QLabel * labelExplanation
Definition: ui_addressbookpage.h:31
QPushButton * copyAddress
Definition: ui_addressbookpage.h:36
Definition: addressbookpage.h:14
QLineEdit * searchLineEdit
Definition: ui_addressbookpage.h:32
QPushButton * newAddress
Definition: ui_addressbookpage.h:35
QPushButton * closeButton
Definition: ui_addressbookpage.h:40
Definition: ui_addressbookpage.h:164
QVBoxLayout * verticalLayout
Definition: ui_addressbookpage.h:30
void setupUi(QWidget *AddressBookPage)
Definition: ui_addressbookpage.h:42
Definition: ui_addressbookpage.h:27
QPushButton * deleteAddress
Definition: ui_addressbookpage.h:37
Definition: addressbookpage.h:26
QTableView * tableView
Definition: ui_addressbookpage.h:33
QSpacerItem * horizontalSpacer
Definition: ui_addressbookpage.h:38
void retranslateUi(QWidget *AddressBookPage)
Definition: ui_addressbookpage.h:135