Files
o3de/Gems/PhysX/Code/Editor/ComboBoxEditButtonPair.h
T
2021-06-23 10:55:22 -07:00

35 lines
700 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <QBoxLayout>
#include <QToolButton>
#include <QComboBox>
#include <QEvent>
namespace PhysX
{
namespace Editor
{
/// Wrapper widget for a combo box with a button at the end.
class ComboBoxEditButtonPair
: public QWidget
{
public:
explicit ComboBoxEditButtonPair(QWidget* parent);
QComboBox* GetComboBox();
QToolButton* GetEditButton();
private:
QComboBox* m_comboBox = nullptr;
QToolButton* m_editButton = nullptr;
};
}
}