FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
length_double_spinbox.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** FougTools
3 ** Copyright Fougue (30 Mar. 2015)
4 ** contact@fougue.pro
5 **
6 ** This software is a computer program whose purpose is to provide utility
7 ** tools for the C++ language and the Qt toolkit.
8 **
9 ** This software is governed by the CeCILL-C license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-C
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info".
14 ****************************************************************************/
15 
16 #pragma once
17 
18 #include "gui.h"
19 #include "abstract_length_editor.h"
20 // QtWidgets
21 #include <QDoubleSpinBox>
22 
23 namespace qtgui {
24 
26  public QDoubleSpinBox,
28 {
29  Q_OBJECT
30  Q_PROPERTY(double length READ length WRITE setLength)
31 
32 public:
33  LengthDoubleSpinBox(QWidget* parent = NULL);
35 
36  double length() const Q_DECL_OVERRIDE;
37  Q_SLOT void setLength(double v) Q_DECL_OVERRIDE;
38 
39 public slots:
40  void updateEditor(QLocale::MeasurementSystem newSys) Q_DECL_OVERRIDE;
41 
42 private:
43  class Private;
44  Private* const d;
45 };
46 
47 } // namespace qtgui
Definition: abstract_length_editor.cpp:20
Abstract base class for all length ([L]) editors that are aware of the current measurement system (me...
Definition: abstract_length_editor.h:24
Provides a QDoubleSpinBox adapted to the interface of AbstractLengthEditor.
Definition: length_double_spinbox.h:25
#define QTTOOLS_GUI_EXPORT
Definition: gui.h:27