mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
word wrapping
This commit is contained in:
@@ -15,7 +15,22 @@ View * ReadBookController::view()
|
||||
|
||||
void ReadBookController::setBook(const External::Archive::File& file)
|
||||
{
|
||||
m_readerView.setText(reinterpret_cast<const char*>(file.data));
|
||||
m_readerView.setText(reinterpret_cast<const char*>(file.data), file.dataLength);
|
||||
}
|
||||
|
||||
bool ReadBookController::handleEvent(Ion::Events::Event event)
|
||||
{
|
||||
if(event == Ion::Events::Down)
|
||||
{
|
||||
m_readerView.nextPage();
|
||||
return true;
|
||||
}
|
||||
if(event == Ion::Events::Up)
|
||||
{
|
||||
m_readerView.previousPage();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user