27 setWindowTitle(i18nc(
"@title:window",
"Insert Keyframes"));
30 QVBoxLayout *layout =
new QVBoxLayout(
this);
33 QWidget *forms =
new QWidget(
this);
34 layout->addWidget(forms);
42 QFormLayout *LO =
new QFormLayout(forms);
44 LO->addRow(QString(i18nc(
"@label:spinbox",
"Number of frames:")), &
frameCountSpinbox);
48 QGroupBox *sideRadioButtons =
new QGroupBox(i18nc(
"@label:group",
"Side:"),
this);
49 layout->addWidget(sideRadioButtons);
51 leftBefore =
new QRadioButton(i18nc(
"@label:radio",
"Left / Before"), sideRadioButtons);
52 rightAfter =
new QRadioButton(i18nc(
"@label:radio",
"Right / After"), sideRadioButtons);
55 QVBoxLayout *LO =
new QVBoxLayout(sideRadioButtons);
61 QDialogButtonBox *buttonbox =
new QDialogButtonBox(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
62 layout->addWidget(buttonbox);
64 KGuiItem::assign(buttonbox->button(QDialogButtonBox::Ok), KStandardGuiItem::ok());
65 KGuiItem::assign(buttonbox->button(QDialogButtonBox::Cancel), KStandardGuiItem::cancel());
67 connect(buttonbox, SIGNAL(accepted()),
this, SLOT(accept()));
68 connect(buttonbox, SIGNAL(rejected()),
this, SLOT(reject()));