[apps/sequence] Personalize the button "add a function" for sequence app

Change-Id: Ie84757feec57a934c80573ad24b71e868c0d7b81
This commit is contained in:
Émilie Feral
2017-02-08 16:30:55 +01:00
parent 81b0f58fd8
commit 4ba14c8597
6 changed files with 10 additions and 15 deletions

View File

@@ -3,11 +3,10 @@
namespace Shared {
NewFunctionCell::NewFunctionCell() :
NewFunctionCell::NewFunctionCell(const char * text) :
EvenOddCell(),
m_pointerTextView(PointerTextView(KDText::FontSize::Large, nullptr, 0.5f, 0.5f))
m_pointerTextView(PointerTextView(KDText::FontSize::Large, text, 0.5f, 0.5f))
{
m_pointerTextView.setText(text());
}
void NewFunctionCell::reloadCell() {
@@ -28,8 +27,4 @@ void NewFunctionCell::layoutSubviews() {
m_pointerTextView.setFrame(bounds());
}
const char * NewFunctionCell::text() {
return "Ajouter une fonction";
}
}