From 13a592be51dd3aa09dc7830e8bf4d4d4c6f33994 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 22 Apr 2022 14:29:11 -0500 Subject: [PATCH] fixing bug in type --- src/songsqlmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/songsqlmodel.cpp b/src/songsqlmodel.cpp index 8717965..9408d8b 100644 --- a/src/songsqlmodel.cpp +++ b/src/songsqlmodel.cpp @@ -518,7 +518,7 @@ int SongSqlModel::fontSize() const { return m_fontSize; } -void SongSqlModel::setFontSize(const QString &fontSize) { +void SongSqlModel::setFontSize(const int &fontSize) { if (fontSize == m_fontSize) return; @@ -529,7 +529,7 @@ void SongSqlModel::setFontSize(const QString &fontSize) { } // This function is for updating the lyrics from outside the delegate -void SongSqlModel::updateFontSize(const int &row, const QString &fontSize) { +void SongSqlModel::updateFontSize(const int &row, const int &fontSize) { qDebug() << "Row is " << row; QSqlRecord rowdata = record(row); qDebug() << rowdata;