MCPcopy Create free account
hub / github.com/KDE/okular / parseZoomString

Function parseZoomString

part/pageview.cpp:3968–3974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3966}
3967
3968static double parseZoomString(QString z)
3969{
3970 // kdelibs4 sometimes adds accelerators to actions' text directly :(
3971 z.remove(QLatin1Char('&'));
3972 z.remove(QLatin1Char('%'));
3973 return QLocale().toDouble(z) / 100.0;
3974}
3975
3976static QString makePrettyZoomString(double value)
3977{

Callers 2

updateZoomMethod · 0.85
updateZoomTextMethod · 0.85

Calls 1

toDoubleMethod · 0.80

Tested by

no test coverage detected