mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Add doxygen documentation to client ui
This commit is contained in:
@@ -6,13 +6,41 @@ class Better_Radiobutton : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/**
|
||||
* @brief Construct a new Better_Radiobutton object
|
||||
*
|
||||
* @param parent A pointer to the parent widget
|
||||
*/
|
||||
explicit Better_Radiobutton(QWidget *parent = nullptr);
|
||||
explicit Better_Radiobutton(std::vector<QString> names, QWidget *partent = nullptr);
|
||||
/**
|
||||
* @brief Construct a new Better_Radiobutton object
|
||||
*
|
||||
* @param names A list of names for the radiobuttons
|
||||
* @param parent A pointer to the parent widget
|
||||
*/
|
||||
explicit Better_Radiobutton(std::vector<QString> names, QWidget *parent = nullptr);
|
||||
|
||||
/**
|
||||
* @brief Add a radiobutton to the group
|
||||
*
|
||||
* @param name The name of the radiobutton
|
||||
*/
|
||||
void add_radiobutton(QString name);
|
||||
|
||||
/**
|
||||
* @brief Get the name of the currently checked radiobutton
|
||||
*
|
||||
* @return QString The name of the checked radiobutton
|
||||
*/
|
||||
QString isChecked() const;
|
||||
|
||||
signals:
|
||||
/**
|
||||
* @brief Emitted when a radiobutton is toggled
|
||||
*
|
||||
* @param name The name of the radiobutton
|
||||
* @param checked Whether the radiobutton is checked
|
||||
*/
|
||||
void toggled(QString name, bool checked);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user