jfc ms/qt go to hell: defaults working as expected

This commit is contained in:
Hane 2023-09-05 19:42:30 +02:00
commit d2ff934cd9
3 changed files with 70 additions and 35 deletions

View file

@ -57,6 +57,16 @@
* };
*/
class ExtendedCheckBox : public QCheckBox {
Q_OBJECT
public:
bool event(QEvent* ev) override;
};
class EndpointWidget : public QWidget {
Q_OBJECT
@ -76,7 +86,7 @@ public:
std::vector<QLabel*> channelLabels;
QGridLayout *layout = nullptr;
QGridLayout *mainMuteLayout = nullptr;
std::map<Roles, QCheckBox*> defaultRolesCheckBoxes;
std::map<Roles, ExtendedCheckBox*> defaultRolesCheckBoxes;
//void updateMainVolume(float newValue);
//void updateVolume(uint32_t channel, float newValue);
@ -127,6 +137,7 @@ private:
QSystemTrayIcon *trayIcon;
QMenu *trayIconMenu;
QAction *trayIconMenuQuit;
QEvent* changeDefaultCheckboxEnablement;
//public slots:
// void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);