Mercurial > hg > svgui
diff view/View.h @ 1401:28075cc658c9
Scale pen for retina display on macOS as well as for hidpi display elsewhere
| author | Chris Cannam | 
|---|---|
| date | Thu, 15 Nov 2018 14:04:32 +0000 | 
| parents | 694004228ab7 | 
| children | b0eeec95ab5b | 
line wrap: on
 line diff
--- a/view/View.h Thu Nov 15 13:06:38 2018 +0000 +++ b/view/View.h Thu Nov 15 14:04:32 2018 +0000 @@ -376,6 +376,10 @@ int getPaintWidth() const { return getPaintRect().width(); } int getPaintHeight() const { return getPaintRect().height(); } + double scaleSize(double size) const; + double scalePenWidth(double width) const; + QPen scalePen(QPen pen) const; + typedef std::set<Model *> ModelSet; ModelSet getModels();
