[app/external] External apps on home menu.

This commit is contained in:
M4x1m3
2020-05-04 14:17:19 +02:00
parent bb9f52b355
commit becada912a
12 changed files with 156 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ public:
KDSize minimalSizeForOptimalDisplay() const override;
private:
I18n::Message m_message;
const char* m_text = 0;
};
#endif

View File

@@ -9,11 +9,13 @@ MessageTextView::MessageTextView(const KDFont * font, I18n::Message message, flo
}
const char * MessageTextView::text() const {
if (m_text)
return m_text;
return I18n::translate(m_message);
}
void MessageTextView::setText(const char * text) {
assert(false);
m_text = text;
}
void MessageTextView::setMessage(I18n::Message message) {