diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplotdatamodel.cpp | 5 | ||||
-rw-r--r-- | qt-models/divetripmodel.cpp | 4 | ||||
-rw-r--r-- | qt-models/filtermodels.cpp | 6 | ||||
-rw-r--r-- | qt-models/profileprintmodel.cpp | 1 |
4 files changed, 13 insertions, 3 deletions
diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp index 3b3a288b6..f219947ac 100644 --- a/qt-models/diveplotdatamodel.cpp +++ b/qt-models/diveplotdatamodel.cpp @@ -4,7 +4,10 @@ #include "graphicsview-common.h" #include "divelist.h" -DivePlotDataModel::DivePlotDataModel(QObject *parent) : QAbstractTableModel(parent), diveId(0) +DivePlotDataModel::DivePlotDataModel(QObject *parent) : + QAbstractTableModel(parent), + diveId(0), + dcNr(0) { memset(&pInfo, 0, sizeof(pInfo)); } diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 4934b8b20..3b08e6838 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -350,7 +350,9 @@ int DiveItem::weight() const return tw.grams; } -DiveTripModel::DiveTripModel(QObject *parent) : TreeModel(parent) +DiveTripModel::DiveTripModel(QObject *parent) : + TreeModel(parent), + currentLayout(TREE) { columns = COLUMNS; } diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index f63ec85b0..6bec97c23 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -292,7 +292,11 @@ void LocationFilterModel::repopulate() anyChecked = false; } -MultiFilterSortModel::MultiFilterSortModel(QObject *parent) : QSortFilterProxyModel(parent), justCleared(false), curr_dive_site(NULL) +MultiFilterSortModel::MultiFilterSortModel(QObject *parent) : + QSortFilterProxyModel(parent), + justCleared(false), + curr_dive_site(NULL), + divesDisplayed(0) { } diff --git a/qt-models/profileprintmodel.cpp b/qt-models/profileprintmodel.cpp index 1f8d918ed..1d01f6a5d 100644 --- a/qt-models/profileprintmodel.cpp +++ b/qt-models/profileprintmodel.cpp @@ -6,6 +6,7 @@ ProfilePrintModel::ProfilePrintModel(QObject *parent) { + fontSize = 12.0; } void ProfilePrintModel::setDive(struct dive *divePtr) |