/
githubmirror
/
x64dbg
Обзор
Документация
Войти
/
githubmirror
/
x64dbg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
development
src/gui/Src/Gui/ComboBoxDialog.h
35 строк
897 B
Duncan Ogilvie
Refactor parent = 0 -> parent = nullptr
19 сен 2023, 07:25
19 сен 2023, 07:25
663bfbb
Код
Авторство
О чём код?
#pragma once #include <QDialog> namespace Ui { class ComboBoxDialog; } class ComboBoxDialog : public QDialog { Q_OBJECT public: explicit ComboBoxDialog(QWidget* parent = nullptr); ~ComboBoxDialog(); bool bChecked; QString currentText(); void setEditable(bool editable); void setItems(const QStringList & items); // Minimum number of characters that should fit into the combobox. // Use for large models, so that the length is not computed from its items. void setMinimumContentsLength(int characters); void setText(const QString & text); void setPlaceholderText(const QString & text); void enableCheckBox(bool bEnable); void setCheckBox(bool bSet); void setCheckBoxText(const QString & text); private slots: void on_checkBox_toggled(bool checked); private: Ui::ComboBoxDialog* ui; };