mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-24 22:58:01 -04:00
Refactor gui_templates.h (#7159)
* remove the gui_templates header where functions not used * refactor and replace template with function argument * refactor: merge pointSizeF function with pointSize * removed template per michael's review * use std::max for more readability * remove the QDesktopWidget header * cleanup arguments and remove parentheses from return
This commit is contained in:
@@ -134,7 +134,7 @@ AudioFileProcessorView::AudioFileProcessorView(Instrument* instrument,
|
||||
// interpolation selector
|
||||
m_interpBox = new ComboBox(this);
|
||||
m_interpBox->setGeometry(142, 62, 82, ComboBox::DEFAULT_HEIGHT);
|
||||
m_interpBox->setFont(pointSize<8>(m_interpBox->font()));
|
||||
m_interpBox->setFont(pointSize(m_interpBox->font(), 8));
|
||||
|
||||
// wavegraph
|
||||
m_waveView = 0;
|
||||
@@ -228,7 +228,7 @@ void AudioFileProcessorView::paintEvent(QPaintEvent*)
|
||||
|
||||
int idx = a->sample().sampleFile().length();
|
||||
|
||||
p.setFont(pointSize<8>(font()));
|
||||
p.setFont(pointSize(font(), 8));
|
||||
|
||||
QFontMetrics fm(p.font());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user