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:
Rossmaxx
2024-03-27 18:29:27 +05:30
committed by GitHub
parent a41da81554
commit 286d15724a
47 changed files with 77 additions and 106 deletions

View File

@@ -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();