[apps] Add angle unit preference in apps

Change-Id: I25eb760883d164563cb3059d73e8d1fff92ad6da
This commit is contained in:
Émilie Feral
2017-02-01 16:59:54 +01:00
parent e4d08ee685
commit 39dab5125c
12 changed files with 42 additions and 24 deletions

View File

@@ -59,7 +59,7 @@ void Calculation::setContent(const char * c, Context * context, Preferences * pr
if (m_output != nullptr) {
delete m_output;
}
m_output = m_input->evaluate(*context);
m_output = m_input->evaluate(*context, preferences->angleUnit());
if (m_outputLayout != nullptr) {
delete m_outputLayout;
}