Mark current options tab

This commit is contained in:
Kiooeht 2011-05-03 12:01:56 -07:00
parent 32f42c7d61
commit 04dc61df22

View file

@ -580,6 +580,8 @@ class PesterOptions(QtGui.QDialog):
button = QtGui.QPushButton(t)
self.tabs.addButton(button)
layout_4.addWidget(button)
button.setCheckable(True)
self.tabs.button(-2).setChecked(True)
self.pages = QtGui.QStackedWidget(self)
self.tabcheck = QtGui.QCheckBox("Tabbed Conversations", self)
@ -732,6 +734,7 @@ class PesterOptions(QtGui.QDialog):
@QtCore.pyqtSlot(int)
def changePage(self, page):
self.tabs.button(page).setChecked(True)
# What is this, I don't even. qt, fuck
page = -page - 2
self.pages.setCurrentIndex(page)