#include <QtGui>
#ifdef Q_WS_MAEMO_5
-# include <QtMaemo5/QMaemo5InformationBox>
# include <QtDBus>
# include <QtGui/QX11Info>
# include <X11/Xlib.h>
view->restoreLastBookmark();
#endif
progress->flash();
- nextButton->flash(1500);
- previousButton->flash(1500);
+ nextButton->flash();
+ previousButton->flash();
}
void MainWindow::showBig()
fullScreenWindow->activateWindow();
#endif
progress->flash();
- nextButton->flash(1500);
- previousButton->flash(1500);
+ nextButton->flash();
+ previousButton->flash();
}
void MainWindow::setCurrentBook(const QModelIndex ¤t)
grabZoomKeys(value);
fullScreenWindow->grabZoomKeys(value);
}
+#elif defined Q_OS_SYMBIAN
+ if (key == "usevolumekeys") {
+ bool value = Settings::instance()->value(key).toBool();
+ qDebug() << "MainWindow::onSettingsChanged: usevolumekeys" << value;
+ grabZoomKeys(value);
+ fullScreenWindow->grabZoomKeys(value);
+ }
#else
Q_UNUSED(key);
#endif // Q_WS_MAEMO_5
{
TRACE;
view->addBookmark(note);
+ Platform::information(tr("Bookmarked current position"), this);
}
void MainWindow::onGoToBookmark(int index)
Book *book = Library::instance()->book(mCurrent);
if (book) {
- int partIndex = book->partFromChapter(index);
+ QString fragment;
+ int partIndex = book->partFromChapter(index, fragment);
if (partIndex != -1) {
- view->goToBookmark(Book::Bookmark(partIndex, 0));
+ view->goToPart(partIndex, fragment);
}
}
}
toolBar->height(), TranslucentButton::pixels, TranslucentButton::pixels);
#endif // Q_WS_MAEMO_5
qDebug() << "previousButton geometry" << previousButton->geometry();
- previousButton->flash(1500);
- nextButton->flash(1500);
+ previousButton->flash();
+ nextButton->flash();
QMainWindow::resizeEvent(e);
}
label->setText(tr("<b>Dorian %1</b><br><br>Copyright © 2010 "
"Akos Polster <akos@pipacs.com><br>"
"Licensed under GNU General Public License, Version 3<br>"
- "Source code: <a href='https://garage.maemo.org/projects/dorian/'>"
+ "Source code:<br><a href='https://garage.maemo.org/projects/dorian/'>"
"garage.maemo.org/projects/dorian</a>").arg(Platform::version()));
aboutDialog->addWidget(label);
aboutDialog->addStretch();
void MainWindow::goToNextPage()
{
- nextButton->flash(1500);
- previousButton->flash(1500);
+ nextButton->flash();
+ previousButton->flash();
view->goNextPage();
}
void MainWindow::goToPreviousPage()
{
- nextButton->flash(1500);
- previousButton->flash(1500);
+ nextButton->flash();
+ previousButton->flash();
view->goPreviousPage();
}