mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-04-21 18:20:18 +00:00
impr: SongIdSelector
get separate values
This commit is contained in:
parent
8e3176ddd4
commit
1e6d9e0151
@ -27,7 +27,7 @@ class ChartSelector(Ui_ChartSelector, QWidget):
|
|||||||
self.ratingClassSelector.valueChanged.connect(self.valueChanged)
|
self.ratingClassSelector.valueChanged.connect(self.valueChanged)
|
||||||
|
|
||||||
def value(self):
|
def value(self):
|
||||||
songId = self.songIdSelector.value()
|
songId = self.songIdSelector.songId()
|
||||||
ratingClass = self.ratingClassSelector.value()
|
ratingClass = self.ratingClassSelector.value()
|
||||||
|
|
||||||
if songId and isinstance(ratingClass, int):
|
if songId and isinstance(ratingClass, int):
|
||||||
@ -65,7 +65,7 @@ class ChartSelector(Ui_ChartSelector, QWidget):
|
|||||||
|
|
||||||
def updateRatingClassEnabled(self):
|
def updateRatingClassEnabled(self):
|
||||||
ratingClasses = []
|
ratingClasses = []
|
||||||
songId = self.songIdSelector.value()
|
songId = self.songIdSelector.songId()
|
||||||
if songId:
|
if songId:
|
||||||
charts = self.db.get_charts_by_song_id(songId)
|
charts = self.db.get_charts_by_song_id(songId)
|
||||||
ratingClasses = [chart.rating_class for chart in charts]
|
ratingClasses = [chart.rating_class for chart in charts]
|
||||||
|
@ -79,7 +79,10 @@ class SongIdSelector(Ui_SongIdSelector, QWidget):
|
|||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
||||||
def value(self):
|
def packId(self):
|
||||||
|
return self.packComboBox.currentData()
|
||||||
|
|
||||||
|
def songId(self):
|
||||||
return self.songIdComboBox.currentData()
|
return self.songIdComboBox.currentData()
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user