restore menu checkbox behavior

pull/1/head
Michail Vourlakos 8 years ago
parent f28edd6d03
commit 78b4eb798a

@ -192,11 +192,9 @@ void LayoutConfigDialog::loadLayouts()
m_model->setItem(i - 1, 2, name);
m_model->setData(m_model->index(i - 1, 2), font, Qt::FontRole);
//QString menuText = layoutSets.showInMenu() ? QString::fromUtf8("\u2714") : "";
QStandardItem *menu = new QStandardItem();
menu->setTextAlignment(Qt::AlignCenter);
menu->setEditable(false);
menu->setSelectable(false);
menu->setSelectable(true);
menu->setCheckable(true);
menu->setCheckState(layoutSets.showInMenu() ? Qt::Checked : Qt::Unchecked);
m_model->setItem(i - 1, 3, menu);

Loading…
Cancel
Save