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

Remove deprecated methods

parent 5d15a77c
......@@ -71,7 +71,7 @@ NoteAlarmDialog::NoteAlarmDialog(const QString &caption, QWidget *parent)
connect(buttonBox, &QDialogButtonBox::rejected, this, &NoteAlarmDialog::reject);
QWidget *page = new QWidget(this);
QVBoxLayout *pageVBoxLayout = new QVBoxLayout(page);
pageVBoxLayout->setMargin(0);
pageVBoxLayout->setContentsMargins(0, 0, 0, 0);
d->m_buttons = new QButtonGroup(this);
QGroupBox *group = new QGroupBox(i18n("Scheduled Alarm"), page);
......@@ -85,7 +85,7 @@ NoteAlarmDialog::NoteAlarmDialog(const QString &caption, QWidget *parent)
QWidget *at = new QWidget;
QHBoxLayout *atHBoxLayout = new QHBoxLayout(at);
atHBoxLayout->setMargin(0);
atHBoxLayout->setContentsMargins(0, 0, 0, 0);
QRadioButton *label_at = new QRadioButton(i18n("Alarm &at:"), at);
atHBoxLayout->addWidget(label_at);
d->m_atDate = new KDateComboBox(at);
......
......@@ -31,7 +31,7 @@ NoteActionConfig::NoteActionConfig(QWidget *parent)
: KCModule(parent)
{
QGridLayout *layout = new QGridLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QLabel *label_MailAction = new QLabel(i18n("&Mail action:"), this);
layout->addWidget(label_MailAction, 0, 0);
......
......@@ -49,7 +49,7 @@ NoteNetworkConfigWidget::NoteNetworkConfigWidget(QWidget *parent)
, d(new NoteShared::NoteNetworkConfigWidgetPrivate)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QGroupBox *incoming = new QGroupBox(i18n("Incoming Notes"));
QHBoxLayout *tmpLayout = new QHBoxLayout;
......@@ -113,7 +113,7 @@ NoteNetworkConfig::NoteNetworkConfig(QWidget *parent)
: KCModule(parent)
{
QVBoxLayout *lay = new QVBoxLayout(this);
lay->setMargin(0);
lay->setContentsMargins(0, 0, 0, 0);
NoteNetworkConfigWidget *noteNetworkConfigWidget = new NoteNetworkConfigWidget(this);
lay->addWidget(noteNetworkConfigWidget);
addConfig(NoteShared::NoteSharedGlobalConfig::self(), noteNetworkConfigWidget);
......
......@@ -106,7 +106,7 @@ KNoteCollectionConfigWidget::KNoteCollectionConfigWidget(QWidget *parent)
: QWidget(parent)
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setMargin(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
QTabWidget *tabWidget = new QTabWidget;
mainLayout->addWidget(tabWidget);
......
......@@ -187,7 +187,7 @@ KNoteMiscConfig::KNoteMiscConfig(QWidget *parent)
: KCModule(parent)
{
QVBoxLayout *lay = new QVBoxLayout(this);
lay->setMargin(0);
lay->setContentsMargins(0, 0, 0, 0);
QCheckBox *kcfg_SystemTrayShowNotes = new QCheckBox(i18n("Show number of notes in tray icon"), this);
......@@ -257,7 +257,7 @@ KNotePrintConfig::KNotePrintConfig(QWidget *parent)
QWidget *w = new QWidget(this);
lay->addWidget(w);
QGridLayout *layout = new QGridLayout(w);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QLabel *label_PrintAction = new QLabel(i18n("Theme:"), this);
layout->addWidget(label_PrintAction, 0, 0);
......
......@@ -41,7 +41,7 @@ KNoteDisplayConfigWidget::KNoteDisplayConfigWidget(bool defaults, QWidget *paren
, kcfg_Height(nullptr)
{
QGridLayout *layout = new QGridLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QLabel *label_FgColor = new QLabel(i18n("&Text color:"), this);
label_FgColor->setObjectName(QStringLiteral("label_FgColor"));
......
......@@ -32,7 +32,7 @@ KNoteEditorConfigWidget::KNoteEditorConfigWidget(QWidget *parent)
: QWidget(parent)
{
QGridLayout *layout = new QGridLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
QLabel *label_TabSize = new QLabel(i18n("&Tab size:"), this);
layout->addWidget(label_TabSize, 0, 0, 1, 2);
......
......@@ -79,7 +79,7 @@ KNoteFindWidget::KNoteFindWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setMargin(0);
vbox->setContentsMargins(0, 0, 0, 0);
QHBoxLayout *hbox = new QHBoxLayout;
vbox->addLayout(hbox);
QLabel *lab = new QLabel(i18nc("@label:textbox", "Search notes:"), this);
......
......@@ -73,7 +73,7 @@ void KCMKNotesSummary::modified()
void KCMKNotesSummary::initGUI()
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
mCheckedCollectionWidget = new PimCommon::CheckedCollectionWidget(Akonadi::NoteUtils::noteMimeType());
layout->addWidget(mCheckedCollectionWidget);
......
......@@ -100,7 +100,7 @@ KNote::KNote(const QDomDocument &buildDoc, const Akonadi::Item &item, bool allow
// create the main layout
m_noteLayout = new QVBoxLayout(this);
m_noteLayout->setMargin(0);
m_noteLayout->setContentsMargins(0, 0, 0, 0);
createActions();
buildGui();
......
......@@ -50,7 +50,7 @@ KNotePrintSelectedNotesDialog::KNotePrintSelectedNotesDialog(QWidget *parent)
connect(mButtonBox, &QDialogButtonBox::rejected, this, &KNotePrintSelectedNotesDialog::reject);
QWidget *w = new QWidget;
QVBoxLayout *vbox = new QVBoxLayout;
vbox->setMargin(0);
vbox->setContentsMargins(0, 0, 0, 0);
w->setLayout(vbox);
mListNotes = new QListWidget;
......@@ -58,7 +58,7 @@ KNotePrintSelectedNotesDialog::KNotePrintSelectedNotesDialog(QWidget *parent)
vbox->addWidget(mListNotes);
QHBoxLayout *lay = new QHBoxLayout;
lay->setMargin(0);
lay->setContentsMargins(0, 0, 0, 0);
vbox->addLayout(lay);
QLabel *lab = new QLabel(i18n("Printing theme:"));
lay->addWidget(lab);
......
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