which is supposedly like a QChar... except that some methods like isUpper
were forgotten in the process.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33580
a592a061-630c-0410-9148-
cb99ea01b6c8
bool success = false;
// try capitals first
for (int i = 0; i < label.size(); ++i) {
- if (!label[i].isUpper())
+ QChar const ch = label[i];
+ if (!ch.isUpper())
continue;
- QString const ch = QString(label[i]);
if (!accelerators.contains(ch, Qt::CaseInsensitive)) {
label = label + toqstr("|") + ch;
accelerators.append(ch);