summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtStatusWidget.cpp')
-rw-r--r--Swift/QtUI/QtStatusWidget.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Swift/QtUI/QtStatusWidget.cpp b/Swift/QtUI/QtStatusWidget.cpp
index b89d5bb..7002d90 100644
--- a/Swift/QtUI/QtStatusWidget.cpp
+++ b/Swift/QtUI/QtStatusWidget.cpp
@@ -30,6 +30,15 @@ StatusShow::Type QtStatusWidget::getSelectedStatusShow() {
return (StatusShow::Type)types_->itemData(types_->currentIndex()).toInt();
}
+void QtStatusWidget::setStatusType(StatusShow::Type type) {
+ for (int i = 0; i < types_->count(); i++) {
+ if (types_->itemData(i).toInt() == type) {
+ types_->setCurrentIndex(i);
+ break;
+ }
+ }
+}
+
}