Skip to content
Browse files

Define "small font" size in pixels, not in points.

  • Loading branch information...
1 parent 64473a7 commit ed8ef71e6171258d26c8df7741d4a74ffe3137e0 @mcvsama committed Dec 23, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/haruhi/config/resources.cc
  2. +1 −1 src/haruhi/widgets/level_meter.cc
View
2 src/haruhi/config/resources.cc
@@ -33,7 +33,7 @@ small_font()
if (!sf_initialized)
{
sf = QApplication::font();
- sf.setPointSize (8);
+ sf.setPixelSize (8);
}
return sf;
View
2 src/haruhi/widgets/level_meter.cc
@@ -253,7 +253,7 @@ LevelMetersGroup::LevelMetersGroup (QWidget* parent, float lower_db, float upper
{
_peak_button = new QPushButton ("-inf dB", this);
_peak_button->setFont (Resources::small_font());
- _peak_button->setFixedHeight (2 * Resources::small_font().pointSize());
+ _peak_button->setFixedHeight (2 * Resources::small_font().pixelSize());
_peak_button->setFixedWidth (35);
_peak_button_bg = _peak_button->paletteBackgroundColor();
_peak_button_fg = _peak_button->paletteForegroundColor();

0 comments on commit ed8ef71

Please sign in to comment.
Something went wrong with that request. Please try again.