48 QVBoxLayout *mainLayout =
new QVBoxLayout(
this);
49 mainLayout->setContentsMargins(0, 0, 0, 0);
51 QHBoxLayout *bottomLayout =
new QHBoxLayout;
54 this, SLOT(changeShortcutScheme(QString)));
56 QPushButton *printButton =
new QPushButton;
57 KGuiItem::assign(printButton, KStandardGuiItem::print());
59 QDialogButtonBox *buttonBox =
new QDialogButtonBox(
this);
60 buttonBox->addButton(printButton, QDialogButtonBox::ActionRole);
61 bottomLayout->addWidget(buttonBox);
62 mainLayout->addLayout(bottomLayout);
65 KConfigGroup group(KSharedConfig::openConfig(),
"KisShortcutsDialog Settings");
66 resize(group.readEntry(
"Dialog Size",
sizeHint()));