[escher] add methods to add text to buffer in textfield

Change-Id: I51388c7495ed8919d1f2ba48d645aee9476c5ed6
This commit is contained in:
Émilie Feral
2016-11-07 14:59:01 +01:00
parent 0743b57e5d
commit 2575e3226a
5 changed files with 54 additions and 24 deletions

View File

@@ -34,7 +34,7 @@ const char * InputViewController::title() const {
}
const char * InputViewController::textBody() {
return m_textFieldController.textField()->textBuffer();
return m_textFieldController.textField()->text();
}
void InputViewController::showInput() {
@@ -42,7 +42,7 @@ void InputViewController::showInput() {
}
void InputViewController::setTextBody(const char * text) {
m_textFieldController.textField()->setTextBuffer(text);
m_textFieldController.textField()->setText(text);
}
bool InputViewController::handleEvent(Ion::Events::Event event) {