Commit 896b207b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix layout

parent a8f776d2
Pipeline #26581 passed with stage
in 9 minutes and 48 seconds
......@@ -72,9 +72,10 @@ void KNoteEditDialog::init(bool readOnly)
mainLayout->addWidget(buttonBox);
QVBoxLayout *layout = new QVBoxLayout(page);
layout->setContentsMargins(0, 0, 0, 0);
QHBoxLayout *hbl = new QHBoxLayout();
layout->addItem(hbl);
layout->addLayout(hbl);
QLabel *label = new QLabel(page);
label->setText(i18nc("@label popup note name", "Name:"));
hbl->addWidget(label, 0);
......
......@@ -63,7 +63,7 @@ KNotesSummaryWidget::KNotesSummaryWidget(KontactInterface::Plugin *plugin, QWidg
mainLayout->addWidget(header);
mLayout = new QGridLayout();
mainLayout->addItem(mLayout);
mainLayout->addLayout(mLayout);
mLayout->setSpacing(3);
mLayout->setRowStretch(6, 1);
......
......@@ -791,7 +791,7 @@ void KNote::createNoteHeader()
connect(m_button, &KNoteButton::clicked, this, &KNote::slotClose);
m_noteLayout->addItem(headerLayout);
m_noteLayout->addLayout(headerLayout);
}
void KNote::createNoteEditor(const QString &configFile)
......@@ -832,7 +832,7 @@ void KNote::createNoteFooter()
gripLayout->addWidget(m_grip);
gripLayout->setAlignment(m_grip, Qt::AlignBottom | Qt::AlignRight);
m_noteLayout->addItem(gripLayout);
m_noteLayout->addLayout(gripLayout);
// if there was just a way of making KComboBox adhere the toolbar height...
if (m_tool) {
......
......@@ -44,6 +44,7 @@ class KToolBar;
class QLabel;
class QMenu;
class QSizeGrip;
class QVBoxLayout;
class KNote : public QFrame, virtual public KXMLGUIClient, public KNoteInterface
{
......@@ -140,7 +141,7 @@ private:
void updateAllAttributes();
void saveNoteContent();
Akonadi::Item mItem;
QLayout *m_noteLayout = nullptr;
QVBoxLayout *m_noteLayout = nullptr;
QLabel *m_label = nullptr;
QSizeGrip *m_grip = nullptr;
KNoteButton *m_button = nullptr;
......
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