Skip to content

Commit

Permalink
Change faceset picker preview size
Browse files Browse the repository at this point in the history
The preview of the faceset picker is now always 196x196
(Faceset picture size plus view border size).
  • Loading branch information
rueter37 committed Dec 7, 2021
1 parent c58b3a5 commit d5e847c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/picker/picker_faceset_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ void PickerFacesetWidget::clicked(const QPointF& pos) {

void PickerFacesetWidget::imageChanged(QPixmap image) {
if (!m_pixmap) {
m_view->setMinimumSize(196, 196);
m_view->setMaximumSize(196, 196);
m_pixmap = new QGraphicsPixmapItem(image);
}

Expand Down

0 comments on commit d5e847c

Please sign in to comment.