fixing bug in type

This commit is contained in:
Chris Cochrun 2022-04-22 14:29:11 -05:00
parent 5db946ef53
commit 13a592be51

View file

@ -518,7 +518,7 @@ int SongSqlModel::fontSize() const {
return m_fontSize; return m_fontSize;
} }
void SongSqlModel::setFontSize(const QString &fontSize) { void SongSqlModel::setFontSize(const int &fontSize) {
if (fontSize == m_fontSize) if (fontSize == m_fontSize)
return; return;
@ -529,7 +529,7 @@ void SongSqlModel::setFontSize(const QString &fontSize) {
} }
// This function is for updating the lyrics from outside the delegate // 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; qDebug() << "Row is " << row;
QSqlRecord rowdata = record(row); QSqlRecord rowdata = record(row);
qDebug() << rowdata; qDebug() << rowdata;