mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
41 lines
817 B
C++
41 lines
817 B
C++
/**
|
|
* @file settings_button_widget.h
|
|
* @ingroup Widgets
|
|
* @ingroup Settings
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef SETTINGS_BUTTON_WIDGET_H
|
|
#define SETTINGS_BUTTON_WIDGET_H
|
|
|
|
#include "settings_popup_widget.h"
|
|
|
|
#include <QToolButton>
|
|
#include <QWidget>
|
|
|
|
class SettingsButtonWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingsButtonWidget(QWidget *parent = nullptr);
|
|
void addSettingsWidget(QWidget *toAdd) const;
|
|
void removeSettingsWidget(QWidget *toRemove) const;
|
|
void setButtonIcon(QPixmap iconMap);
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
|
|
private slots:
|
|
void togglePopup();
|
|
void onPopupClosed() const;
|
|
|
|
private:
|
|
QHBoxLayout *layout;
|
|
QToolButton *button;
|
|
|
|
public:
|
|
SettingsPopupWidget *popup;
|
|
};
|
|
|
|
#endif // SETTINGS_BUTTON_WIDGET_H
|