mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Added preview indicator for synth parts.
This commit is contained in:
@@ -436,6 +436,14 @@ void lcPartSelectionListModel::DrawPreview(int InfoIndex)
|
||||
|
||||
QImage Image = mView->GetRenderFramebufferImage().convertToFormat(QImage::Format_ARGB32);
|
||||
|
||||
if (Info->GetSynthInfo())
|
||||
{
|
||||
QPainter Painter(&Image);
|
||||
QImage Icon = QImage(":/resources/flexible.png");
|
||||
Painter.drawImage(QPoint(0, 0), Icon);
|
||||
Painter.end();
|
||||
}
|
||||
|
||||
mParts[InfoIndex].second = QPixmap::fromImage(Image).scaled(mIconSize, mIconSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||
|
||||
lcGetPiecesLibrary()->ReleasePieceInfo(Info);
|
||||
|
||||
@@ -135,5 +135,6 @@
|
||||
<file>resources/shaders/unlit_view_sphere_ps.glsl</file>
|
||||
<file>resources/shaders/unlit_view_sphere_vs.glsl</file>
|
||||
<file>resources/gear_in.png</file>
|
||||
<file>resources/flexible.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 444 B |
Reference in New Issue
Block a user