Update samples/UsingQt/TabActivate/TabActivateController.ring - Better Code
@@ -21,11 +21,13 @@ class TabActivateController from windowsControllerParent
oView.tab1.setCurrentChangedEvent(Method(:PageChanged))
func pageChanged
- switch oView.tab1.currentIndex()
+ oView {
+ switch tab1.currentIndex()
on 0
- oView.lineedit1.setText("Page (1) - Time: " + Time())
+ lineedit1.setText("Page (1) - Time: " + Time())
on 1
- oView.lineedit2.setText("Page (2) - Time: " + Time())
+ lineedit2.setText("Page (2) - Time: " + Time())
on 2
- oView.lineedit3.setText("Page (3) - Time: " + Time())
+ lineedit3.setText("Page (3) - Time: " + Time())
off
+ }
