Commit 4c325004 authored by Laurent Montel's avatar Laurent Montel 😁

remove deprecated methods

parent 44e064e4
......@@ -48,7 +48,7 @@ KInfoListWidget::KInfoListWidget(const QString &_title, QWidget *parent, bool _g
//setButtons(KCModule::Help);
getlistbox = _getlistbox;
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
widgetStack = new QStackedWidget(this);
layout->addWidget(widgetStack);
......
......@@ -74,7 +74,7 @@ KCMMemory::KCMMemory(QWidget *parent, const QVariantList &) :
setButtons(Help);
QVBoxLayout *top = new QVBoxLayout(this);
top->setMargin(0);
top->setContentsMargins(0, 0, 0, 0);
top->setSpacing(1);
QGroupBox* informationGroup = initializeText();
......
......@@ -86,7 +86,7 @@ QList<MyNIC*> findNICs();
KCMNic::KCMNic(QWidget *parent, const QVariantList &) :
KCModule(parent) {
QVBoxLayout *box=new QVBoxLayout(this);
box->setMargin(0);
box->setContentsMargins(0, 0, 0, 0);
m_list=new QTreeWidget(this);
m_list->setRootIsDecorated(false);
box->addWidget(m_list);
......
......@@ -80,7 +80,7 @@ KCMOpenGL::KCMOpenGL(QWidget *parent, const QVariantList &)
: KCModule(parent)
{
setupUi(this);
layout()->setMargin(0);
layout()->setContentsMargins(0, 0, 0, 0);
GetInfo_OpenGL(glinfoTreeWidget);
......
......@@ -52,7 +52,7 @@ KCMPci::KCMPci(QWidget *parent, const QVariantList &) :
QHBoxLayout* layout = new QHBoxLayout(this);
layout->setSpacing(0);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
tree = new QTreeWidget(this);
layout->addWidget(tree);
......
......@@ -52,7 +52,7 @@ K_PLUGIN_FACTORY(SambaFactory,
SambaContainer::SambaContainer(QWidget *parent, const QVariantList&) :
KCModule(parent), config(QStringLiteral("kcmsambarc")), tabs(this), status(&tabs, &config), imports(&tabs, &config), logView(&tabs, &config), statisticsView(&tabs, &config) {
QVBoxLayout *layout = new QVBoxLayout( this );
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
layout->addWidget(&tabs);
tabs.addTab(&status, i18n("&Exports"));
......
......@@ -36,7 +36,7 @@ USBViewer::USBViewer(QWidget *parent, const QVariantList &) :
" the devices attached to your USB bus(es)."));
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setMargin(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setSpacing(0);
QSplitter *splitter = new QSplitter(this);
......
......@@ -78,7 +78,7 @@ View1394::View1394(QWidget *parent, const QVariantList &) :
m_ouiDb=new OuiDb();
QVBoxLayout *box=new QVBoxLayout(this);
box->setMargin(0);
box->setContentsMargins(0, 0, 0, 0);
m_view=new View1394Widget(this);
/*
for (int i=2; i<8; i++)
......@@ -87,7 +87,7 @@ View1394::View1394(QWidget *parent, const QVariantList &) :
m_view->m_listview->setColumnAlignment(9, Qt::AlignRight);
*/
box->addWidget(m_view);
m_view->layout()->setMargin(0);
m_view->layout()->setContentsMargins(0, 0, 0, 0);
connect(m_view->m_busResetPb, &QPushButton::clicked, this, &View1394::generateBusReset);
connect(&m_rescanTimer, &QTimer::timeout, this, &View1394::rescanBus);
rescanBus();
......
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