mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Corregido el aspecto de elegir color de fondo y la actualizaci?n autom?tica al
cerrar el di?logo de opciones
This commit is contained in:
@ -67,6 +67,8 @@ OptionsDialog::OptionsDialog(QWidget * parent)
|
||||
//backgroundColor->setMinimumWidth(100);
|
||||
colorSelection->addWidget(backgroundColor);
|
||||
colorSelection->addWidget(selectBackgroundColorButton = new QPushButton(tr("Choose")));
|
||||
colorSelection->setStretchFactor(backgroundColor,1);
|
||||
colorSelection->setStretchFactor(selectBackgroundColorButton,0);
|
||||
//colorSelection->addStretch();
|
||||
connect(selectBackgroundColorButton, SIGNAL(clicked()), colorDialog, SLOT(show()));
|
||||
colorBox->setLayout(colorSelection);
|
||||
@ -173,6 +175,10 @@ void OptionsDialog::updateColor(const QColor & color)
|
||||
backgroundColor->setPalette(pal);
|
||||
backgroundColor->setAutoFillBackground(true);
|
||||
colorDialog->setCurrentColor(color);
|
||||
|
||||
settings->setValue(BACKGROUND_COLOR,color);
|
||||
|
||||
emit(changedOptions());
|
||||
}
|
||||
|
||||
void OptionsDialog::fitToWidthRatio(int value)
|
||||
|
Reference in New Issue
Block a user