Commit ec60a271 authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent 94725946
......@@ -55,7 +55,7 @@ KateFileBrowser::KateFileBrowser(KTextEditor::MainWindow *mainWindow,
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setMargin(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setSpacing(0);
m_toolbar = new KToolBar(this);
......
......@@ -73,7 +73,7 @@ KateFileBrowserConfigPage::KateFileBrowserConfigPage( QWidget *parent, KateFileB
QVBoxLayout *lo = new QVBoxLayout( this );
int spacing = QApplication::style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing);
lo->setSpacing( spacing );
lo->setMargin(0);
lo->setContentsMargins(0, 0, 0, 0);
// Toolbar - a lot for a little...
QGroupBox *gbToolbar = new QGroupBox(i18n("Toolbar"), this );
......
......@@ -54,7 +54,7 @@ KateFileTreeConfigPage::KateFileTreeConfigPage(QWidget *parent, KateFileTreePlug
m_changed(false)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
gbEnableShading = new QGroupBox(i18n("Background Shading"), this);
gbEnableShading->setCheckable(true);
......
......@@ -134,7 +134,7 @@ KateFileTreePluginView::KateFileTreePluginView(KTextEditor::MainWindow *mainWind
m_toolView = mainWindow->createToolView(plug, QStringLiteral("kate_private_plugin_katefiletreeplugin"), KTextEditor::MainWindow::Left, QIcon::fromTheme(QStringLiteral("document-open")), i18n("Documents"));
Q_ASSERT(m_toolView->layout());
m_toolView->layout()->setMargin(0);
m_toolView->layout()->setContentsMargins(0, 0, 0, 0);
m_toolView->layout()->setSpacing(0);
auto mainLayout = m_toolView->layout();
......
......@@ -406,7 +406,7 @@ KateKonsoleConfigPage::KateKonsoleConfigPage( QWidget* parent, KateKonsolePlugin
{
QVBoxLayout *lo = new QVBoxLayout( this );
lo->setSpacing(QApplication::style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing));
lo->setMargin(0);
lo->setContentsMargins(0, 0, 0, 0);
cbAutoSyncronize = new QCheckBox( i18n("&Automatically synchronize the terminal with the current document when possible"), this );
lo->addWidget( cbAutoSyncronize );
......
......@@ -44,7 +44,7 @@ KTextEditorPreviewView::KTextEditorPreviewView(KTextEditorPreviewPlugin* plugin,
// add preview widget
m_previewView = new PreviewWidget(plugin, mainWindow, m_toolView.data());
m_toolView->layout()->setMargin(0);
m_toolView->layout()->setContentsMargins(0, 0, 0, 0);
m_toolView->layout()->addWidget(m_previewView);
m_toolView->addActions(m_previewView->actions());
}
......
......@@ -31,7 +31,7 @@ KateProjectConfigPage::KateProjectConfigPage(QWidget *parent, KateProjectPlugin
, m_changed(false)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QVBoxLayout *vbox = new QVBoxLayout;
QGroupBox *group = new QGroupBox(i18nc("Groupbox title", "Autoload Repositories"), this);
......
......@@ -33,7 +33,7 @@ KTERustCompletionConfigPage::KTERustCompletionConfigPage(QWidget *parent, KTERus
, m_plugin(plugin)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QVBoxLayout *vbox = new QVBoxLayout;
QGroupBox *group = new QGroupBox(i18n("Racer command"), this);
......
......@@ -77,7 +77,7 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent, KTextEditor::View *vi
setCurrentPage(item);
QVBoxLayout *layout = new QVBoxLayout(generalFrame);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
// GROUP with the one below: "Behavior"
QGroupBox *buttonGroup = new QGroupBox(i18n("&Behavior"), generalFrame);
......@@ -181,7 +181,7 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent, KTextEditor::View *vi
//BEGIN Plugins page
QFrame *page = new QFrame(this);
QVBoxLayout *vlayout = new QVBoxLayout(page);
vlayout->setMargin(0);
vlayout->setContentsMargins(0, 0, 0, 0);
vlayout->setSpacing(0);
KateConfigPluginPage *configPluginPage = new KateConfigPluginPage(page, this);
......@@ -242,7 +242,7 @@ void KateConfigDialog::addPluginPage(KTextEditor::Plugin *plugin)
QFrame *page = new QFrame();
QVBoxLayout *layout = new QVBoxLayout(page);
layout->setSpacing(0);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
KTextEditor::ConfigPage *cp = plugin->configPage(i, page);
page->layout()->addWidget(cp);
......
......@@ -69,7 +69,7 @@ KateConfigPluginPage::KateConfigPluginPage(QWidget *parent, KateConfigDialog *di
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setSpacing(0);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
KatePluginListView *listView = new KatePluginListView(this);
layout->addWidget(listView);
......
......@@ -221,7 +221,7 @@ ToolView::ToolView(MainWindow *mainwin, Sidebar *sidebar, QWidget *parent)
policy.setRetainSizeWhenHidden(true);
setSizePolicy(policy);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
m_toolbar = new KToolBar(this);
m_toolbar->setVisible(false);
m_toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly);
......@@ -722,7 +722,7 @@ MainWindow::MainWindow(QWidget *parentWidget)
// init the internal widgets
QFrame *hb = new QFrame(this);
QHBoxLayout *hlayout = new QHBoxLayout(hb);
hlayout->setMargin(0);
hlayout->setContentsMargins(0, 0, 0, 0);
hlayout->setSpacing(0);
setCentralWidget(hb);
......@@ -737,7 +737,7 @@ MainWindow::MainWindow(QWidget *parentWidget)
QFrame *vb = new QFrame(m_hSplitter);
QVBoxLayout *vlayout = new QVBoxLayout(vb);
vlayout->setMargin(0);
vlayout->setContentsMargins(0, 0, 0, 0);
vlayout->setSpacing(0);
m_hSplitter->setCollapsible(m_hSplitter->indexOf(vb), false);
......@@ -754,7 +754,7 @@ MainWindow::MainWindow(QWidget *parentWidget)
m_centralWidget = new QWidget(m_vSplitter);
m_centralWidget->setLayout(new QVBoxLayout);
m_centralWidget->layout()->setSpacing(0);
m_centralWidget->layout()->setMargin(0);
m_centralWidget->layout()->setContentsMargins(0, 0, 0, 0);
m_vSplitter->setCollapsible(m_vSplitter->indexOf(m_centralWidget), false);
m_vSplitter->setStretchFactor(m_vSplitter->indexOf(m_centralWidget), 1);
......
......@@ -56,7 +56,7 @@ KateQuickOpen::KateQuickOpen(QWidget *parent, KateMainWindow *mainWindow)
{
QVBoxLayout *layout = new QVBoxLayout();
layout->setSpacing(0);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
setLayout(layout);
m_inputLine = new KLineEdit();
......
......@@ -54,12 +54,12 @@ KateViewSpace::KateViewSpace(KateViewManager *viewManager,
setObjectName(QString::fromLatin1(name));
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setSpacing(0);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
//BEGIN tab bar
QHBoxLayout *hLayout = new QHBoxLayout();
hLayout->setSpacing(0);
hLayout->setMargin(0);
hLayout->setContentsMargins(0, 0, 0, 0);
// add tab bar
m_tabBar = new KateTabBar(this);
......
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