From 402bfc09031fafb55c59e64b6d6fe7f4ce76107f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 9 May 2013 11:08:15 +0200 Subject: Remove reset button from curve dialog --- qfunctionconfigurator/qfunctionconfigurator.cpp | 13 ------------- qfunctionconfigurator/qfunctionconfigurator.h | 2 -- 2 files changed, 15 deletions(-) (limited to 'qfunctionconfigurator') diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index e3eb962b..7c59d98e 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -57,11 +57,6 @@ #include -QFunctionConfigurator::~QFunctionConfigurator() -{ - delete btnReset; -} - static const int pointSize = 5; QFunctionConfigurator::QFunctionConfigurator(QWidget *parent) @@ -86,12 +81,6 @@ QFunctionConfigurator::QFunctionConfigurator(QWidget *parent) setMouseTracking(true); movingPoint = -1; // Index of that same point - // - // Add a Reset-button - // - btnReset = new QPushButton(QString("Reset"), this); - connect(btnReset, SIGNAL(clicked()), this, SLOT(resetCurve())); - // // Variables for FunctionConfig // @@ -314,8 +303,6 @@ int i; drawBackground(e->rect()); // Draw the static parts on a Pixmap p.drawPixmap(0, 0, _background); // Paint the background _draw_background = false; - - btnReset->move(e->rect().left(), e->rect().bottom() - btnReset->height() - 2); } if (_draw_function) { diff --git a/qfunctionconfigurator/qfunctionconfigurator.h b/qfunctionconfigurator/qfunctionconfigurator.h index 3f6a2b5f..4bb81ed9 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.h +++ b/qfunctionconfigurator/qfunctionconfigurator.h @@ -119,7 +119,6 @@ class FTNOIR_TRACKER_BASE_EXPORT QFunctionConfigurator : public QWidget public: QFunctionConfigurator(QWidget *parent = 0); - ~QFunctionConfigurator(); FunctionConfig* config(); void setConfig(FunctionConfig* config, QString settingsFile); // Connect the FunctionConfig to the Widget. @@ -187,7 +186,6 @@ private: QString strOutputEGU; // Engineering Units output (horizontal axis) QString strCaption; // Caption of the graph QString strSettingsFile; // Name of last read INI-file - QPushButton *btnReset; // Reset Curve bool _draw_background; // Flag to determine if the background should be (re-)drawn on the QPixmap QPixmap _background; // Image of the static parts (axis, lines, etc.) -- cgit v1.2.3