Skip to content

Commit

Permalink
Avoid type conversion warnings in Plot Dock
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrojo committed Dec 6, 2020
1 parent 7d04102 commit 8b98df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PlotDock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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++)
{
Expand Down

0 comments on commit 8b98df1

Please sign in to comment.