summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-01-17 09:57:00 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-01-17 10:09:45 +0200
commitcc80770a30f3dfa43b29e14f83bf47deb5b50a92 (patch)
tree205c608d650f8917354c2cc8da1953f6b2d6f762 /tests
parentb83dfb2537720492ebd62dfc9733035d5560dddd (diff)
Adjust selection in item removal and insert
Implements item 1) in QTRD-2645 Task-number: QTRD-2645 Change-Id: I5c1cec438089520592a3526e1ff6095cc30afd34 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/barstest/chart.cpp2
-rw-r--r--tests/barstest/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/barstest/chart.cpp b/tests/barstest/chart.cpp
index cbae8a6c..7f049645 100644
--- a/tests/barstest/chart.cpp
+++ b/tests/barstest/chart.cpp
@@ -543,7 +543,7 @@ void GraphModifier::removeRows()
// TODO Needs to be changed to account for data window offset once it is implemented.
int row = m_selectedBar.x();
if (row >= 0) {
- int startRow = qMax(row - 2, 0);
+ int startRow = qMax(row - 3, 0);
m_genericData->dataProxy()->removeRows(startRow, 3);
}
}
diff --git a/tests/barstest/main.cpp b/tests/barstest/main.cpp
index f582301b..a0f9d783 100644
--- a/tests/barstest/main.cpp
+++ b/tests/barstest/main.cpp
@@ -97,7 +97,7 @@ int main(int argc, char **argv)
removeRowButton->setEnabled(false);
QPushButton *removeRowsButton = new QPushButton(widget);
- removeRowsButton->setText(QStringLiteral("Remove three rows from selected"));
+ removeRowsButton->setText(QStringLiteral("Remove three rows before selected"));
removeRowsButton->setEnabled(false);
QPushButton *massiveArrayButton = new QPushButton(widget);