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

Remove deprecated methods

parent d68059c0
......@@ -35,7 +35,7 @@ KCMAkregatorPluginsConfig::KCMAkregatorPluginsConfig(QWidget *parent, const QVar
: KCModule(parent, args)
{
QHBoxLayout *lay = new QHBoxLayout(this);
lay->setMargin(0);
lay->setContentsMargins(0, 0, 0, 0);
KAboutData *about = new KAboutData(QStringLiteral("kcmakrpluginsconfig"),
i18n("Configure Plugins"),
......
......@@ -74,7 +74,7 @@ ArticleViewerWebEngineWidgetNg::ArticleViewerWebEngineWidgetNg(KActionCollection
void ArticleViewerWebEngineWidgetNg::initializeLayout(KActionCollection *ac)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this);
mTextToSpeechWidget->setObjectName(QStringLiteral("texttospeechwidget"));
......
......@@ -73,7 +73,7 @@ ArticleViewerWidget::ArticleViewerWidget(const QString &grantleeDirectory, KActi
, m_grantleeDirectory(grantleeDirectory)
{
QGridLayout *layout = new QGridLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(m_articleViewerWidgetNg);
m_articleHtmlWriter = new Akregator::ArticleHtmlWebEngineWriter(m_articleViewerWidgetNg->articleViewerNg(), this);
connect(m_articleViewerWidgetNg->articleViewerNg(), &ArticleViewerWebEngine::signalOpenUrlRequest, this, &ArticleViewerWidget::signalOpenUrlRequest);
......
......@@ -31,7 +31,7 @@ MainFrame::MainFrame(QWidget *parent, QWidget *visibleWidget)
{
setRemovable(false);
QGridLayout *layout = new QGridLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(visibleWidget, 0, 0);
}
......
......@@ -31,7 +31,7 @@ WebEngineFrame::WebEngineFrame(KActionCollection *ac, QWidget *parent)
: Frame(parent)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
setRemovable(true);
Akregator::AkrWebEngineViewer *viewer = new Akregator::AkrWebEngineViewer(ac, this);
mArticleViewerWidgetNg = new Akregator::ArticleViewerWebEngineWidgetNg(viewer, ac, this);
......
......@@ -124,7 +124,7 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
m_actionManager, &ActionManagerImpl::slotSettingsChanged);
QVBoxLayout *lt = new QVBoxLayout(this);
lt->setMargin(0);
lt->setContentsMargins(0, 0, 0, 0);
m_horizontalSplitter = new QSplitter(Qt::Horizontal, this);
......@@ -186,7 +186,7 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
m_mainTab->setWhatsThis(i18n("Articles list."));
QVBoxLayout *mainTabLayout = new QVBoxLayout(m_mainTab);
mainTabLayout->setMargin(0);
mainTabLayout->setContentsMargins(0, 0, 0, 0);
m_searchBar = new SearchBar(m_mainTab);
if (!Settings::showQuickFilter()) {
......@@ -199,7 +199,7 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
m_articleWidget = new QWidget(m_articleSplitter);
QVBoxLayout *articleWidgetLayout = new QVBoxLayout;
m_articleWidget->setLayout(articleWidgetLayout);
articleWidgetLayout->setMargin(0);
articleWidgetLayout->setContentsMargins(0, 0, 0, 0);
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