void MainWindow::onCurrentBookChanged()
{
+ TRACE;
setCurrentBook(Library::instance()->nowReading());
}
activateWindow();
#elif defined(Q_WS_MAEMO_5)
// FIXME: This is ugly.
- view->restoreLastBookmark();
+ // view->restoreLastBookmark();
#endif
progress->flash();
nextButton->flash();
void MainWindow::onPartLoadStart()
{
TRACE;
- Platform::showBusy(this, true);
+ Platform::instance()->showBusy(this, true);
}
void MainWindow::onPartLoadEnd(int index)
enableNext = true;
}
}
- Platform::showBusy(this, false);
+ Platform::instance()->showBusy(this, false);
}
void MainWindow::onAddBookmark(const QString ¬e)
{
TRACE;
view->addBookmark(note);
- Platform::information(tr("Bookmarked current position"), this);
+ Platform::instance()->information(tr("Bookmarked current position"), this);
}
void MainWindow::onGoToBookmark(int index)
{
Dyalog *aboutDialog = new Dyalog(this, false);
aboutDialog->setWindowTitle(tr("About Dorian"));
+ QString version = Platform::instance()->version();
QLabel *label = new QLabel(aboutDialog);
label->setTextFormat(Qt::RichText);
label->setOpenExternalLinks(true);
"Akos Polster <akos@pipacs.com><br>"
"Licensed under GNU General Public License, Version 3<br>"
"Source code:<br><a href='https://garage.maemo.org/projects/dorian/'>"
- "garage.maemo.org/projects/dorian</a>").arg(Platform::version()));
+ "garage.maemo.org/projects/dorian</a>").arg(version));
aboutDialog->addWidget(label);
aboutDialog->addStretch();
aboutDialog->show();