Don't show the plot_info table in every debug build

Instead add a new define SHOW_PLOT_INFO_TABLE that triggers if this
debugging aid is shown.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-02 13:12:11 -08:00
parent bbc3a0e55f
commit baa4b4d7c5
2 changed files with 6 additions and 1 deletions

View file

@ -52,6 +52,11 @@ The following options are recognized when passed to qmake:
(pass the actual path, without -I) (pass the actual path, without -I)
LIBS+=xxx Add xxx to the linker flags. -l and -L options are LIBS+=xxx Add xxx to the linker flags. -l and -L options are
recognized. recognized.
DEFINES+=SHOW_PLOT_INFO_TABLE=1
Only available in debug builds, this creates a
second window that shows all elements in the
plot_info structure as a table - very useful when
debugging issues with the profile
The INCLUDEPATH and LIBS options are useful to tell the buildsystem The INCLUDEPATH and LIBS options are useful to tell the buildsystem
about non-standard installation paths for the dependencies (such as about non-standard installation paths for the dependencies (such as

View file

@ -127,7 +127,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
ADD_ACTION(Qt::Key_Right, keyRightAction()); ADD_ACTION(Qt::Key_Right, keyRightAction());
#undef ADD_ACTION #undef ADD_ACTION
#ifndef QT_NO_DEBUG #if !defined(QT_NO_DEBUG) && defined(SHOW_PLOT_INFO_TABLE)
QTableView *diveDepthTableView = new QTableView(); QTableView *diveDepthTableView = new QTableView();
diveDepthTableView->setModel(dataModel); diveDepthTableView->setModel(dataModel);
diveDepthTableView->show(); diveDepthTableView->show();