mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
modificado el di?log de opciones para evitar el desbordamiento en pantallas
de baja resoluci?n
This commit is contained in:
parent
18ed42adb9
commit
c5e8424ee0
@ -5,13 +5,22 @@
|
|||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
|
#include <QTabWidget>
|
||||||
|
|
||||||
|
|
||||||
OptionsDialog::OptionsDialog(QWidget * parent)
|
OptionsDialog::OptionsDialog(QWidget * parent)
|
||||||
:YACReaderOptionsDialog(parent)
|
:YACReaderOptionsDialog(parent)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QTabWidget * tabWidget = new QTabWidget();
|
||||||
|
|
||||||
QVBoxLayout * layout = new QVBoxLayout(this);
|
QVBoxLayout * layout = new QVBoxLayout(this);
|
||||||
|
|
||||||
|
QWidget * pageGeneral = new QWidget();
|
||||||
|
QWidget * pageFlow = new QWidget();
|
||||||
|
QVBoxLayout * layoutGeneral = new QVBoxLayout();
|
||||||
|
QVBoxLayout * layoutFlow = new QVBoxLayout();;
|
||||||
|
|
||||||
QGroupBox *slideSizeBox = new QGroupBox(tr("\"Go to flow\" size"));
|
QGroupBox *slideSizeBox = new QGroupBox(tr("\"Go to flow\" size"));
|
||||||
//slideSizeLabel = new QLabel(,this);
|
//slideSizeLabel = new QLabel(,this);
|
||||||
slideSize = new QSlider(this);
|
slideSize = new QSlider(this);
|
||||||
@ -68,13 +77,23 @@ OptionsDialog::OptionsDialog(QWidget * parent)
|
|||||||
buttons->addWidget(accept);
|
buttons->addWidget(accept);
|
||||||
buttons->addWidget(cancel);
|
buttons->addWidget(cancel);
|
||||||
|
|
||||||
layout->addWidget(pathBox);
|
layoutGeneral->addWidget(pathBox);
|
||||||
layout->addWidget(slideSizeBox);
|
layoutGeneral->addWidget(slideSizeBox);
|
||||||
layout->addWidget(fitBox);
|
layoutGeneral->addWidget(fitBox);
|
||||||
layout->addWidget(colorBox);
|
layoutGeneral->addWidget(colorBox);
|
||||||
layout->addWidget(sw);
|
layoutGeneral->addStretch();
|
||||||
layout->addWidget(gl);
|
layoutFlow->addWidget(sw);
|
||||||
layout->addWidget(useGL);
|
layoutFlow->addWidget(gl);
|
||||||
|
layoutFlow->addWidget(useGL);
|
||||||
|
layoutFlow->addStretch();
|
||||||
|
|
||||||
|
pageGeneral->setLayout(layoutGeneral);
|
||||||
|
pageFlow->setLayout(layoutFlow);
|
||||||
|
|
||||||
|
tabWidget->addTab(pageGeneral,tr("General"));
|
||||||
|
tabWidget->addTab(pageFlow,tr("Page Flow"));
|
||||||
|
|
||||||
|
layout->addWidget(tabWidget);
|
||||||
layout->addLayout(buttons);
|
layout->addLayout(buttons);
|
||||||
|
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
@ -86,6 +105,8 @@ OptionsDialog::OptionsDialog(QWidget * parent)
|
|||||||
resize(400,0);
|
resize(400,0);
|
||||||
setModal (true);
|
setModal (true);
|
||||||
setWindowTitle(tr("Options"));
|
setWindowTitle(tr("Options"));
|
||||||
|
|
||||||
|
this->layout()->setSizeConstraint(QLayout::SetFixedSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionsDialog::findFolder()
|
void OptionsDialog::findFolder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user