Bug #4626 » ChartsExample_test_20151215a.patch
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);
|