Files
ResInsight/Fwk/AppFwk/cafUserInterface/cafPdmUiCheckBoxTristateEditor.h

39 lines
767 B
C
Raw Normal View History

#pragma once
#include "cafPdmUiFieldEditorHandle.h"
#include <QWidget>
#include <QPointer>
#include <QCheckBox>
#include <QLabel>
namespace caf
{
class PdmUiCheckBoxTristateEditor : public PdmUiFieldEditorHandle
{
Q_OBJECT
CAF_PDM_UI_FIELD_EDITOR_HEADER_INIT;
public:
PdmUiCheckBoxTristateEditor() {}
~PdmUiCheckBoxTristateEditor() override {}
protected:
QWidget* createEditorWidget(QWidget* parent) override;
QWidget* createLabelWidget(QWidget* parent) override;
void configureAndUpdateUi(const QString& uiConfigName) override;
protected slots:
void slotClicked(bool);
private:
QPointer<QCheckBox> m_checkBox;
2019-04-08 14:29:47 +02:00
QPointer<QShortenedLabel> m_label;
};
} // end namespace caf