Skip to content

Commit

Permalink
Update timelinewidget.cpp
Browse files Browse the repository at this point in the history
HiDPI fix.
  • Loading branch information
rodlie committed Aug 2, 2024
1 parent f915767 commit 945df56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/GUI/timelinewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <QToolButton>
#include <QStackedLayout>
#include <QDesktopWidget>

#include "timelinewidget.h"
#include "widgets/framescrollbar.h"
Expand Down Expand Up @@ -249,7 +250,10 @@ TimelineWidget::TimelineWidget(Document &document,
mFrameScrollBar = new FrameScrollBar(1, 1, false, false, false, this);
mFrameScrollBar->setSizePolicy(QSizePolicy::Minimum,
QSizePolicy::Preferred);
mFrameScrollBar->setFixedHeight(40);

const qreal dpi = QApplication::desktop()->logicalDpiX() / 96.0;
mFrameScrollBar->setFixedHeight(40 * dpi);

// connect(MemoryHandler::sGetInstance(), &MemoryHandler::memoryFreed,
// frameScrollBar,
// qOverload<>(&FrameScrollBar::update));
Expand Down

0 comments on commit 945df56

Please sign in to comment.