diff options
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 799e87c42..e8cca8280 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -170,13 +170,13 @@ void DivePlannerGraphics::createDecoStops() void DivePlannerGraphics::resizeEvent(QResizeEvent* event) { QGraphicsView::resizeEvent(event); - fitInView(sceneRect(), Qt::KeepAspectRatio); + fitInView(sceneRect(), Qt::IgnoreAspectRatio); } void DivePlannerGraphics::showEvent(QShowEvent* event) { QGraphicsView::showEvent(event); - fitInView(sceneRect(), Qt::KeepAspectRatio); + fitInView(sceneRect(), Qt::IgnoreAspectRatio); } void DivePlannerGraphics::mouseMoveEvent(QMouseEvent* event) @@ -349,22 +349,6 @@ qreal Ruler::posAtValue(qreal value) return retValue; } -DivePlanner::DivePlanner() : ui(new Ui::DivePlanner()) -{ - ui->setupUi(this); -} - -struct dive* DivePlanner::getDive() -{ - return 0; -} - -DivePlanner* DivePlanner::instance() -{ - static DivePlanner *self = new DivePlanner(); - return self; -} - double Ruler::maximum() const { return max; |