Remove text field from combobox
This commit is contained in:
2024-11-22 22:11:53 +01:00
parent a26ddf02d1
commit 26e5a59583
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -4,9 +4,9 @@ UI_combobox::UI_combobox(QObject *parrent) : UI_x_boxes(UI_COMBOBOX_TYPE, parren
{
}
UI_combobox::UI_combobox(std::string text, Color fg_color, Color bg_color,
std::vector<std::string> options, size_t selected, QObject *parrent)
: UI_x_boxes(UI_COMBOBOX_TYPE, text, fg_color, bg_color, options, parrent), m_selected(selected)
UI_combobox::UI_combobox(Color fg_color, Color bg_color,
std::vector<std::string> options, size_t selected, QObject *parent)
: UI_x_boxes(UI_COMBOBOX_TYPE, "", fg_color, bg_color, options, parent), m_selected(selected)
{
}
+4 -4
View File
@@ -10,10 +10,10 @@ class UI_combobox : public UI_x_boxes
{
Q_OBJECT
public:
UI_combobox(QObject *parrent = nullptr);
UI_combobox(std::string text, Color fg_color, Color bg_color, std::vector<std::string> options,
size_t selected = 0, QObject *parrent = nullptr);
UI_combobox(const json &j, QObject *parrent = nullptr);
UI_combobox(QObject *parent = nullptr);
UI_combobox(Color fg_color, Color bg_color, std::vector<std::string> options,
size_t selected = 0, QObject *parent = nullptr);
UI_combobox(const json &j, QObject *parent = nullptr);
void set_selected(size_t selected);
void set_selected(std::string selected) override;