Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 1224:d25f1f99c6fa
Minor debug
author | Chris Cannam |
---|---|
date | Thu, 26 Jan 2017 21:15:27 +0000 |
parents | efc7586de499 |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
1223:312f99a9f2aa | 1224:d25f1f99c6fa |
---|---|
802 #else | 802 #else |
803 baseEm = 15.0; | 803 baseEm = 15.0; |
804 #endif | 804 #endif |
805 double em = QFontMetrics(QFont()).height(); | 805 double em = QFontMetrics(QFont()).height(); |
806 ratio = em / baseEm; | 806 ratio = em / baseEm; |
807 | |
808 SVDEBUG << "ViewManager::scalePixelSize: ratio is " << ratio | |
809 << " (em = " << em << ")" << endl; | |
807 } | 810 } |
808 | 811 |
809 int scaled = int(pixels * ratio + 0.5); | 812 int scaled = int(pixels * ratio + 0.5); |
810 // cerr << "scaledSize: " << pixels << " -> " << scaled << " at ratio " << ratio << endl; | 813 // cerr << "scaledSize: " << pixels << " -> " << scaled << " at ratio " << ratio << endl; |
811 if (pixels != 0 && scaled == 0) scaled = 1; | 814 if (pixels != 0 && scaled == 0) scaled = 1; |