Functions | |
void | updateTabTextColors (QTabWidget *tabWidget, QTabBar *tabBar) |
Class for providing local behavior enhancements for the QTabWidget class (e.g. colorized tab text).
void dbutils::gui::CustomTabBehaviors::updateTabTextColors | ( | QTabWidget * | tabWidget, |
QTabBar * | tabBar | ||
) |
Updates the text colors for the specified tabWidget and tabBar combination to show whether uncommitted changes have been made on each tab.
NOTE that the specified tabBar should be the one that is associated with the specified tabWidget. They only need to be passed to this method separately because the method to fetch the tabBar from a tabWidget is protected, by default.
Definition at line 20 of file CustomTabBehaviors.cpp.
References dbutils::gui::Changeable::hasChanges(), and compare_h5_caf::idx.
Referenced by dbutils::gui::CustomTabWidget::reactToDataChange(), dbutils::gui::CustomTabWidget::reactToDataSave(), dbutils::gui::TabbedSetOfTableEditors::reactToDataSave(), dbutils::gui::TabbedSetOfTreeEditors::reactToDataSave(), dbutils::gui::TabbedSetOfTableEditors::reactToEditorDataChange(), and dbutils::gui::TabbedSetOfTreeEditors::reactToEditorDataChange().