Commit 28ca86eb authored by Laurent Montel's avatar Laurent Montel 😁

Fix margin here too

parent 6219743d
......@@ -79,7 +79,8 @@ void KNoteFindDialog::readConfig()
KNoteFindWidget::KNoteFindWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vbox = new QVBoxLayout;
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setMargin(0);
QHBoxLayout *hbox = new QHBoxLayout;
vbox->addLayout(hbox);
QLabel *lab = new QLabel(i18n("Search notes:"));
......@@ -105,8 +106,6 @@ KNoteFindWidget::KNoteFindWidget(QWidget *parent)
vbox->addWidget(mResultSearch);
mSearchLineEdit->setFocus();
setLayout(vbox);
}
KNoteFindWidget::~KNoteFindWidget()
......
......@@ -40,8 +40,7 @@ KNotePrintSelectedNotesDialog::KNotePrintSelectedNotesDialog(QWidget *parent)
{
setWindowTitle(i18n("Select notes"));
mButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QPushButton *okButton = mButtonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......@@ -51,6 +50,7 @@ KNotePrintSelectedNotesDialog::KNotePrintSelectedNotesDialog(QWidget *parent)
connect(mButtonBox, &QDialogButtonBox::rejected, this, &KNotePrintSelectedNotesDialog::reject);
QWidget *w = new QWidget;
QVBoxLayout *vbox = new QVBoxLayout;
vbox->setMargin(0);
w->setLayout(vbox);
mListNotes = new QListWidget;
......
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