mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Removed deprecated functions.
This commit is contained in:
parent
eda0a705de
commit
6ae6fbade7
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue