mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Revert "Complilation fix."
This reverts commit abf8208679
.
I'll properly re-commit in a minute.
This commit is contained in:
parent
af42a9d683
commit
01e7a10029
@ -105,10 +105,13 @@ static QList<ColorCode> colors()
|
||||
|
||||
namespace {
|
||||
|
||||
bool ColorSorter(ColorCode lhs, ColorCode rhs)
|
||||
struct ColorSorter
|
||||
{
|
||||
return support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
|
||||
}
|
||||
bool operator()(ColorCode lhs, ColorCode rhs) const {
|
||||
return
|
||||
support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace anon
|
||||
|
||||
@ -166,7 +169,7 @@ GuiBox::GuiBox(QWidget * parent) : InsetParamsWidget(parent)
|
||||
|
||||
// the background can be uncolored while the frame cannot
|
||||
color_codes_ = colors();
|
||||
qSort(color_codes_.begin(), color_codes_.end(), ColorSorter);
|
||||
sort(color_codes_.begin(), color_codes_.end(), ColorSorter());
|
||||
fillComboColor(backgroundColorCO, true);
|
||||
fillComboColor(frameColorCO, false);
|
||||
|
||||
|
@ -193,10 +193,13 @@ void fillComboColor(QComboBox * combo, QList<T> const & list)
|
||||
}
|
||||
|
||||
|
||||
bool ColorSorter(ColorCode lhs, ColorCode rhs)
|
||||
struct ColorSorter
|
||||
{
|
||||
return support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
|
||||
}
|
||||
bool operator()(ColorCode lhs, ColorCode rhs) const {
|
||||
return
|
||||
support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace anon
|
||||
|
||||
@ -227,7 +230,7 @@ GuiCharacter::GuiCharacter(GuiView & lv)
|
||||
size = sizeData();
|
||||
bar = barData();
|
||||
color = colorData();
|
||||
qSort(color.begin(), color.end(), ColorSorter);
|
||||
sort(color.begin(), color.end(), ColorSorter());
|
||||
|
||||
language = languageData();
|
||||
language.prepend(LanguagePair(qt_("Reset"), "reset"));
|
||||
|
Loading…
Reference in New Issue
Block a user