Commit e39e1639 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use {} directly

parent d2979f5d
Pipeline #42079 failed with stage
in 8 minutes and 39 seconds
......@@ -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"),
......
......@@ -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"),
......
......@@ -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"));
......
......@@ -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();
}
}
......
......@@ -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);
}
......
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment