From 8b98df145a70b3c083caca266441338367f49f92 Mon Sep 17 00:00:00 2001 From: mgrojo Date: Sun, 6 Dec 2020 20:01:09 +0100 Subject: [PATCH] Avoid type conversion warnings in Plot Dock --- src/PlotDock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PlotDock.cpp b/src/PlotDock.cpp index 27b6eaf6f..eeef8ea4e 100644 --- a/src/PlotDock.cpp +++ b/src/PlotDock.cpp @@ -299,7 +299,7 @@ void PlotDock::updatePlot(SqliteTableModel* model, BrowseDataTableSettings* sett // regain the model column index and the datatype // right now datatype is only important for X axis (Y is always numeric) int x = xitem->data(PlotColumnField, Qt::UserRole).toInt(); - int xtype = xitem->data(PlotColumnType, Qt::UserRole).toInt(); + unsigned int xtype = xitem->data(PlotColumnType, Qt::UserRole).toUInt(); ui->plotWidget->xAxis->setTickLabelRotation(0); @@ -644,7 +644,7 @@ void PlotDock::on_treePlotColumns_itemDoubleClicked(QTreeWidgetItem* item, int c // disable change updates, or we get unwanted redrawing and weird behavior ui->treePlotColumns->blockSignals(true); - int type = item->data(PlotColumnType, Qt::UserRole).toInt(); + unsigned int type = item->data(PlotColumnType, Qt::UserRole).toUInt(); for(size_t y_ind = 0; y_ind < 2; y_ind++) {