mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
UI
Remove text field from combobox
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user