summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-05-09 11:08:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-05-09 11:08:15 +0200
commit402bfc09031fafb55c59e64b6d6fe7f4ce76107f (patch)
treeb2cfaff37524436a9ad0d80fdbd89cc20e233704 /qfunctionconfigurator
parent992ae20289a0f114d0e4fe3b3ca740bda31d9772 (diff)
Remove reset button from curve dialog
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp13
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.h2
2 files changed, 0 insertions, 15 deletions
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 <math.h>
-QFunctionConfigurator::~QFunctionConfigurator()
-{
- delete btnReset;
-}
-
static const int pointSize = 5;
QFunctionConfigurator::QFunctionConfigurator(QWidget *parent)
@@ -87,12 +82,6 @@ QFunctionConfigurator::QFunctionConfigurator(QWidget *parent)
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
//
_config = 0;
@@ -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.)