mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
GuiBox.cpp: add a comment and a string conversion
This commit is contained in:
parent
a49f24767a
commit
0140063c8e
@ -110,7 +110,7 @@ void fillComboColor(QComboBox * combo, QList<T> const & list, bool const is_none
|
||||
QColor color;
|
||||
// frameColorCO cannot be uncolored
|
||||
if (is_none)
|
||||
combo->addItem("none");
|
||||
combo->addItem(qt_("none"));
|
||||
typename QList<T>::const_iterator cit = list.begin() + 1;
|
||||
for (; cit != list.end(); ++cit) {
|
||||
color = QColor(guiApp->colorCache().get(cit->second, false));
|
||||
@ -498,6 +498,7 @@ docstring GuiBox::dialogToParams() const
|
||||
else
|
||||
params.framecolor = "black";
|
||||
if (backgroundColorCO->isEnabled()) {
|
||||
// only if the framecolor is black the backgroundcolor has the entry "none"
|
||||
if (frameColorCO->currentText() != qt_("black"))
|
||||
params.backgroundcolor = fromqstr(color[backgroundColorCO->currentIndex() + 1].first);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user