mirror of
https://github.com/YACReader/yacreader
synced 2025-07-26 17:04:45 -04:00
added shortcuts management to YACReader
added shortcuts management to keyPressEvent keys
This commit is contained in:
@ -40,23 +40,15 @@ OptionsDialog::OptionsDialog(QWidget * parent)
|
||||
flowLayout->addWidget(gl);
|
||||
flowLayout->addLayout(switchFlowType);
|
||||
|
||||
QVBoxLayout * shortcutsLayout = new QVBoxLayout();
|
||||
QPushButton * shortcutsButton = new QPushButton(tr("Edit shortcuts"));
|
||||
shortcutsLayout->addWidget(shortcutsButton);
|
||||
|
||||
|
||||
sw->hide();
|
||||
|
||||
QWidget * comicFlowW = new QWidget;
|
||||
comicFlowW->setLayout(flowLayout);
|
||||
|
||||
QGroupBox *generalBox = new QGroupBox(tr("Shortcuts"));
|
||||
generalBox->setLayout(shortcutsLayout);
|
||||
generalLayout->addWidget(generalBox);
|
||||
generalLayout->addStretch();
|
||||
|
||||
QWidget * generalW = new QWidget;
|
||||
generalW->setLayout(generalLayout);
|
||||
generalLayout->addWidget(shortcutsBox);
|
||||
generalLayout->addStretch();
|
||||
|
||||
tabWidget->addTab(comicFlowW,tr("Comic Flow"));
|
||||
tabWidget->addTab(generalW,tr("General"));
|
||||
@ -71,7 +63,6 @@ OptionsDialog::OptionsDialog(QWidget * parent)
|
||||
|
||||
this->layout()->setSizeConstraint(QLayout::SetFixedSize);
|
||||
|
||||
connect(shortcutsButton,SIGNAL(clicked()),this,SIGNAL(editShortcuts()));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user