#include <boost/foreach.hpp>
#include <QAction>
+#include <QApplication>
#include <QComboBox>
#include <QFormLayout>
#include <QLabel>
const double scale = _view->scale();
assert(scale > 0);
- double samplerate = _decoder_stack->get_samplerate();
+ double samplerate = _decoder_stack->samplerate();
// Show sample rate as 1Hz when it is unknown
if (samplerate == 0.0)
_decoder_stack->get_start_time()) / scale;
const double samples_per_pixel = samplerate * scale;
- const int h = (_text_size.height() * 5) / 4;
+ QFontMetrics m(QApplication::font());
+ const int h = (m.boundingRect(QRect(), 0, "Tg").height() * 5) / 4;
assert(_decoder_stack);
const QString err = _decoder_stack->error_message();