#pragma once #include "FractoriumPch.h" /// /// StealthComboBox class. /// /// /// A thin derivation of QComboBox which allows the user /// to set the index without triggering signals. /// class StealthComboBox : public QComboBox { Q_OBJECT public: explicit StealthComboBox(QWidget* p = nullptr) : QComboBox(p) { } /// /// Set the current index of the combo box without triggering signals. /// /// The current index to set void SetCurrentIndexStealth(int index) { blockSignals(true); setCurrentIndex(index); blockSignals(false); } };