Project

General

Profile

Bug #4626 » ChartsExample_test_20151215a.patch

Bruce Toll, 12/16/2015 03:37 AM

View differences:

examples/charts/ChartsExample.C
table->setModel(model);
table->setSortingEnabled(true);
table->setColumnResizeEnabled(true);
// table->setSelectionMode(ExtendedSelection);
table->setSelectionMode(SingleSelection);
table->setAlternatingRowColors(true);
table->setColumnAlignment(0, AlignCenter);
table->setHeaderAlignment(0, AlignCenter);
......
// additional button somewhere to confirm the edited value.
if (WApplication::instance()->environment().ajax()) {
table->resize(600, 20 + 5*22);
table->setEditTriggers(WAbstractItemView::SingleClicked);
table->setEditTriggers(WAbstractItemView::SelectedClicked);
} else {
table->resize(600, WLength::Auto);
table->setEditTriggers(WAbstractItemView::NoEditTrigger);
(1-1/3)