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
10#include "MantidKernel/System.h"
12#include <QLabel>
13#include <QListWidget>
14
15namespace MantidQt {
16namespace API {
17
22 Q_OBJECT
23
24public:
25 ListPropertyWidget(Mantid::Kernel::Property *prop, QWidget *parent = nullptr, QGridLayout *layout = nullptr,
26 int row = -1);
28 QString getValue() const override;
29 void setValueImpl(const QString &value) override;
30
32 QWidget *getMainWidget() override { return m_list; }
33
34protected:
36 QLabel *m_label;
37
39 QListWidget *m_list;
40};
41
42} // namespace API
43} // 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
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:94
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...