Mantid
Loading...
Searching...
No Matches
ListPropertyWidget.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
9#include "MantidQtWidgets/Common/DllOption.h"
11#include <QLabel>
12#include <QListWidget>
13
14namespace MantidQt {
15namespace API {
16
20class EXPORT_OPT_MANTIDQT_COMMON ListPropertyWidget : public PropertyWidget {
21 Q_OBJECT
22
23public:
24 ListPropertyWidget(Mantid::Kernel::Property *prop, QWidget *parent = nullptr, QGridLayout *layout = nullptr,
25 int row = -1);
27 QString getValue() const override;
28 void setValueImpl(const QString &value) override;
29
31 QWidget *getMainWidget() override { return m_list; }
32
33protected:
35 QLabel *m_label;
36
38 QListWidget *m_list;
39};
40
41} // namespace API
42} // namespace MantidQt
double value
The value of the point.
Definition FitMW.cpp:51
Widget for displaying a Property that has a set of allowed values.
QListWidget * m_list
List box with the allowed List.
QLabel * m_label
Label (name of the property)
~ListPropertyWidget() override
Destructor.
Base class for widgets that will set Mantid::Kernel::Property* types.
Base class for properties.
Definition Property.h:95
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...