comparison view/View.h @ 1402:b0eeec95ab5b

Handle integer pixel scaling as well
author Chris Cannam
date Thu, 15 Nov 2018 14:18:26 +0000
parents 28075cc658c9
children a18e78b9c78b
comparison
equal deleted inserted replaced
1401:28075cc658c9 1402:b0eeec95ab5b
375 QSize getPaintSize() const { return getPaintRect().size(); } 375 QSize getPaintSize() const { return getPaintRect().size(); }
376 int getPaintWidth() const { return getPaintRect().width(); } 376 int getPaintWidth() const { return getPaintRect().width(); }
377 int getPaintHeight() const { return getPaintRect().height(); } 377 int getPaintHeight() const { return getPaintRect().height(); }
378 378
379 double scaleSize(double size) const; 379 double scaleSize(double size) const;
380 int scalePixelSize(int size) const;
380 double scalePenWidth(double width) const; 381 double scalePenWidth(double width) const;
381 QPen scalePen(QPen pen) const; 382 QPen scalePen(QPen pen) const;
382 383
383 typedef std::set<Model *> ModelSet; 384 typedef std::set<Model *> ModelSet;
384 ModelSet getModels(); 385 ModelSet getModels();