Changeset View
Changeset View
Standalone View
Standalone View
dialogs/imagelib/kpDocumentMetaInfoDialog.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 115 | : QDialog (parent), | |||
---|---|---|---|---|---|
116 | d (new kpDocumentMetaInfoDialogPrivate ()) | 116 | d (new kpDocumentMetaInfoDialogPrivate ()) | ||
117 | { | 117 | { | ||
118 | d->originalMetaInfoPtr = docMetaInfo; | 118 | d->originalMetaInfoPtr = docMetaInfo; | ||
119 | 119 | | |||
120 | 120 | | |||
121 | setWindowTitle (i18nc ("@title:window", "Document Properties")); | 121 | setWindowTitle (i18nc ("@title:window", "Document Properties")); | ||
122 | QDialogButtonBox * buttons = new QDialogButtonBox (QDialogButtonBox::Ok | | 122 | QDialogButtonBox * buttons = new QDialogButtonBox (QDialogButtonBox::Ok | | ||
123 | QDialogButtonBox::Cancel, this); | 123 | QDialogButtonBox::Cancel, this); | ||
124 | connect (buttons, SIGNAL (accepted()), this, SLOT (accept())); | 124 | | ||
125 | connect (buttons, SIGNAL (rejected()), this, SLOT (reject())); | 125 | connect (buttons, &QDialogButtonBox::accepted, this, &kpDocumentMetaInfoDialog::accept); | ||
126 | connect (buttons, &QDialogButtonBox::rejected, this, &kpDocumentMetaInfoDialog::reject); | ||||
126 | 127 | | |||
127 | QWidget *baseWidget = new QWidget (this); | 128 | QWidget *baseWidget = new QWidget (this); | ||
128 | 129 | | |||
129 | QVBoxLayout *dialogLayout = new QVBoxLayout (this); | 130 | QVBoxLayout *dialogLayout = new QVBoxLayout (this); | ||
130 | dialogLayout->addWidget (baseWidget); | 131 | dialogLayout->addWidget (baseWidget); | ||
131 | dialogLayout->addWidget (buttons); | 132 | dialogLayout->addWidget (buttons); | ||
132 | 133 | | |||
133 | 134 | | |||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | |||||
238 | 239 | | |||
239 | 240 | | |||
240 | QGroupBox *fieldsGroupBox = new QGroupBox (i18n ("&Text Fields"), | 241 | QGroupBox *fieldsGroupBox = new QGroupBox (i18n ("&Text Fields"), | ||
241 | baseWidget); | 242 | baseWidget); | ||
242 | 243 | | |||
243 | d->fieldsTableWidget = new QTableWidget (fieldsGroupBox); | 244 | d->fieldsTableWidget = new QTableWidget (fieldsGroupBox); | ||
244 | d->fieldsTableWidget->setEditTriggers(QAbstractItemView::AllEditTriggers); | 245 | d->fieldsTableWidget->setEditTriggers(QAbstractItemView::AllEditTriggers); | ||
245 | 246 | | |||
246 | connect (d->fieldsTableWidget, SIGNAL (currentCellChanged(int,int,int,int)), | 247 | connect (d->fieldsTableWidget, &QTableWidget::currentCellChanged, | ||
247 | SLOT (slotFieldsCurrentCellChanged(int,int,int,int))); | 248 | this, &kpDocumentMetaInfoDialog::slotFieldsCurrentCellChanged); | ||
248 | 249 | | |||
249 | connect (d->fieldsTableWidget, SIGNAL (itemChanged(QTableWidgetItem*)), | 250 | connect (d->fieldsTableWidget, &QTableWidget::itemChanged, | ||
250 | SLOT (slotFieldsItemChanged(QTableWidgetItem*))); | 251 | this, &kpDocumentMetaInfoDialog::slotFieldsItemChanged); | ||
251 | 252 | | |||
252 | d->fieldsAddRowButton = new QPushButton (i18n ("&Add Row"), | 253 | d->fieldsAddRowButton = new QPushButton (i18n ("&Add Row"), | ||
253 | fieldsGroupBox); | 254 | fieldsGroupBox); | ||
254 | connect (d->fieldsAddRowButton, SIGNAL (clicked()), | 255 | connect (d->fieldsAddRowButton, &QPushButton::clicked, | ||
255 | SLOT (slotFieldsAddRowButtonClicked())); | 256 | this, &kpDocumentMetaInfoDialog::slotFieldsAddRowButtonClicked); | ||
256 | 257 | | |||
257 | d->fieldsDeleteRowButton = new QPushButton (i18n ("&Delete Row"), | 258 | d->fieldsDeleteRowButton = new QPushButton (i18n ("&Delete Row"), | ||
258 | fieldsGroupBox); | 259 | fieldsGroupBox); | ||
259 | connect (d->fieldsDeleteRowButton, SIGNAL (clicked()), | 260 | connect (d->fieldsDeleteRowButton, &QPushButton::clicked, | ||
260 | SLOT (slotFieldsDeleteRowButtonClicked())); | 261 | this, &kpDocumentMetaInfoDialog::slotFieldsDeleteRowButtonClicked); | ||
261 | 262 | | |||
262 | d->fieldsResetButton = new QPushButton (i18n ("&Reset"), | 263 | d->fieldsResetButton = new QPushButton (i18n ("&Reset"), | ||
263 | fieldsGroupBox); | 264 | fieldsGroupBox); | ||
264 | connect (d->fieldsResetButton, SIGNAL (clicked()), | 265 | connect (d->fieldsResetButton, &QPushButton::clicked, | ||
265 | SLOT (setUIToOriginalMetaInfo())); | 266 | this, &kpDocumentMetaInfoDialog::setUIToOriginalMetaInfo); | ||
266 | 267 | | |||
267 | QHBoxLayout *fieldsButtonsLayout = new QHBoxLayout (); | 268 | QHBoxLayout *fieldsButtonsLayout = new QHBoxLayout (); | ||
268 | fieldsButtonsLayout->addWidget (d->fieldsAddRowButton); | 269 | fieldsButtonsLayout->addWidget (d->fieldsAddRowButton); | ||
269 | fieldsButtonsLayout->addWidget (d->fieldsDeleteRowButton); | 270 | fieldsButtonsLayout->addWidget (d->fieldsDeleteRowButton); | ||
270 | fieldsButtonsLayout->addStretch (); | 271 | fieldsButtonsLayout->addStretch (); | ||
271 | fieldsButtonsLayout->addWidget (d->fieldsResetButton); | 272 | fieldsButtonsLayout->addWidget (d->fieldsResetButton); | ||
272 | 273 | | |||
273 | QVBoxLayout *fieldsLayout = new QVBoxLayout (fieldsGroupBox); | 274 | QVBoxLayout *fieldsLayout = new QVBoxLayout (fieldsGroupBox); | ||
▲ Show 20 Lines • Show All 494 Lines • Show Last 20 Lines |