MCPcopy Create free account
hub / github.com/KDE/labplot / handleNegativeNumber

Method handleNegativeNumber

src/backend/worksheet/WorksheetElement.cpp:1162–1167  ·  view source on GitHub ↗

! * helper function replacing the hyphen with the minus sign in the localized string of the numerical value, * if this setting is active */

Source from the content-addressed store, hash-verified

1160 * if this setting is active
1161 */
1162void WorksheetElementPrivate::handleNegativeNumber(QString& value) {
1163 const auto group = Settings::settingsGeneral();
1164 const bool useHyphen = group.readEntry<bool>(QLatin1String("UseHyphen"), false);
1165 if (!useHyphen)
1166 value.replace(0, 1, QString::fromUtf8("−"));
1167}

Callers

nothing calls this directly

Calls 2

settingsGeneralFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected