Skip to content

Commit

Permalink
QTableWidgetItem::setBackgroundColor is deprecated - adapt code
Browse files Browse the repository at this point in the history
  • Loading branch information
amtriathlon committed Jan 16, 2024
1 parent 4b40060 commit 894eb42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cloud/CloudDBChart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ CloudDBChartListDialog::updateCurrentPresets(int index, int count) {
newPxItem->setSizeHint(QSize(chartImageWidth, chartImageHeight));
newPxItem->setFlags(newPxItem->flags() & ~Qt::ItemIsEditable);
tableWidget->setItem(i, 0, newPxItem);
tableWidget->item(i,0)->setBackgroundColor(Qt::darkGray);
tableWidget->item(i,0)->setBackground(Qt::darkGray);
tableWidget->setRowHeight(i, chartImageHeight+20);

QString cellText = QString(tr("<h3>%1</h3><h4>Last Edited At: %2 - Creator: %3</h4>%4"))
Expand Down
2 changes: 1 addition & 1 deletion src/Cloud/CloudDBUserMetric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ CloudDBUserMetricListDialog::updateCurrentPresets(int index, int count) {
QTableWidgetItem *newItem = new QTableWidgetItem(preset.name);
newItem->setFlags(newItem->flags() & ~Qt::ItemIsEditable);
tableWidget->setItem(i, 0, newItem);
tableWidget->item(i,0)->setBackgroundColor(Qt::darkGray);
tableWidget->item(i,0)->setBackground(Qt::darkGray);
tableWidget->setRowHeight(i, 80*dpiYFactor);

QString cellText = QString(tr("%1<h4>Last Edited At: %2 - Creator: %3</h4>"))
Expand Down

0 comments on commit 894eb42

Please sign in to comment.