Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
0e6b7437
Commit
0e6b7437
authored
Jan 04, 2021
by
Laurent Montel
😁
Browse files
Show dialogbox
parent
a4b2e897
Pipeline
#46308
canceled with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/remote-content/autotests/remotecontentconfigurewidgettest.cpp
View file @
0e6b7437
...
...
@@ -5,6 +5,7 @@
*/
#include "remotecontentconfigurewidgettest.h"
#include "remote-content/remotecontentconfigurewidget.h"
#include <QListWidget>
#include <QTest>
#include <QVBoxLayout>
QTEST_MAIN
(
RemoteContentConfigureWidgetTest
)
...
...
@@ -20,4 +21,8 @@ void RemoteContentConfigureWidgetTest::shouldHaveDefaultValues()
auto
mainLayout
=
w
.
findChild
<
QVBoxLayout
*>
(
QStringLiteral
(
"mainLayout"
));
QVERIFY
(
mainLayout
);
QCOMPARE
(
mainLayout
->
contentsMargins
(),
{});
auto
mListWidget
=
w
.
findChild
<
QListWidget
*>
(
QStringLiteral
(
"mListWidget"
));
QVERIFY
(
mListWidget
);
}
messageviewer/src/remote-content/remotecontentconfigurewidget.cpp
View file @
0e6b7437
...
...
@@ -7,6 +7,7 @@
#include "remotecontentconfigurewidget.h"
#include <KLocalizedString>
#include <QListWidget>
#include <QVBoxLayout>
using
namespace
MessageViewer
;
RemoteContentConfigureWidget
::
RemoteContentConfigureWidget
(
QWidget
*
parent
)
...
...
@@ -15,9 +16,23 @@ RemoteContentConfigureWidget::RemoteContentConfigureWidget(QWidget *parent)
auto
mainLayout
=
new
QVBoxLayout
(
this
);
mainLayout
->
setObjectName
(
QStringLiteral
(
"mainLayout"
));
mainLayout
->
setContentsMargins
({});
mListWidget
=
new
QListWidget
(
this
);
mListWidget
->
setObjectName
(
QStringLiteral
(
"mListWidget"
));
mainLayout
->
addWidget
(
mListWidget
);
}
RemoteContentConfigureWidget
::~
RemoteContentConfigureWidget
()
{
}
void
RemoteContentConfigureWidget
::
saveSettings
()
{
}
void
RemoteContentConfigureWidget
::
readSettings
()
{
}
messageviewer/src/remote-content/remotecontentconfigurewidget.h
View file @
0e6b7437
...
...
@@ -10,6 +10,7 @@
#include <QWidget>
#include "messageviewer_private_export.h"
class
QListWidget
;
namespace
MessageViewer
{
class
MESSAGEVIEWER_TESTS_EXPORT
RemoteContentConfigureWidget
:
public
QWidget
{
...
...
@@ -17,6 +18,10 @@ class MESSAGEVIEWER_TESTS_EXPORT RemoteContentConfigureWidget : public QWidget
public:
explicit
RemoteContentConfigureWidget
(
QWidget
*
parent
=
nullptr
);
~
RemoteContentConfigureWidget
()
override
;
void
saveSettings
();
void
readSettings
();
private:
QListWidget
*
mListWidget
=
nullptr
;
};
}
...
...
messageviewer/src/remote-content/remotecontentmenu.cpp
View file @
0e6b7437
...
...
@@ -5,7 +5,9 @@
*/
#include "remotecontentmenu.h"
#include "remotecontentconfiguredialog.h"
#include <KLocalizedString>
#include <QPointer>
using
namespace
MessageViewer
;
RemoteContentMenu
::
RemoteContentMenu
(
QWidget
*
parent
)
...
...
@@ -27,5 +29,9 @@ void RemoteContentMenu::initialize()
void
RemoteContentMenu
::
slotConfigure
()
{
//TODO
QPointer
<
MessageViewer
::
RemoteContentConfigureDialog
>
remoteContentDialog
=
new
MessageViewer
::
RemoteContentConfigureDialog
(
this
);
if
(
remoteContentDialog
->
exec
())
{
//TODO ?
}
delete
remoteContentDialog
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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