src/messagelog.h

changeset 603
47e7773c7841
parent 600
209e3f1f7b2c
child 606
3dd6f343ec06
equal deleted inserted replaced
602:ac1744536b33 603:47e7773c7841
36 * where each line's expiry is checked for. Lines begin to fade out when nearing 36 * where each line's expiry is checked for. Lines begin to fade out when nearing
37 * their expiry. If the message manager's lines change, the renderer undergoes 37 * their expiry. If the message manager's lines change, the renderer undergoes
38 * repainting. 38 * repainting.
39 */ 39 */
40 class MessageManager : public QObject 40 class MessageManager : public QObject
41 { Q_OBJECT 41 {
42 Q_OBJECT
42 PROPERTY (public, GLRenderer*, Renderer, NO_OPS, STOCK_WRITE) 43 PROPERTY (public, GLRenderer*, Renderer, NO_OPS, STOCK_WRITE)
43 44
44 public: 45 public:
45 // Single line of the message log. 46 // Single line of the message log.
46 class Line 47 class Line
47 { public: 48 {
49 public:
48 Line (str text); 50 Line (str text);
49 bool update (bool& changed); 51 bool update (bool& changed);
50 52
51 str text; 53 str text;
52 float alpha; 54 float alpha;

mercurial