From f5d4eb3190042fc151e4125c54685dfc06fd0a11 Mon Sep 17 00:00:00 2001 From: "Jan W. Krieger" Date: Tue, 11 Dec 2018 00:06:28 +0100 Subject: [PATCH] typo/format fix --- test/simpletest_filledgraphs/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/simpletest_filledgraphs/README.md b/test/simpletest_filledgraphs/README.md index e89b9402ab..18f6f720d0 100644 --- a/test/simpletest_filledgraphs/README.md +++ b/test/simpletest_filledgraphs/README.md @@ -20,19 +20,23 @@ And three columns with 256 entries each, which will be filled with the R-, G- an ``` In this example we will access the data in the internal datastore directly. This access is possible through objects of type JKQTPcolumn, which is a proxy to the data in one of the columns in a `JKQTdatastore`: + ```c++ JKQTPcolumn cG=ds->getColumn(columnG); JKQTPcolumn cR=ds->getColumn(columnR); JKQTPcolumn cB=ds->getColumn(columnB); -```c++ +``` In order to calculate the histograms, first all enries in the columns are set to 0: + ```c++ cR.setAll(0); cG.setAll(0); cB.setAll(0); ``` + Finally the histogram is calculated: + ```c++ QImage image(":/example.bmp"); for (int y=0; y