1 /***************************************************************************
2 kquestion.h - description
4 begin : Tue May 22 2001
5 copyright : (C) 2001 by Javier Campos Morales
6 email : javi@asyris.org
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
23 #include <qtextedit.h>
30 * The Widget that is used to display the Question.
31 *@author Javier Campos Morales
33 class KQuestion
: public QHBox
38 KQuestion(QWidget
*parent
=0, const char *name
=0);
41 void setPixmap( const QPixmap pixmap
);
43 void setText( const QString
&text
);
45 /** show a countdown, starting at "starttime" and counting
46 down to 0, each second one count.
48 0 disables the countdown.
50 void countdown(int starttime
);
52 void countdownVisible(bool visible
);
54 /** Get current time */
64 /** Init graphical interface */
73 QTimer
*_countdownTimer
;
74 KProgress
*_countdownWidget
;