Removed deprecated functions.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user