Removed deprecated functions.

This commit is contained in:
Leonardo 2020-12-11 14:51:46 -08:00
parent eda0a705de
commit 6ae6fbade7
2 changed files with 5 additions and 1 deletions

View file

@ -212,7 +212,7 @@ void lcTimelineWidget::Update(bool Clear, bool UpdateItems)
QColor Color = palette().text().color();
if (Piece->IsHidden())
Color.setAlpha(128);
PieceItem->setTextColor(0, Color);
PieceItem->setForeground(0, Color);
}
PieceItem->setSelected(Piece->IsSelected());

View file

@ -28,7 +28,11 @@ public:
{
QFontMetrics FontMetrics(font());
#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
int Width = FontMetrics.horizontalAdvance(QLatin1Char('x')) * 10;
#else
int Width = FontMetrics.width(QLatin1Char('x')) * 10;
#endif
return QLineEdit::sizeHint() - QSize(Width, 0);
}