Skip to content

Commit

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

void PickerCharsetWidget::imageChanged(QPixmap image) {
if (!m_pixmap) {
m_view->setMinimumSize(196, 132);
m_view->setMaximumSize(196, 132);
m_view->scale(2.0, 2.0);
m_pixmap = new QGraphicsPixmapItem();
}
Expand Down

0 comments on commit 07e476b

Please sign in to comment.