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
Akregator
Commits
e39e1639
Commit
e39e1639
authored
Nov 26, 2020
by
Laurent Montel
😁
Browse files
Use {} directly
parent
d2979f5d
Pipeline
#42079
failed with stage
in 8 minutes and 39 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
configuration/akregator_config_plugins.cpp
View file @
e39e1639
...
...
@@ -22,7 +22,7 @@ KCMAkregatorPluginsConfig::KCMAkregatorPluginsConfig(QWidget *parent, const QVar
:
KCModule
(
parent
,
args
)
{
auto
*
lay
=
new
QHBoxLayout
(
this
);
lay
->
setContentsMargins
(
0
,
0
,
0
,
0
);
lay
->
setContentsMargins
(
{}
);
KAboutData
*
about
=
new
KAboutData
(
QStringLiteral
(
"kcmakrpluginsconfig"
),
i18n
(
"Configure Plugins"
),
...
...
configuration/akregator_config_userfeedback.cpp
View file @
e39e1639
...
...
@@ -23,7 +23,7 @@ KCMAkregatorUserFeedBackConfig::KCMAkregatorUserFeedBackConfig(QWidget *parent,
:
KCModule
(
parent
,
args
)
{
auto
*
lay
=
new
QHBoxLayout
(
this
);
lay
->
setContentsMargins
(
0
,
0
,
0
,
0
);
lay
->
setContentsMargins
(
{}
);
KAboutData
*
about
=
new
KAboutData
(
QStringLiteral
(
"kcmaddressbookuserfeedbackconfig"
),
i18n
(
"Configure User Feedback"
),
...
...
src/articleviewer-ng/webengine/articleviewerwebenginewidgetng.cpp
View file @
e39e1639
...
...
@@ -60,7 +60,7 @@ ArticleViewerWebEngineWidgetNg::ArticleViewerWebEngineWidgetNg(KActionCollection
void
ArticleViewerWebEngineWidgetNg
::
initializeLayout
(
KActionCollection
*
ac
)
{
auto
*
layout
=
new
QVBoxLayout
(
this
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
layout
->
setContentsMargins
(
{}
);
mTextToSpeechWidget
=
new
KPIMTextEdit
::
TextToSpeechWidget
(
this
);
mTextToSpeechWidget
->
setObjectName
(
QStringLiteral
(
"texttospeechwidget"
));
...
...
src/articleviewerwidget.cpp
View file @
e39e1639
...
...
@@ -47,7 +47,7 @@ ArticleViewerWidget::ArticleViewerWidget(const QString &grantleeDirectory, KActi
,
m_grantleeDirectory
(
grantleeDirectory
)
{
auto
*
layout
=
new
QGridLayout
(
this
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
layout
->
setContentsMargins
(
{}
);
layout
->
addWidget
(
m_articleViewerWidgetNg
);
m_articleHtmlWriter
=
new
Akregator
::
ArticleHtmlWebEngineWriter
(
m_articleViewerWidgetNg
->
articleViewerNg
(),
this
);
connect
(
m_articleViewerWidgetNg
->
articleViewerNg
(),
&
ArticleViewerWebEngine
::
signalOpenUrlRequest
,
this
,
&
ArticleViewerWidget
::
signalOpenUrlRequest
);
...
...
@@ -249,7 +249,6 @@ void ArticleViewerWidget::slotUpdateCombinedView()
void
ArticleViewerWidget
::
slotArticlesUpdated
(
TreeNode
*
/*node*/
,
const
QVector
<
Article
>
&
/*list*/
)
{
if
(
m_viewMode
==
CombinedView
)
{
//TODO
slotUpdateCombinedView
();
}
}
...
...
@@ -269,7 +268,6 @@ void ArticleViewerWidget::slotArticlesRemoved(TreeNode * /*node*/, const QVector
Q_UNUSED
(
list
)
if
(
m_viewMode
==
CombinedView
)
{
//TODO
slotUpdateCombinedView
();
}
}
...
...
src/frame/mainframe.cpp
View file @
e39e1639
...
...
@@ -17,7 +17,7 @@ MainFrame::MainFrame(QWidget *parent, QWidget *visibleWidget)
{
setRemovable
(
false
);
auto
*
layout
=
new
QGridLayout
(
this
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
layout
->
setContentsMargins
(
{}
);
layout
->
addWidget
(
visibleWidget
,
0
,
0
);
}
...
...
src/frame/webengine/webengineframe.cpp
View file @
e39e1639
...
...
@@ -18,7 +18,7 @@ WebEngineFrame::WebEngineFrame(KActionCollection *ac, QWidget *parent)
:
Frame
(
parent
)
{
auto
*
layout
=
new
QVBoxLayout
(
this
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
layout
->
setContentsMargins
(
{}
);
setRemovable
(
true
);
auto
*
viewer
=
new
Akregator
::
AkrWebEngineViewer
(
ac
,
this
);
mArticleViewerWidgetNg
=
new
Akregator
::
ArticleViewerWebEngineWidgetNg
(
viewer
,
ac
,
this
);
...
...
src/mainwidget.cpp
View file @
e39e1639
...
...
@@ -100,7 +100,7 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
m_actionManager
,
&
ActionManagerImpl
::
slotSettingsChanged
);
auto
*
lt
=
new
QVBoxLayout
(
this
);
lt
->
setContentsMargins
(
0
,
0
,
0
,
0
);
lt
->
setContentsMargins
(
{}
);
m_horizontalSplitter
=
new
QSplitter
(
Qt
::
Horizontal
,
this
);
...
...
@@ -162,7 +162,7 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
m_mainTab
->
setWhatsThis
(
i18n
(
"Articles list."
));
auto
*
mainTabLayout
=
new
QVBoxLayout
(
m_mainTab
);
mainTabLayout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
mainTabLayout
->
setContentsMargins
(
{}
);
m_searchBar
=
new
SearchBar
(
m_mainTab
);
if
(
!
Settings
::
showQuickFilter
())
{
...
...
@@ -176,7 +176,7 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
m_articleWidget
=
new
QWidget
(
m_articleSplitter
);
auto
*
articleWidgetLayout
=
new
QVBoxLayout
;
m_articleWidget
->
setLayout
(
articleWidgetLayout
);
articleWidgetLayout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
articleWidgetLayout
->
setContentsMargins
(
{}
);
articleWidgetLayout
->
setSpacing
(
0
);
m_articleListView
=
new
ArticleListView
;
...
...
Write
Preview
Supports
Markdown
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