diff --git a/kcms/fonts/fonts.cpp b/kcms/fonts/fonts.cpp --- a/kcms/fonts/fonts.cpp +++ b/kcms/fonts/fonts.cpp @@ -465,6 +465,29 @@ return m_state != m_originalState; } +bool FontAASettings::State::operator==(const State& other) const +{ + if ( + exclude != other.exclude + || antiAliasing != other.antiAliasing + || dpi != other.dpi + || subPixel != other.subPixel + || hinting != other.hinting + ) { + return false; + } + + if (exclude && (excludeFrom != other.excludeFrom || excludeTo != other.excludeTo)) { + return false; + } + + return true; +} + +bool FontAASettings::State::operator!=(const State& other) const +{ + return !(*this == other); +} /**** KFonts ****/ @@ -612,29 +635,5 @@ return font; } -bool FontAASettings::State::operator==(const State& other) const -{ - if ( - exclude != other.exclude - || antiAliasing != other.antiAliasing - || dpi != other.dpi - || subPixel != other.subPixel - || hinting != other.hinting - ) { - return false; - } - - if (exclude && (excludeFrom != other.excludeFrom || excludeTo != other.excludeTo)) { - return false; - } - - return true; -} - -bool FontAASettings::State::operator!=(const State& other) const -{ - return !(*this == other); -} - #include "fonts.moc"