summaryrefslogtreecommitdiffstats
path: root/scene/resources/label_settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/label_settings.cpp')
-rw-r--r--scene/resources/label_settings.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/scene/resources/label_settings.cpp b/scene/resources/label_settings.cpp
index 37912df921..9a530fb680 100644
--- a/scene/resources/label_settings.cpp
+++ b/scene/resources/label_settings.cpp
@@ -30,8 +30,6 @@
#include "label_settings.h"
-#include "core/core_string_names.h"
-
void LabelSettings::_font_changed() {
emit_changed();
}
@@ -95,11 +93,11 @@ real_t LabelSettings::get_line_spacing() const {
void LabelSettings::set_font(const Ref<Font> &p_font) {
if (font != p_font) {
if (font.is_valid()) {
- font->disconnect(CoreStringNames::get_singleton()->changed, callable_mp(this, &LabelSettings::_font_changed));
+ font->disconnect_changed(callable_mp(this, &LabelSettings::_font_changed));
}
font = p_font;
if (font.is_valid()) {
- font->connect(CoreStringNames::get_singleton()->changed, callable_mp(this, &LabelSettings::_font_changed), CONNECT_REFERENCE_COUNTED);
+ font->connect_changed(callable_mp(this, &LabelSettings::_font_changed), CONNECT_REFERENCE_COUNTED);
}
emit_changed();
}