From 6f7b6978bd00ad17868d675ccc9cae2002c4c591 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 8 Jan 2014 00:26:25 +0100 Subject: [PATCH] FxMixerView: use LcdWidget for FX lines We only need to display numbers in LCD style, therefore use new LcdWidget class instead of LcdSpinBox. Fixes display problems introduced in commit f568a81c7a672e7882900f1ec489d. Thanks to Vesa for pointing out this issue. --- src/gui/FxMixerView.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/gui/FxMixerView.cpp b/src/gui/FxMixerView.cpp index ce3abb2f1..834a4dbcc 100644 --- a/src/gui/FxMixerView.cpp +++ b/src/gui/FxMixerView.cpp @@ -1,7 +1,7 @@ /* * FxMixerView.cpp - effect-mixer-view for LMMS * - * Copyright (c) 2008-2009 Tobias Doerffel + * Copyright (c) 2008-2014 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -38,7 +38,7 @@ #include "engine.h" #include "embed.h" #include "MainWindow.h" -#include "lcd_spinbox.h" +#include "LcdWidget.h" #include "gui_templates.h" #include "tooltip.h" #include "pixmap_button.h" @@ -165,10 +165,9 @@ FxMixerView::FxMixerView() : m->m_fxChannels[i]->m_name ); banks[bank]->addWidget( cv->m_fxLine ); } - lcdSpinBox * l = new lcdSpinBox( 2, cv->m_fxLine ); - l->model()->setRange( i, i ); - l->model()->setValue( i ); - l->move( 2, 4 ); + LcdWidget* l = new LcdWidget( 2, cv->m_fxLine ); + l->setValue( i ); + l->move( 3, 4 ); l->setMarginWidth( 1 );