diff --git a/examples/gdpbarchart/widget.cpp b/examples/gdpbarchart/widget.cpp index 3281e96..0a3a84c 100644 --- a/examples/gdpbarchart/widget.cpp +++ b/examples/gdpbarchart/widget.cpp @@ -86,7 +86,7 @@ Widget::Widget(QWidget *parent) } // hide axis X labels - QChartAxis* axis = chartArea->axisX(); + //QChartAxis* axis = chartArea->axisX(); // axis-> // axis->setLabelsVisible(false); // newAxis.setLabelsOrientation(QChartAxis::LabelsOrientationSlide); diff --git a/examples/stackedbarchartdrilldown/main.cpp b/examples/stackedbarchartdrilldown/main.cpp index 31b0f4f..e409e68 100644 --- a/examples/stackedbarchartdrilldown/main.cpp +++ b/examples/stackedbarchartdrilldown/main.cpp @@ -55,6 +55,7 @@ public: public Q_SLOTS: void handleRightClick(QBarSet *barset, QString category) { + Q_UNUSED(barset) DrilldownBarSeries* series = static_cast (sender()); changeSeries(series->drilldownSeries(category)); } diff --git a/examples/tablemodelchart/customtablemodel.cpp b/examples/tablemodelchart/customtablemodel.cpp index bd21116..bb05ef6 100644 --- a/examples/tablemodelchart/customtablemodel.cpp +++ b/examples/tablemodelchart/customtablemodel.cpp @@ -19,11 +19,13 @@ CustomTableModel::CustomTableModel(QObject *parent) : int CustomTableModel::rowCount(const QModelIndex & parent) const { + Q_UNUSED(parent) return m_points.count(); } int CustomTableModel::columnCount(const QModelIndex & parent) const { + Q_UNUSED(parent) return 3; } @@ -63,7 +65,7 @@ QVariant CustomTableModel::data(const QModelIndex & index, int role) const case 2: return m_labels[index.row()]; default: - return QVariant(); + break; } } else if (role == Qt::EditRole) @@ -77,9 +79,10 @@ QVariant CustomTableModel::data(const QModelIndex & index, int role) const case 2: return m_labels[index.row()]; default: - return QVariant(); + break; } } + return QVariant(); } bool CustomTableModel::setData ( const QModelIndex & index, const QVariant & value, int role) @@ -115,6 +118,8 @@ Qt::ItemFlags CustomTableModel::flags ( const QModelIndex & index ) const bool CustomTableModel::insertRows ( int row, int count, const QModelIndex & parent) { + Q_UNUSED(parent) + if (row < 0) row = 0; beginInsertRows(QModelIndex(), row /*dataTable.count()*/, row + count - 1);