Skip to content

Commit

Permalink
Merge pull request #16 from MrLeeh/patch-2
Browse files Browse the repository at this point in the history
Add hook for QTabWidget
  • Loading branch information
mfitzp committed Aug 4, 2015
2 parents 67c3083 + 764901d commit 1cd1679
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions pyqtconfig/config.py
Expand Up @@ -579,7 +579,28 @@ def _event_QButtonGroup(self):
Return button clicked signal for QButtonGroup
"""
return self.buttonClicked



#QTabWidget
def _get_QTabWidget(self):
"""
Get the current tabulator index
"""
return self.currentIndex()


def _set_QTabWidget(self, v):
"""
Set the current tabulator index
"""
self.setCurrentIndex(v)


def _event_QTabWidget(self):
"""
Return currentChanged signal for QTabWidget
"""
return self.currentChanged


HOOKS = {
Expand All @@ -594,7 +615,8 @@ def _event_QButtonGroup(self):
QLineEdit: (_get_QLineEdit, _set_QLineEdit, _event_QLineEdit),
QListWidget: (_get_QListWidget, _set_QListWidget, _event_QListWidget),
QSlider: (_get_QSlider, _set_QSlider, _event_QSlider),
QButtonGroup: (_get_QButtonGroup, _set_QButtonGroup, _event_QButtonGroup)
QButtonGroup: (_get_QButtonGroup, _set_QButtonGroup, _event_QButtonGroup),
QTabWidget: (_get_QTabWidget, _set_QTabWidget, _event_QTabWidget)
}

# ConfigManager handles configuration for a given appview
Expand Down

0 comments on commit 1cd1679

Please sign in to comment.