From c0ba493b0754e789b9feb9f199665fa63bfa85b4 2012-08-30 12:53:43 From: Marek Rosa Date: 2012-08-30 12:53:43 Subject: [PATCH] Fix: wrong signal emitted in pie and bar model mappers --- diff --git a/src/barchart/qhbarmodelmapper.cpp b/src/barchart/qhbarmodelmapper.cpp index 84d68dc..28580b1 100644 --- a/src/barchart/qhbarmodelmapper.cpp +++ b/src/barchart/qhbarmodelmapper.cpp @@ -240,7 +240,7 @@ void QHBarModelMapper::setColumnCount(int columnCount) { if (columnCount != count()) { QBarModelMapper::setCount(columnCount); - emit firstColumnChanged(); + emit columnCountChanged(); } } diff --git a/src/barchart/qvbarmodelmapper.cpp b/src/barchart/qvbarmodelmapper.cpp index d938d1f..7dae73f 100644 --- a/src/barchart/qvbarmodelmapper.cpp +++ b/src/barchart/qvbarmodelmapper.cpp @@ -239,7 +239,7 @@ void QVBarModelMapper::setRowCount(int rowCount) { if (rowCount != count()) { QBarModelMapper::setCount(rowCount); - emit firstRowChanged(); + emit rowCountChanged(); } } diff --git a/src/piechart/qhpiemodelmapper.cpp b/src/piechart/qhpiemodelmapper.cpp index 22827ef..79edb97 100644 --- a/src/piechart/qhpiemodelmapper.cpp +++ b/src/piechart/qhpiemodelmapper.cpp @@ -248,7 +248,7 @@ void QHPieModelMapper::setColumnCount(int columnCount) { if (columnCount != count()) { setCount(columnCount); - emit firstColumnChanged(); + emit columnCountChanged(); } } diff --git a/src/piechart/qvpiemodelmapper.cpp b/src/piechart/qvpiemodelmapper.cpp index ca93d83..8afccc1 100644 --- a/src/piechart/qvpiemodelmapper.cpp +++ b/src/piechart/qvpiemodelmapper.cpp @@ -251,7 +251,7 @@ void QVPieModelMapper::setRowCount(int rowCount) { if (rowCount != count()) { setCount(rowCount); - emit firstRowChanged(); + emit rowCountChanged(); } }