Update applications/randomuser/randomuser.ring - Better Code
@@ -7,17 +7,17 @@ load "internetlib.ring"
load "jsonlib.ring"
load "guilib.ring"
-openWindow(:RandomUser)
+oApp = new QApp {
+ styleFusionBlack()
+ openObject(:RandomUser)
+ exec()
+}
-class RandomUser from WindowsControllerParent
+class RandomUser from ObjectsParent
cFirstName cLastName cEmail
cGender cImageFile
- oApp = new QApp {
-
- styleFusionBlack()
-
win = new QWidget() {
setWindowTitle("Random User Data")
@@ -51,8 +51,6 @@ class RandomUser from WindowsControllerParent
show()
}
- exec()
- }
func getUserData
