Skip to content

Commit

Permalink
Merge pull request #5006 from konero/fixpanebuttonshdpi
Browse files Browse the repository at this point in the history
Fix pane buttons hit area on hdpi
  • Loading branch information
RodneyBaker authored Jul 10, 2023
2 parents 0826742 + e5901ec commit 4d08882
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion toonz/sources/toonz/pane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ TPanelTitleBarButton::TPanelTitleBarButton(QWidget *parent,
, m_buttonSet(0)
, m_id(0) {
updatePixmaps();
setFixedSize(m_onPixmap.size());
setFixedSize(m_onPixmap.size() / m_onPixmap.devicePixelRatio());
}

//-----------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions toonz/sources/toonz/pane.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ class TPanelTitleBar final : public QFrame {
void mousePressEvent(QMouseEvent *event) override;
void mouseDoubleClickEvent(QMouseEvent *) override;

QPixmap getPixmap(const QString &iconSVGName, bool rollover);

Q_PROPERTY(QColor TitleColor READ getTitleColor WRITE setTitleColor);
Q_PROPERTY(QColor ActiveTitleColor READ getActiveTitleColor WRITE
setActiveTitleColor);
Expand Down

0 comments on commit 4d08882

Please sign in to comment.