Mantid
Loading...
Searching...
No Matches
TextPropertyWidget.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
11#include <QLabel>
12#include <QLineEdit>
13
14namespace MantidQt {
15namespace API {
16
23 Q_OBJECT
24
25public:
26 TextPropertyWidget(Mantid::Kernel::Property *prop, QWidget *parent = nullptr, QGridLayout *layout = nullptr,
27 int row = -1);
29 QString getValue() const override;
30 void setValueImpl(const QString &value) override;
31
33 QWidget *getMainWidget() override { return m_textbox; }
34
35protected:
37 QLabel *m_label;
38
40 QLineEdit *m_textbox;
41};
42
43} // namespace API
44} // namespace MantidQt
double value
The value of the point.
Definition: FitMW.cpp:51
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Base class for widgets that will set Mantid::Kernel::Property* types.
The most generic widgets for Property's that are only a simple string.
QLineEdit * m_textbox
The text box to edit.
QLabel * m_label
Label (name of the property)
~TextPropertyWidget() override
Destructor.
Base class for properties.
Definition: Property.h:94
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...