From cc80770a30f3dfa43b29e14f83bf47deb5b50a92 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 17 Jan 2014 09:57:00 +0200 Subject: Adjust selection in item removal and insert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements item 1) in QTRD-2645 Task-number: QTRD-2645 Change-Id: I5c1cec438089520592a3526e1ff6095cc30afd34 Reviewed-by: Tomi Korpipää --- tests/barstest/chart.cpp | 2 +- tests/barstest/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3