mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-18 11:45:04 -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:
@@ -273,7 +273,7 @@ void AudioFileProcessorWaveView::paintEvent(QPaintEvent * pe)
|
||||
p.fillRect(s_padding, s_padding, m_graph.width(), 14, g);
|
||||
|
||||
p.setPen(QColor(255, 255, 255));
|
||||
p.setFont(pointSize<8>(font()));
|
||||
p.setFont(pointSize(font(), 8));
|
||||
|
||||
QString length_text;
|
||||
const int length = m_sample->sampleDuration().count();
|
||||
|
||||
Reference in New Issue
Block a user