aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/history/historywindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-04 21:12:09 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-04 21:12:09 +0000
commit64a0861bc42b2667a562ce8fbf82081282241bbc (patch)
tree49dd06206b2ec9b728cef7168421c8fe54faf321 /src/plugins/General/history/historywindow.cpp
parent245027ffccb6dd722b1c928b0d53a62f095c466e (diff)
downloadqmmp-64a0861bc42b2667a562ce8fbf82081282241bbc.tar.gz
qmmp-64a0861bc42b2667a562ce8fbf82081282241bbc.tar.bz2
qmmp-64a0861bc42b2667a562ce8fbf82081282241bbc.zip
fixed qt 5.13 warnings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8770 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/history/historywindow.cpp')
-rw-r--r--src/plugins/General/history/historywindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/General/history/historywindow.cpp b/src/plugins/General/history/historywindow.cpp
index cbba39987..4c9ffacc9 100644
--- a/src/plugins/General/history/historywindow.cpp
+++ b/src/plugins/General/history/historywindow.cpp
@@ -125,8 +125,8 @@ void HistoryWindow::loadHistory()
m_ui->historyTreeWidget->topLevelItem(topLevelCount++)->setText(0, dateStr);
m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setFirstColumnSpanned(true);
m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setTextAlignment(0, Qt::AlignCenter);
- m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setBackgroundColor(0, bgColor);
- m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setTextColor(0, textColor);
+ m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setBackground(0, bgColor);
+ m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setForeground(0, textColor);
}
else if(m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->text(0) != dateStr)
{
@@ -134,8 +134,8 @@ void HistoryWindow::loadHistory()
m_ui->historyTreeWidget->topLevelItem(topLevelCount++)->setText(0, dateStr);
m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setFirstColumnSpanned(true);
m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setTextAlignment(0, Qt::AlignCenter);
- m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setBackgroundColor(0, bgColor);
- m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setTextColor(0, textColor);
+ m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setBackground(0, bgColor);
+ m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1)->setForeground(0, textColor);
}
QTreeWidgetItem *topLevelItem = m_ui->historyTreeWidget->topLevelItem(topLevelCount - 1);
@@ -200,8 +200,8 @@ void HistoryWindow::loadDistribution()
m_ui->distributionTreeWidget->topLevelItem(topLevelCount++)->setText(0, monthStr);
m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setFirstColumnSpanned(true);
m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setTextAlignment(0, Qt::AlignCenter);
- m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setBackgroundColor(0, bgColor);
- m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setTextColor(0, textColor);
+ m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setBackground(0, bgColor);
+ m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setForeground(0, textColor);
}
else if(m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->text(0) != monthStr)
{
@@ -209,8 +209,8 @@ void HistoryWindow::loadDistribution()
m_ui->distributionTreeWidget->topLevelItem(topLevelCount++)->setText(0, monthStr);
m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setFirstColumnSpanned(true);
m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setTextAlignment(0, Qt::AlignCenter);
- m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setBackgroundColor(0, bgColor);
- m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setTextColor(0, textColor);
+ m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setBackground(0, bgColor);
+ m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1)->setForeground(0, textColor);
}
QTreeWidgetItem *topLevelItem = m_ui->distributionTreeWidget->topLevelItem(topLevelCount - 1);