Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
7d0faabf
Commit
7d0faabf
authored
Aug 23, 2022
by
Laurent Montel
Browse files
Continue to implement configure dialog
parent
fe8f11e0
Pipeline
#221447
passed with stage
in 18 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/customtoolsplugins/translatorplugin/translatorconfigurewidget.cpp
View file @
7d0faabf
...
...
@@ -12,10 +12,21 @@
TranslatorConfigureWidget
::
TranslatorConfigureWidget
(
QWidget
*
parent
)
:
QWidget
{
parent
}
,
mEngine
(
new
QComboBox
(
this
))
{
auto
mainLayout
=
new
QVBoxLayout
(
this
);
mainLayout
->
setObjectName
(
QStringLiteral
(
"mainLayout"
));
mainLayout
->
setContentsMargins
({});
mEngine
->
setObjectName
(
QStringLiteral
(
"mEngine"
));
auto
hboxLayout
=
new
QHBoxLayout
;
hboxLayout
->
setContentsMargins
({});
mainLayout
->
addLayout
(
hboxLayout
);
auto
label
=
new
QLabel
(
i18n
(
"Engine:"
),
this
);
label
->
setObjectName
(
QStringLiteral
(
"label"
));
hboxLayout
->
addWidget
(
label
);
hboxLayout
->
addWidget
(
mEngine
);
}
TranslatorConfigureWidget
::~
TranslatorConfigureWidget
()
...
...
plugins/customtoolsplugins/translatorplugin/translatorconfigurewidget.h
View file @
7d0faabf
...
...
@@ -7,11 +7,14 @@
#pragma once
#include
<QWidget>
class
QComboBox
;
class
TranslatorConfigureWidget
:
public
QWidget
{
Q_OBJECT
public:
explicit
TranslatorConfigureWidget
(
QWidget
*
parent
=
nullptr
);
~
TranslatorConfigureWidget
()
override
;
private:
QComboBox
*
const
mEngine
;
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment