mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Profile: don't compile the desktop specific parts on mobile
When building subsurface-mobile we won't be using all these UI elements, so let's not build them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
662e2a0ff3
commit
f3232b1a6f
2 changed files with 35 additions and 5 deletions
|
|
@ -81,7 +81,9 @@ public:
|
|||
bool isAddOrPlanner();
|
||||
double getFontPrintScale();
|
||||
void setFontPrintScale(double scale);
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
void clearHandlers();
|
||||
#endif
|
||||
void recalcCeiling();
|
||||
void setToolTipVisibile(bool visible);
|
||||
State currentState;
|
||||
|
|
@ -103,6 +105,10 @@ slots: // Necessary to call from QAction's signals.
|
|||
void setProfileState();
|
||||
void setPlanState();
|
||||
void setAddState();
|
||||
void plotPictures();
|
||||
void setReplot(bool state);
|
||||
void replot(dive *d = 0);
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
void changeGas();
|
||||
void addSetpointChange();
|
||||
void addBookmark();
|
||||
|
|
@ -114,9 +120,6 @@ slots: // Necessary to call from QAction's signals.
|
|||
void deleteCurrentDC();
|
||||
void pointInserted(const QModelIndex &parent, int start, int end);
|
||||
void pointsRemoved(const QModelIndex &, int start, int end);
|
||||
void plotPictures();
|
||||
void setReplot(bool state);
|
||||
void replot(dive *d = 0);
|
||||
|
||||
/* this is called for every move on the handlers. maybe we can speed up this a bit? */
|
||||
void recreatePlannedDive();
|
||||
|
|
@ -131,13 +134,16 @@ slots: // Necessary to call from QAction's signals.
|
|||
|
||||
void divePlannerHandlerClicked();
|
||||
void divePlannerHandlerReleased();
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual ~ProfileWidget2();
|
||||
virtual void resizeEvent(QResizeEvent *event);
|
||||
virtual void wheelEvent(QWheelEvent *event);
|
||||
virtual void mouseMoveEvent(QMouseEvent *event);
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
virtual void contextMenuEvent(QContextMenuEvent *event);
|
||||
#endif
|
||||
virtual void mouseDoubleClickEvent(QMouseEvent *event);
|
||||
virtual void mousePressEvent(QMouseEvent *event);
|
||||
virtual void mouseReleaseEvent(QMouseEvent *event);
|
||||
|
|
@ -200,13 +206,16 @@ private:
|
|||
bool isGrayscale;
|
||||
bool printMode;
|
||||
|
||||
//specifics for ADD and PLAN
|
||||
QList<DiveHandler *> handles;
|
||||
QList<QGraphicsSimpleTextItem *> gases;
|
||||
QList<DivePictureItem *> pictures;
|
||||
|
||||
//specifics for ADD and PLAN
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
QList<DiveHandler *> handles;
|
||||
void repositionDiveHandlers();
|
||||
int fixHandlerIndex(DiveHandler *activeHandler);
|
||||
friend class DiveHandler;
|
||||
#endif
|
||||
QHash<Qt::Key, QAction *> actionsForKeys;
|
||||
bool shouldCalculateMaxTime;
|
||||
bool shouldCalculateMaxDepth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue