SpinSlider and ScrollSpinBox read-only support
PIVariantEdit - support for read-only for all types PIValueTreeEdit - drop Parent grouping, default now Groups, full grouping control, global read-only support, fix new label error
This commit is contained in:
@@ -23,11 +23,10 @@ MainWindow::MainWindow(QWidget * parent): EMainWindow(parent), Ui::MainWindow()
|
||||
auto mo = PIValueTreeEdit::staticMetaObject;
|
||||
auto me = mo.enumerator(mo.indexOfEnumerator("Grouping"));
|
||||
for (int i = 0; i < me.keyCount(); ++i) {
|
||||
if (me.value(i) == PIValueTreeEdit::Parent) continue;
|
||||
auto * a = ag->addAction(me.key(i));
|
||||
a->setCheckable(true);
|
||||
a->setData(me.value(i));
|
||||
if (me.value(i) == PIValueTreeEdit::Indent) a->setChecked(true);
|
||||
if (me.value(i) == PIValueTreeEdit::Groups) a->setChecked(true);
|
||||
}
|
||||
menuView->addActions(ag->actions());
|
||||
widget->setFullEditMode(actionFull_edit_mode->isChecked());
|
||||
@@ -100,3 +99,8 @@ QString MainWindow::loadFilter() {
|
||||
void MainWindow::on_actionFull_edit_mode_toggled(bool on) {
|
||||
widget->setFullEditMode(on);
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_actionRead_only_toggled(bool on) {
|
||||
widget->setReadOnly(on);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user