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

remove deprecated methods

parent f66e1598
......@@ -140,7 +140,7 @@ void KalziumPlasma::showConfigurationInterface()
m_dialog->setWindowIcon(QIcon::fromTheme("kalzium"));
m_dialog->setWindowTitle(i18n("KalziumPlasma Configuration"));
ui.setupUi(m_dialog->mainWidget());
m_dialog->mainWidget()->layout()->setMargin(0);
m_dialog->mainWidget()->layout()->setContentsMargins(0, 0, 0, 0);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -43,7 +43,7 @@ DetailedQmlView::DetailedQmlView(QWidget *parent) : QWidget(parent)
view->setSource(QUrl::fromLocalFile(qmlPath + "detailview.qml"));
layout->addWidget(view);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
setLayout(layout);
// resize(200, 200);
......
......@@ -137,7 +137,7 @@ KHTMLPart* DetailedInfoDlg::addHTMLTab(const QString& title, const QString& icon
item->setHeader(icontext);
item->setIcon(QIcon::fromTheme(iconname));
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
KHTMLPart *w = new KHTMLPart(frame, frame);
w->setJScriptEnabled(false);
......@@ -457,7 +457,7 @@ void DetailedInfoDlg::createContent()
// item->setHeader(i18n("Overview"));
// item->setIcon(QIcon("overview"));
// QVBoxLayout *overviewLayout = new QVBoxLayout(m_pOverviewTab);
// overviewLayout->setMargin(0);
// overviewLayout->setContentsMargins(0, 0, 0, 0);
// dTab = new DetailedGraphicalOverview(m_pOverviewTab);
// dTab->setObjectName("DetailedGraphicalOverview");
// overviewLayout->addWidget(dTab);
......@@ -468,7 +468,7 @@ void DetailedInfoDlg::createContent()
//X item->setHeader(i18n("What does this element look like?"));
//X item->setIcon(QIcon("elempic"));
//X QVBoxLayout *mainLayout = new QVBoxLayout(m_pPictureTab);
//X mainLayout->setMargin(0);
//X mainLayout->setContentsMargins(0, 0, 0, 0);
//X piclabel = new QLabel(m_pPictureTab);
//X piclabel->setMinimumSize(400, 350);
//X mainLayout->addWidget(piclabel);
......@@ -482,7 +482,7 @@ void DetailedInfoDlg::createContent()
item->setHeader(i18n("Atom Model"));
item->setIcon(QIcon::fromTheme(QStringLiteral("orbits")));
QVBoxLayout *modelLayout = new QVBoxLayout(m_pModelTab);
modelLayout->setMargin(0);
modelLayout->setContentsMargins(0, 0, 0, 0);
wOrbits = new OrbitsWidget(m_pModelTab);
modelLayout->addWidget(wOrbits);
......@@ -497,7 +497,7 @@ void DetailedInfoDlg::createContent()
item->setHeader(i18n("Spectrum"));
item->setIcon(QIcon::fromTheme(QStringLiteral("spectrum")));
QVBoxLayout *spectrumLayout = new QVBoxLayout(m_pSpectrumTab);
spectrumLayout->setMargin(0);
spectrumLayout->setContentsMargins(0, 0, 0, 0);
m_spectrumStack = new QStackedWidget(m_pSpectrumTab);
spectrumLayout->addWidget(m_spectrumStack);
m_spectrumview = new SpectrumViewImpl(m_spectrumStack);
......
......@@ -93,7 +93,7 @@ Kalzium::Kalzium() : KXmlGuiWindow(nullptr)
// Main pse-Table Tablewidget
QWidget *pseTempWidget = new QWidget(this);
QVBoxLayout *layout = new QVBoxLayout(pseTempWidget);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(2);
SearchWidget *searchWidget = new SearchWidget(pseTempWidget);
......
......@@ -328,7 +328,7 @@ GlossaryDialog::GlossaryDialog(QWidget *parent) : QDialog(parent), d(new Private
QWidget *main = new QWidget(this);
QVBoxLayout *vbox = new QVBoxLayout(main);
setLayout(vbox);
vbox->setMargin(0);
vbox->setContentsMargins(0, 0, 0, 0);
QHBoxLayout *hbox = new QHBoxLayout();
......
......@@ -122,7 +122,7 @@ void LegendWidget::updateLegendItemLayout(const QList<legendPair>& list)
QGridLayout * layout = new QGridLayout(this);
layout->setSpacing(0);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
int x = 0;
int y = 0;
......@@ -190,7 +190,7 @@ bool LegendWidget::isElementMatch(int element, QColor &color){
LegendItem::LegendItem(const QPair<QString, QColor>& pair, QWidget * parent)
{
QHBoxLayout *ItemLayout = new QHBoxLayout(this);
ItemLayout->setMargin(0);
ItemLayout->setContentsMargins(0, 0, 0, 0);
if (pair.second.isValid()) {
legendItemColor = pair.second;
......
......@@ -50,7 +50,7 @@ void TablesDialog::createGreekSymbolTable()
item->setHeader(i18n("Greek alphabet"));
item->setIcon(QIcon::fromTheme(QStringLiteral("numbers")));
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QTableWidget *table = new MyTableWidget(frame);
table->verticalHeader()->hide();
......@@ -153,7 +153,7 @@ void TablesDialog::createNumbersTable()
item->setHeader(i18n("Numeric Prefixes and Roman Numerals"));
item->setIcon(QIcon::fromTheme(QStringLiteral("numbers")));
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QTableWidget *table = new MyTableWidget(frame);
table->verticalHeader()->hide();
......
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