mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove usermanual when building for Android
Our usermanual is based on webkit, and thats not supported in Qt for Android. We should probably replace it with a Android native webview somehow. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
42df3528a0
commit
605cff32a5
5 changed files with 17 additions and 4 deletions
|
@ -38,6 +38,9 @@
|
|||
#include "about.h"
|
||||
#include "printdialog.h"
|
||||
#include "divelogimportdialog.h"
|
||||
#ifndef NO_USERMANUAL
|
||||
#include "usermanual.h"
|
||||
#endif
|
||||
|
||||
MainWindow *MainWindow::m_Instance = NULL;
|
||||
|
||||
|
@ -85,6 +88,9 @@ MainWindow::MainWindow() : QMainWindow(),
|
|||
ui.layoutWidget->hide();
|
||||
ui.menuView->removeAction(ui.actionViewGlobe);
|
||||
#endif
|
||||
#ifdef NO_USERMANUAL
|
||||
ui.menuHelp->removeAction(ui.actionUserManual);
|
||||
#endif
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
@ -554,10 +560,12 @@ void MainWindow::on_actionAboutSubsurface_triggered()
|
|||
|
||||
void MainWindow::on_actionUserManual_triggered()
|
||||
{
|
||||
#ifndef NO_USERMANUAL
|
||||
if (!helpView) {
|
||||
helpView = new UserManual();
|
||||
}
|
||||
helpView->show();
|
||||
#endif
|
||||
}
|
||||
|
||||
QString MainWindow::filter()
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <QUrl>
|
||||
|
||||
#include "ui_mainwindow.h"
|
||||
#include "usermanual.h"
|
||||
|
||||
struct DiveList;
|
||||
class QSortFilterProxyModel;
|
||||
|
@ -156,7 +155,7 @@ private:
|
|||
Ui::MainWindow ui;
|
||||
QAction *actionNextDive;
|
||||
QAction *actionPreviousDive;
|
||||
UserManual *helpView;
|
||||
QMainWindow *helpView;
|
||||
QTreeView *yearlyStats;
|
||||
QAbstractItemModel *yearlyStatsModel;
|
||||
CurrentState state;
|
||||
|
|
|
@ -29,5 +29,4 @@ private:
|
|||
Ui::UserManual *ui;
|
||||
void search(QString, QWebPage::FindFlags);
|
||||
};
|
||||
|
||||
#endif // USERMANUAL_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue