Added theme scheduler, poi support and speed alarm features.
[jspeed] / src / buttonselector.cpp
index c1adde3..22fa6d4 100644 (file)
@@ -142,6 +142,11 @@ bool ButtonSelector::removeItem(unsigned int index)
     return model_->removeRow(index);
 }
 
     return model_->removeRow(index);
 }
 
+int ButtonSelector::size() const
+{
+    return model_->rowCount();
+}
+
 void ButtonSelector::onSelected(QString const& text)
 {
     emit selected(currentIndex(), text, value());
 void ButtonSelector::onSelected(QString const& text)
 {
     emit selected(currentIndex(), text, value());