Sfoglia il codice sorgente

Minor fixes in the README.md

parent
commit
6a45ccf673
1 ha cambiato i file con 10 aggiunte e 13 eliminazioni
  1. 10
    13
      README.md

+ 10
- 13
README.md Vedi File

@@ -292,15 +292,15 @@ En este ejercicio te familiarizarás con la clase `Bird` y con algunos métodos
292 292
 
293 293
 3. En el archivo `main.cpp` (en Sources) la función `main` hace lo siguiente:
294 294
 
295
-a. Crea un objeto aplicación de Qt, llamado `a`. Lo único que necesitas saber sobre este objeto es que gracias a él es que podemos crear una aplicación gráfica en Qt e interaccionar con ella.
295
+    a. Crea un objeto aplicación de Qt, llamado `a`. Lo único que necesitas saber sobre este objeto es que gracias a él es que podemos crear una aplicación gráfica en Qt e interaccionar con ella.
296 296
 
297
- b. Crea un objeto  de la clase MainWindow llamado `w`. Este objeto corresponde a la ventana que verás cuando corras la aplicación.
297
+    b. Crea un objeto  de la clase MainWindow llamado `w`. Este objeto corresponde a la ventana que verás cuando corras la aplicación.
298 298
 
299
-c. Inicializa la semilla del generador de números aleatorios de Qt. Esto hará que los pájaros nuevos tengan tamaños, colores y cejas aleatorias (a menos que los forcemos a tener valores específicos).
299
+    c. Inicializa la semilla del generador de números aleatorios de Qt. Esto hará que los pájaros nuevos tengan tamaños, colores y cejas aleatorias (a menos que los forcemos a tener valores específicos).
300 300
 
301
-d. Invoca el método `show()` al objeto `w`. Esto logra que se muestre la ventana donde se desplegarán los resultados.
301
+    d. Invoca el método `show()` al objeto `w`. Esto logra que se muestre la ventana donde se desplegarán los resultados.
302 302
 
303
-e. En los programas que no tienen interfaz gráfica, la función `main()` usualmente termina con la instrucción `return 0;`. En este proyecto se utiliza la instrucción `return a.exec();` para que el objeto `a` se haga cargo de la aplicación a partir de ese momento.
303
+    e. En los programas que no tienen interfaz gráfica, la función `main()` usualmente termina con la instrucción `return 0;`. En este proyecto se utiliza la instrucción `return a.exec();` para que el objeto `a` se haga cargo de la aplicación a partir de ese momento.
304 304
 
305 305
 4. Ejecuta el programa marcando la flecha verde en el menú de la izquierda de la ventana de Qt Creator. El programa debe mostrar una ventana blanca.
306 306
 
@@ -316,7 +316,6 @@ En este ejercicio crearás objetos de clase `Bird` usando el constructor por def
316 316
 
317 317
 3. Utiliza los "setters" `setSize(int size)`, `setFaceColor(Qstring color)`, `setEyeColor(Qstring color)`,  y `setEyebrow(EyeBrowType)` para que `abelardo` luzca como en la Figura 2  (su size es 200).
318 318
 
319
-  
320 319
   ---
321 320
 
322 321
   ![figure2.png](images/figure2.png)
@@ -325,10 +324,8 @@ En este ejercicio crearás objetos de clase `Bird` usando el constructor por def
325 324
 
326 325
   ---
327 326
 
328
-
329 327
 4. Crea otro objeto de la clase Bird llamado `piolin` que tenga cara azul, ojos verdes, y cejas UNI invocando el constructor `Bird(int size, EyeBrowType brow, QString faceColor, QString eyeColor, QWidget *parent = 0)`. Su tamaño debe ser la mitad que el de `abelardo`. Añádelo a la misma ventana donde se muestra a  `abelardo` usando `w.addBird(300, 100, piolin)` para obtener una imagen como la que se muestra en la Figura 3.
330 328
 
331
-
332 329
    ---
333 330
 
334 331
   ![figure3.png](images/figure3.png)
@@ -667,15 +664,15 @@ In this exercise you will familiarize yourself with the `Bird` class and with so
667 664
 
668 665
 3. In the `main.cpp` file (in Sources) the `main` function does the following:
669 666
 
670
-a. Creates a Qt object application, called `a`. The only thing you need to know is that thanks to this object we can create a graphical application in Qt and interact with it.
667
+    a. Creates a Qt object application, called `a`. The only thing you need to know is that thanks to this object we can create a graphical application in Qt and interact with it.
671 668
 
672
-b. Creates an object of the MainWindow class called `w`. This object corresponds to the window that you will see when you run the application.
669
+    b. Creates an object of the MainWindow class called `w`. This object corresponds to the window that you will see when you run the application.
673 670
 
674
-c. Initializes the seed of Qt's random number generator. As a result of this, the new birds will have random sizes, colors and eyebrows (unless we force them to have specific values).
671
+    c. Initializes the seed of Qt's random number generator. As a result of this, the new birds will have random sizes, colors and eyebrows (unless we force them to have specific values).
675 672
 
676
-d. Invokes the method `show()` on the object `w`. This shows the window where the results will be displayed.
673
+    d. Invokes the method `show()` on the object `w`. This shows the window where the results will be displayed.
677 674
 
678
-e. In programs that don't have a graphical interface, the `main()` function usually ends with the instruction `return 0;`. In this project, the `return a.exec();` instruction is used so that the object `a` takes charge of the application from that moment on.
675
+    e. In programs that don't have a graphical interface, the `main()` function usually ends with the instruction `return 0;`. In this project, the `return a.exec();` instruction is used so that the object `a` takes charge of the application from that moment on.
679 676
 
680 677
 4. Execute the program by clicking on the green arrow in the left menu on the Qt Creator window. The program should display a blank window.
681 678