RTP dialogs: Fix: Coloring of QTreeWidgetItem do not work
This commit is contained in:
parent
dc521850e5
commit
bb4de1a046
|
@ -763,6 +763,7 @@ void RtpPlayerDialog::addSingleRtpStream(rtpstream_id_t *id)
|
|||
for (int col = 0; col < ui->streamTreeWidget->columnCount(); col++) {
|
||||
QBrush fgBrush = ti->foreground(col);
|
||||
fgBrush.setColor(audio_stream->color());
|
||||
fgBrush.setStyle(Qt::SolidPattern);
|
||||
ti->setForeground(col, fgBrush);
|
||||
}
|
||||
|
||||
|
|
|
@ -132,9 +132,11 @@ public:
|
|||
for (int i = 0; i < columnCount(); i++) {
|
||||
QBrush bgBrush = background(i);
|
||||
bgBrush.setColor(bgColor);
|
||||
bgBrush.setStyle(Qt::SolidPattern);
|
||||
setBackground(i, bgBrush);
|
||||
QBrush fgBrush = foreground(i);
|
||||
fgBrush.setColor(textColor);
|
||||
fgBrush.setStyle(Qt::SolidPattern);
|
||||
setForeground(i, fgBrush);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue