1 // Copyright 2001-2018 Crytek GmbH / Crytek Group. All rights reserved.
3 #include "EditorCommonAPI.h"
12 //TODO : Unify with QMenuComboBox by adding editable functionnality there
13 class EDITOR_COMMON_API QEditableComboBox
: public QWidget
17 QEditableComboBox(QWidget
* pParent
= nullptr);
19 QString
GetCurrentText() const;
22 void AddItem(const QString
& itemName
);
23 void AddItems(const QStringList
& itemNames
);
24 void RemoveCurrentItem();
26 void SetCurrentItem(const QString
& itemName
);
29 void OnBeginEditing();
30 void OnEditingFinished();
31 void OnEditingCancelled();
34 void ItemRenamed(const QString
& before
, const QString
& after
);
36 void OnCurrentIndexChanged(int index
);
39 bool eventFilter(QObject
* obj
, QEvent
* event
);
42 QMenuComboBox
* m_pComboBox
;
43 QLineEdit
* m_pLineEdit
;