37 QAction *actionAddPassword;
38 QAction *actionAddFolder;
40 QAction *actionDelete;
43 QAction *actionUpdate;
45 QAction *actionConfig;
46 QWidget *centralWidget;
47 QGridLayout *gridLayout_2;
49 QHBoxLayout *horizontalLayout_2;
50 QHBoxLayout *horizontalLayout_3;
51 QVBoxLayout *verticalLayout;
52 QWidget *profileWidget;
53 QHBoxLayout *horizontalLayout;
55 QComboBox *profileBox;
58 QVBoxLayout *verticalLayoutPassword;
60 QSpacerItem *verticalSpacer_2;
61 QGridLayout *gridLayout;
62 QTextBrowser *textBrowser;
63 QStatusBar *statusBar;
72 icon.addFile(QString::fromUtf8(
":/artwork/icon.png"), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
75 actionAddPassword->setObjectName(
"actionAddPassword");
77 actionAddFolder->setObjectName(
"actionAddFolder");
79 actionEdit->setObjectName(
"actionEdit");
81 actionDelete->setObjectName(
"actionDelete");
83 actionOtp->setObjectName(
"actionOtp");
85 actionPush->setObjectName(
"actionPush");
87 actionUpdate->setObjectName(
"actionUpdate");
89 actionUsers->setObjectName(
"actionUsers");
91 actionConfig->setObjectName(
"actionConfig");
93 centralWidget->setObjectName(
"centralWidget");
94 gridLayout_2 =
new QGridLayout(centralWidget);
95 gridLayout_2->setSpacing(6);
96 gridLayout_2->setContentsMargins(11, 11, 11, 11);
97 gridLayout_2->setObjectName(
"gridLayout_2");
98 frame =
new QFrame(centralWidget);
99 frame->setObjectName(
"frame");
100 QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Fixed);
101 sizePolicy.setHorizontalStretch(0);
102 sizePolicy.setVerticalStretch(0);
103 sizePolicy.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
104 frame->setSizePolicy(sizePolicy);
105 horizontalLayout_2 =
new QHBoxLayout(frame);
106 horizontalLayout_2->setSpacing(6);
107 horizontalLayout_2->setContentsMargins(11, 11, 11, 11);
108 horizontalLayout_2->setObjectName(
"horizontalLayout_2");
109 horizontalLayout_2->setContentsMargins(0, 0, 0, 0);
111 gridLayout_2->addWidget(frame, 0, 0, 2, 2);
113 horizontalLayout_3 =
new QHBoxLayout();
114 horizontalLayout_3->setSpacing(6);
115 horizontalLayout_3->setObjectName(
"horizontalLayout_3");
116 verticalLayout =
new QVBoxLayout();
117 verticalLayout->setSpacing(6);
118 verticalLayout->setObjectName(
"verticalLayout");
119 profileWidget =
new QWidget(centralWidget);
120 profileWidget->setObjectName(
"profileWidget");
121 horizontalLayout =
new QHBoxLayout(profileWidget);
122 horizontalLayout->setSpacing(6);
123 horizontalLayout->setContentsMargins(11, 11, 11, 11);
124 horizontalLayout->setObjectName(
"horizontalLayout");
125 horizontalLayout->setContentsMargins(0, 0, 0, 0);
126 label =
new QLabel(profileWidget);
127 label->setObjectName(
"label");
129 horizontalLayout->addWidget(label);
131 profileBox =
new QComboBox(profileWidget);
132 profileBox->setObjectName(
"profileBox");
133 QSizePolicy sizePolicy1(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Minimum);
134 sizePolicy1.setHorizontalStretch(0);
135 sizePolicy1.setVerticalStretch(0);
136 sizePolicy1.setHeightForWidth(profileBox->sizePolicy().hasHeightForWidth());
137 profileBox->setSizePolicy(sizePolicy1);
138 profileBox->setMinimumSize(QSize(100, 26));
139 profileBox->setMaximumSize(QSize(100000, 16777215));
141 horizontalLayout->addWidget(profileBox);
144 verticalLayout->addWidget(profileWidget);
146 lineEdit =
new QLineEdit(centralWidget);
147 lineEdit->setObjectName(
"lineEdit");
148 lineEdit->setMinimumSize(QSize(0, 26));
149 lineEdit->setFocusPolicy(Qt::StrongFocus);
151 verticalLayout->addWidget(lineEdit);
154 treeView->setObjectName(
"treeView");
155 QSizePolicy sizePolicy2(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::MinimumExpanding);
156 sizePolicy2.setHorizontalStretch(0);
157 sizePolicy2.setVerticalStretch(0);
158 sizePolicy2.setHeightForWidth(treeView->sizePolicy().hasHeightForWidth());
159 treeView->setSizePolicy(sizePolicy2);
160 treeView->setAcceptDrops(
true);
161 treeView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustIgnored);
162 treeView->setDragEnabled(
true);
163 treeView->setDragDropMode(QAbstractItemView::InternalMove);
164 treeView->setSortingEnabled(
true);
165 treeView->setAnimated(
true);
166 treeView->header()->setStretchLastSection(
false);
168 verticalLayout->addWidget(treeView);
171 horizontalLayout_3->addLayout(verticalLayout);
173 verticalLayoutPassword =
new QVBoxLayout();
174 verticalLayoutPassword->setSpacing(0);
175 verticalLayoutPassword->setObjectName(
"verticalLayoutPassword");
176 verticalLayoutPassword->setContentsMargins(-1, 7, -1, -1);
177 passwordName =
new QLabel(centralWidget);
178 passwordName->setObjectName(
"passwordName");
179 QSizePolicy sizePolicy3(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Fixed);
180 sizePolicy3.setHorizontalStretch(0);
181 sizePolicy3.setVerticalStretch(0);
182 sizePolicy3.setHeightForWidth(passwordName->sizePolicy().hasHeightForWidth());
183 passwordName->setSizePolicy(sizePolicy3);
184 passwordName->setMinimumSize(QSize(0, 20));
185 passwordName->setMaximumSize(QSize(10000000, 30));
187 font.setPointSize(14);
189 font.setItalic(
false);
190 font.setUnderline(
false);
191 font.setKerning(
true);
192 passwordName->setFont(font);
193 passwordName->setFrameShape(QFrame::NoFrame);
194 passwordName->setFrameShadow(QFrame::Plain);
195 passwordName->setScaledContents(
false);
196 passwordName->setTextInteractionFlags(Qt::TextInteractionFlag::LinksAccessibleByMouse|Qt::TextInteractionFlag::TextSelectableByMouse);
198 verticalLayoutPassword->addWidget(passwordName);
200 verticalSpacer_2 =
new QSpacerItem(20, 5, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Fixed);
202 verticalLayoutPassword->addItem(verticalSpacer_2);
204 gridLayout =
new QGridLayout();
205 gridLayout->setSpacing(6);
206 gridLayout->setObjectName(
"gridLayout");
208 verticalLayoutPassword->addLayout(gridLayout);
210 textBrowser =
new QTextBrowser(centralWidget);
211 textBrowser->setObjectName(
"textBrowser");
212 QSizePolicy sizePolicy4(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Expanding);
213 sizePolicy4.setHorizontalStretch(0);
214 sizePolicy4.setVerticalStretch(0);
215 sizePolicy4.setHeightForWidth(textBrowser->sizePolicy().hasHeightForWidth());
216 textBrowser->setSizePolicy(sizePolicy4);
217 textBrowser->setMinimumSize(QSize(0, 20));
218 textBrowser->setAutoFillBackground(
false);
219 textBrowser->setStyleSheet(QString::fromUtf8(
"background: transparent"));
220 textBrowser->setFrameShape(QFrame::NoFrame);
221 textBrowser->setFrameShadow(QFrame::Plain);
222 textBrowser->setLineWidth(0);
223 textBrowser->setAcceptRichText(
true);
224 textBrowser->setOpenExternalLinks(
true);
226 verticalLayoutPassword->addWidget(textBrowser);
229 horizontalLayout_3->addLayout(verticalLayoutPassword);
232 gridLayout_2->addLayout(horizontalLayout_3, 1, 1, 1, 1);
236 statusBar->setObjectName(
"statusBar");
239 toolBar->setObjectName(
"toolBar");
240 toolBar->setContextMenuPolicy(Qt::PreventContextMenu);
241 toolBar->setAcceptDrops(
false);
242 toolBar->setMovable(
false);
243 toolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
244 MainWindow->addToolBar(Qt::ToolBarArea::TopToolBarArea, toolBar);
245#if QT_CONFIG(shortcut)
246 label->setBuddy(profileBox);
248 QWidget::setTabOrder(lineEdit, treeView);
249 QWidget::setTabOrder(treeView, textBrowser);
251 toolBar->addAction(actionAddPassword);
252 toolBar->addAction(actionAddFolder);
253 toolBar->addSeparator();
254 toolBar->addAction(actionEdit);
255 toolBar->addAction(actionDelete);
256 toolBar->addAction(actionOtp);
257 toolBar->addSeparator();
258 toolBar->addAction(actionPush);
259 toolBar->addAction(actionUpdate);
260 toolBar->addSeparator();
261 toolBar->addAction(actionUsers);
262 toolBar->addAction(actionConfig);
271 MainWindow->setWindowTitle(QCoreApplication::translate(
"MainWindow",
"QtPass",
nullptr));
272 actionAddPassword->setText(QCoreApplication::translate(
"MainWindow",
"Add password",
nullptr));
273#if QT_CONFIG(tooltip)
274 actionAddPassword->setToolTip(QCoreApplication::translate(
"MainWindow",
"Add password",
nullptr));
276#if QT_CONFIG(shortcut)
277 actionAddPassword->setShortcut(QCoreApplication::translate(
"MainWindow",
"Ctrl+N",
nullptr));
279 actionAddFolder->setText(QCoreApplication::translate(
"MainWindow",
"Add folder",
nullptr));
280#if QT_CONFIG(tooltip)
281 actionAddFolder->setToolTip(QCoreApplication::translate(
"MainWindow",
"Add folder",
nullptr));
283 actionEdit->setText(QCoreApplication::translate(
"MainWindow",
"Edit",
nullptr));
284#if QT_CONFIG(tooltip)
285 actionEdit->setToolTip(QCoreApplication::translate(
"MainWindow",
"Edit",
nullptr));
287 actionDelete->setText(QCoreApplication::translate(
"MainWindow",
"Delete",
nullptr));
288#if QT_CONFIG(tooltip)
289 actionDelete->setToolTip(QCoreApplication::translate(
"MainWindow",
"Delete",
nullptr));
291 actionOtp->setText(QCoreApplication::translate(
"MainWindow",
"OTP",
nullptr));
292#if QT_CONFIG(tooltip)
293 actionOtp->setToolTip(QCoreApplication::translate(
"MainWindow",
"Generate OTP and copy to clipboard",
nullptr));
295#if QT_CONFIG(shortcut)
296 actionOtp->setShortcut(QCoreApplication::translate(
"MainWindow",
"Ctrl+G",
nullptr));
298 actionPush->setText(QCoreApplication::translate(
"MainWindow",
"Push",
nullptr));
299#if QT_CONFIG(tooltip)
300 actionPush->setToolTip(QCoreApplication::translate(
"MainWindow",
"Git push",
nullptr));
302 actionUpdate->setText(QCoreApplication::translate(
"MainWindow",
"Update",
nullptr));
303#if QT_CONFIG(tooltip)
304 actionUpdate->setToolTip(QCoreApplication::translate(
"MainWindow",
"Git pull",
nullptr));
306 actionUsers->setText(QCoreApplication::translate(
"MainWindow",
"Users",
nullptr));
307#if QT_CONFIG(tooltip)
308 actionUsers->setToolTip(QCoreApplication::translate(
"MainWindow",
"Manage who can read password in folder",
nullptr));
310 actionConfig->setText(QCoreApplication::translate(
"MainWindow",
"Config",
nullptr));
311#if QT_CONFIG(tooltip)
312 actionConfig->setToolTip(QCoreApplication::translate(
"MainWindow",
"Configuration",
nullptr));
314 label->setText(QCoreApplication::translate(
"MainWindow",
"Select profile",
nullptr));
315 lineEdit->setText(QString());
316 lineEdit->setPlaceholderText(QCoreApplication::translate(
"MainWindow",
"Search Password",
nullptr));
317 passwordName->setText(QCoreApplication::translate(
"MainWindow",
"Welcome to QtPass",
nullptr));
318 textBrowser->setHtml(QCoreApplication::translate(
"MainWindow",
"<p>QtPass is a GUI for <a href=\"https://www.passwordstore.org/\">pass</a>, the standard unix password manager.</p>\n"
319"<p>Please report any <a href=\"https://github.com/IJHack/qtpass/issues\">issues</a> you might have with this software.</p>\n"
320"<p><a href=\"https://qtpass.org/\">Documentation</a></p>\n"
321"<p><a href=\"https://github.com/IJHack/qtpass\">SourceCode</a></p>",
nullptr));
322 toolBar->setWindowTitle(QString());