Enabled failing on Qt deprecated errors.

This commit is contained in:
Ernie Pasveer
2025-04-05 10:02:58 -05:00
parent 1f62330311
commit 6d2c5ba065
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ if(UNIX AND NOT APPLE)
add_compile_options(-Wall -Wextra -Wunused-result -pedantic) # -Werror -Wdeprecated-copy
endif()
add_definitions(-DQT_DEPRECATED_WARNINGS)
add_definitions(-DQT_DISABLE_DEPRECATED_UP_TO=0x060300)
add_executable(${PROJECT_NAME} ${SYSTEM_TYPE} ${SOURCE_FILES})
+1 -4
View File
@@ -204,15 +204,12 @@ void SeerEditorConfigPage::handleFontSizeChanged (const QString& text) {
void SeerEditorConfigPage::handleFontChanged (const QFont& font) {
// Create a font database.
QFontDatabase fontDatabase;
// Clear the font size list.
QStringList sizes;
fontSizeComboBox->clear();
// Populate the font size list from the given font.
foreach (int points, fontDatabase.smoothSizes(font.family(), font.styleName())) {
foreach (int points, QFontDatabase::smoothSizes(font.family(), font.styleName())) {
sizes.append(QString::number(points));
}