mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Enabled failing on Qt deprecated errors.
This commit is contained in:
+1
-1
@@ -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})
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user