summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/boxplottester/mainwidget.cpp37
-rw-r--r--tests/manual/boxplottester/mainwidget.h6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml7
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml6
-rw-r--r--tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml6
13 files changed, 110 insertions, 0 deletions
diff --git a/tests/manual/boxplottester/mainwidget.cpp b/tests/manual/boxplottester/mainwidget.cpp
index 784512d3..81a05f67 100644
--- a/tests/manual/boxplottester/mainwidget.cpp
+++ b/tests/manual/boxplottester/mainwidget.cpp
@@ -250,8 +250,15 @@ void MainWidget::addSeries()
m_series[m_seriesCount]->setName("Box & Whiskers");
connect(m_series[m_seriesCount], SIGNAL(clicked(QBoxSet*)), this, SLOT(boxClicked(QBoxSet*)));
+ connect(m_series[m_seriesCount], SIGNAL(pressed(QBoxSet*)), this, SLOT(boxPressed(QBoxSet*)));
+ connect(m_series[m_seriesCount], SIGNAL(released(QBoxSet*)), this, SLOT(boxReleased(QBoxSet*)));
+ connect(m_series[m_seriesCount], SIGNAL(doubleClicked(QBoxSet*)),
+ this, SLOT(boxDoubleClicked(QBoxSet*)));
connect(m_series[m_seriesCount], SIGNAL(hovered(bool, QBoxSet*)), this, SLOT(boxHovered(bool, QBoxSet*)));
connect(set1, SIGNAL(clicked()), this, SLOT(singleBoxClicked()));
+ connect(set1, SIGNAL(pressed()), this, SLOT(singleBoxPressed()));
+ connect(set1, SIGNAL(released()), this, SLOT(singleBoxReleased()));
+ connect(set1, SIGNAL(doubleClicked()), this, SLOT(singleBoxDoubleClicked()));
connect(set2, SIGNAL(hovered(bool)), this, SLOT(singleBoxHovered(bool)));
m_series[m_seriesCount]->setBoxOutlineVisible(m_boxOutlined->checkState());
@@ -453,11 +460,41 @@ void MainWidget::boxHovered(bool state, QBoxSet *set)
qDebug() << "box median " << set->at(QBoxSet::Median) << " hover ended";
}
+void MainWidget::boxPressed(QBoxSet *set)
+{
+ qDebug() << "boxPressed, median = " << set->at(QBoxSet::Median);
+}
+
+void MainWidget::boxReleased(QBoxSet *set)
+{
+ qDebug() << "boxReleased, median = " << set->at(QBoxSet::Median);
+}
+
+void MainWidget::boxDoubleClicked(QBoxSet *set)
+{
+ qDebug() << "boxDoubleClicked, median = " << set->at(QBoxSet::Median);
+}
+
void MainWidget::singleBoxClicked()
{
qDebug() << "singleBoxClicked";
}
+void MainWidget::singleBoxPressed()
+{
+ qDebug() << "singleBoxPressed";
+}
+
+void MainWidget::singleBoxReleased()
+{
+ qDebug() << "singleBoxReleased";
+}
+
+void MainWidget::singleBoxDoubleClicked()
+{
+ qDebug() << "singleBoxDoubleClicked";
+}
+
void MainWidget::singleBoxHovered(bool state)
{
if (state)
diff --git a/tests/manual/boxplottester/mainwidget.h b/tests/manual/boxplottester/mainwidget.h
index cbb2cd38..00f835bf 100644
--- a/tests/manual/boxplottester/mainwidget.h
+++ b/tests/manual/boxplottester/mainwidget.h
@@ -66,8 +66,14 @@ private slots:
void changeChartTheme(int themeIndex);
void boxClicked(QBoxSet *set);
void boxHovered(bool state, QBoxSet *set);
+ void boxPressed(QBoxSet *set);
+ void boxReleased(QBoxSet *set);
+ void boxDoubleClicked(QBoxSet *set);
void singleBoxClicked();
void singleBoxHovered(bool state);
+ void singleBoxPressed();
+ void singleBoxReleased();
+ void singleBoxDoubleClicked();
void changePen();
void antialiasingToggled(bool);
void boxOutlineToggled(bool);
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
index 069e17de..d94f8a2e 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
@@ -81,6 +81,9 @@ ChartView {
+ font.family);
onPointLabelsColorChanged: console.log(name + ".onPointLabelsColorChanged: "
+ color);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
AreaSeries {
@@ -107,5 +110,8 @@ ChartView {
onSelected: console.log(name + ".onSelected");
onColorChanged: console.log(name + ".onColorChanged: " + color);
onBorderColorChanged: console.log(name + ".onBorderColorChanged: " + borderColor);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
}
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml
index ad088646..45bd494a 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/BarChart.qml
@@ -51,6 +51,10 @@ ChartView {
onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count);
onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count);
onValueChanged: console.log("barset.onValuesChanged: " + index);
+ onPressed: console.log("barset.onPressed: " + index);
+ onReleased: console.log("barset.onReleased: " + index);
+ onDoubleClicked: console.log("barset.onDoubleClicked: " + index);
+
}
BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
@@ -65,6 +69,9 @@ ChartView {
onCountChanged: console.log("barSeries.onCountChanged: " + count);
onLabelsFormatChanged: console.log("barSeries.onLabelsFormatChanged: " + format);
onLabelsPositionChanged: console.log("barSeries.onLabelsPositionChanged: " + series.labelsPosition);
+ onPressed: console.log("barSeries.onPressed: " + barset + " " + index);
+ onReleased: console.log("barSeries.onReleased: " + barset + " " + index);
+ onDoubleClicked: console.log("barSeries.onDoubleClicked: " + barset + " " + index);
function changeLabelsPosition() {
if (labelsPosition === BarSeries.LabelsCenter)
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml
index aedb26cb..278d2964 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalBarChart.qml
@@ -50,6 +50,9 @@ ChartView {
onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count);
onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count);
onValueChanged: console.log("barset.onValuesChanged: " + index);
+ onPressed: console.log("barset.onPressed: " + index);
+ onReleased: console.log("barset.onReleased: " + index);
+ onDoubleClicked: console.log("barset.onDoubleClicked: " + index);
}
BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
@@ -66,6 +69,9 @@ ChartView {
+ format);
onLabelsPositionChanged: console.log("horizontalBarSeries.onLabelsPositionChanged: "
+ series.labelsPosition);
+ onPressed: console.log("horizontalBarSeries.onPressed: " + barset + " " + index);
+ onReleased: console.log("horizontalBarSeries.onReleased: " + barset + " " + index);
+ onDoubleClicked: console.log("horizontalBarSeries.onDoubleClicked: " + barset + " " + index);
function changeLabelsPosition() {
if (labelsPosition === BarSeries.LabelsCenter)
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml
index c0d1b443..eab84f71 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalPercentBarChart.qml
@@ -50,6 +50,9 @@ ChartView {
onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count);
onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count);
onValueChanged: console.log("barset.onValuesChanged: " + index);
+ onPressed: console.log("barset.onPressed: " + index);
+ onReleased: console.log("barset.onReleased: " + index);
+ onDoubleClicked: console.log("barset.onDoubleClicked: " + index);
}
BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
@@ -68,6 +71,9 @@ ChartView {
onLabelsPositionChanged: console.log(
"horizontalPercentBarSeries.onLabelsPositionChanged: "
+ series.labelsPosition);
+ onPressed: console.log("horizontalPercentBarSeries.onPressed: " + barset + " " + index);
+ onReleased: console.log("horizontalPercentBarSeries.onReleased: " + barset + " " + index);
+ onDoubleClicked: console.log("horizontalPercentBarSeries.onDoubleClicked: " + barset + " " + index);
function changeLabelsPosition() {
if (labelsPosition === BarSeries.LabelsCenter)
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml
index 3b94e89d..ab79dc5a 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/HorizontalStackedBarChart.qml
@@ -50,6 +50,9 @@ ChartView {
onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count);
onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count);
onValueChanged: console.log("barset.onValuesChanged: " + index);
+ onPressed: console.log("barset.onPressed: " + index);
+ onReleased: console.log("barset.onReleased: " + index);
+ onDoubleClicked: console.log("barset.onDoubleClicked: " + index);
}
BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
@@ -68,6 +71,9 @@ ChartView {
onLabelsPositionChanged: console.log(
"horizontalStackedBarSeries.onLabelsPositionChanged: "
+ series.labelsPosition);
+ onPressed: console.log("horizontalStackedBarSeries.onPressed: " + barset + " " + index);
+ onReleased: console.log("horizontalStackedBarSeries.onReleased: " + barset + " " + index);
+ onDoubleClicked: console.log("horizontalStackedBarSeries.onDoubleClicked: " + barset + " " + index);
function changeLabelsPosition() {
if (labelsPosition === BarSeries.LabelsCenter)
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml
index de3134a8..6e16918a 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/LineChart.qml
@@ -62,6 +62,9 @@ ChartView {
+ font.family);
onPointLabelsColorChanged: console.log("lineSeries.onPointLabelsColorChanged: "
+ color);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
LineSeries {
@@ -74,5 +77,8 @@ ChartView {
XYPoint { x: 4.1; y: 2.3 }
onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y);
onHovered: console.log(name + ".onHovered: " + point.x + ", " + point.y);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
}
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml
index 74c9b88f..c595873f 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PercentBarChart.qml
@@ -51,6 +51,9 @@ ChartView {
onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count);
onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count);
onValueChanged: console.log("barset.onValuesChanged: " + index);
+ onPressed: console.log("barset.onPressed: " + index);
+ onReleased: console.log("barset.onReleased: " + index);
+ onDoubleClicked: console.log("barset.onDoubleClicked: " + index);
}
BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
@@ -67,6 +70,9 @@ ChartView {
+ format);
onLabelsPositionChanged: console.log("percentBarSeries.onLabelsPositionChanged: "
+ series.labelsPosition);
+ onPressed: console.log("percentBarSeries.onPressed: " + barset + " " + index);
+ onReleased: console.log("percentBarSeries.onReleased: " + barset + " " + index);
+ onDoubleClicked: console.log("percentBarSeries.onDoubleClicked: " + barset + " " + index);
function changeLabelsPosition() {
if (labelsPosition === BarSeries.LabelsCenter)
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml
index 37a321ae..675ae3ee 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/PieChart.qml
@@ -47,6 +47,9 @@ ChartView {
onAngleSpanChanged: console.log("slice.onAngleSpanChanged: " + angleSpan);
onClicked: console.log("slice.onClicked: " + label);
onHovered: console.log("slice.onHovered: " + state);
+ onPressed: console.log("slice.onPressed: " + label);
+ onReleased: console.log("slice.onReleased: " + label);
+ onDoubleClicked: console.log("slice.onDoubleClicked: " + label);
}
PieSlice { label: "slice2"; value: 22 }
PieSlice { label: "slice3"; value: 33 }
@@ -63,5 +66,8 @@ ChartView {
onSliceRemoved: console.log("pieSeries.onSliceRemoved: " + slice.label);
onCountChanged: console.log("pieSeries.onCountChanged: " + count);
onSumChanged: console.log("pieSeries.onSumChanged: " + sum);
+ onPressed: console.log("pieSeries.onPressed: " + slice.label);
+ onReleased: console.log("pieSeries.onReleased: " + slice.label);
+ onDoubleClicked: console.log("pieSeries.onDoubleClicked: " + slice.label);
}
}
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
index d531ac32..2b815530 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/ScatterChart.qml
@@ -59,6 +59,9 @@ ChartView {
+ font.family);
onPointLabelsColorChanged: console.log("lineSeries.onPointLabelsColorChanged: "
+ color);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
ScatterSeries {
@@ -71,5 +74,8 @@ ChartView {
XYPoint { x: 2.67; y: 2.65 }
onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y);
onHovered: console.log(name + ".onHovered: " + point.x + ", " + point.y);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
}
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml
index 3a182d19..fd78a449 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/SplineChart.qml
@@ -61,6 +61,9 @@ ChartView {
+ font.family);
onPointLabelsColorChanged: console.log("splineSeries.onPointLabelsColorChanged: "
+ color);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
SplineSeries {
@@ -73,5 +76,8 @@ ChartView {
XYPoint { x: 4.1; y: 2.3 }
onClicked: console.log(name + ".onClicked: " + point.x + ", " + point.y);
onHovered: console.log(name + ".onHovered: " + point.x + ", " + point.y);
+ onPressed: console.log(name + ".onPressed: " + point.x + ", " + point.y);
+ onReleased: console.log(name + ".onReleased: " + point.x + ", " + point.y);
+ onDoubleClicked: console.log(name + ".onDoubleClicked: " + point.x + ", " + point.y);
}
}
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml
index a59f0e12..aff78367 100644
--- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml
+++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/StackedBarChart.qml
@@ -50,6 +50,9 @@ ChartView {
onValuesAdded: console.log("barset.onValuesAdded: " + index + ", " + count);
onValuesRemoved: console.log("barset.onValuesRemoved: " + index + ", " + count);
onValueChanged: console.log("barset.onValuesChanged: " + index);
+ onPressed: console.log("barset.onPressed: " + index);
+ onReleased: console.log("barset.onReleased: " + index);
+ onDoubleClicked: console.log("barset.onDoubleClicked: " + index);
}
BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
@@ -66,6 +69,9 @@ ChartView {
+ format);
onLabelsPositionChanged: console.log("stackedBarSeries.onLabelsPositionChanged: "
+ series.labelsPosition);
+ onPressed: console.log("stackedBarSeries.onPressed: " + barset + " " + index);
+ onReleased: console.log("stackedBarSeries.onReleased: " + barset + " " + index);
+ onDoubleClicked: console.log("stackedBarSeries.onDoubleClicked: " + barset + " " + index);
function changeLabelsPosition() {
if (labelsPosition === BarSeries.LabelsCenter)