Changeset View
Changeset View
Standalone View
Standalone View
src/dialog/noteeditdialog.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 45 | { | |||
---|---|---|---|---|---|
61 | mOkButton->setObjectName(QStringLiteral("save-button")); | 61 | mOkButton->setObjectName(QStringLiteral("save-button")); | ||
62 | mOkButton->setDefault(true); | 62 | mOkButton->setDefault(true); | ||
63 | mOkButton->setShortcut(Qt::CTRL | Qt::Key_Return); | 63 | mOkButton->setShortcut(Qt::CTRL | Qt::Key_Return); | ||
64 | mOkButton->setText(i18nc("@action:button", "Save")); | 64 | mOkButton->setText(i18nc("@action:button", "Save")); | ||
65 | mOkButton->setIcon(QIcon::fromTheme(QStringLiteral("view-pim-notes"))); | 65 | mOkButton->setIcon(QIcon::fromTheme(QStringLiteral("view-pim-notes"))); | ||
66 | mOkButton->setEnabled(false); | 66 | mOkButton->setEnabled(false); | ||
67 | 67 | | |||
68 | QGridLayout *layout = new QGridLayout(mainWidget); | 68 | QGridLayout *layout = new QGridLayout(mainWidget); | ||
69 | layout->setMargin(0); | 69 | layout->setContentsMargins(0, 0, 0, 0); | ||
70 | QHBoxLayout *hbox = new QHBoxLayout; | 70 | QHBoxLayout *hbox = new QHBoxLayout; | ||
71 | hbox->setMargin(0); | 71 | hbox->setContentsMargins(0, 0, 0, 0); | ||
72 | hbox->setSpacing(2); | 72 | hbox->setSpacing(2); | ||
73 | 73 | | |||
74 | mNoteTitle = new QLineEdit; | 74 | mNoteTitle = new QLineEdit; | ||
75 | mNoteTitle->setClearButtonEnabled(true); | 75 | mNoteTitle->setClearButtonEnabled(true); | ||
76 | mNoteTitle->setObjectName(QStringLiteral("notetitle")); | 76 | mNoteTitle->setObjectName(QStringLiteral("notetitle")); | ||
77 | mNoteTitle->setFocus(); | 77 | mNoteTitle->setFocus(); | ||
78 | connect(mNoteTitle, &QLineEdit::textChanged, this, &NoteEditDialog::slotUpdateButtons); | 78 | connect(mNoteTitle, &QLineEdit::textChanged, this, &NoteEditDialog::slotUpdateButtons); | ||
79 | 79 | | |||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |