Simple chess clock widget. More...
#include <chessclockwidget.h>
Public Slots | |
virtual void | repaintClock () |
Refresh clock information. | |
Public Member Functions | |
ChessClockWidget (bool white, QWidget *parent=0) | |
Protected Member Functions | |
virtual void | initPictures () |
Init pictures from resources. | |
virtual void | initLabels () |
Init QLabels. | |
virtual void | initTop () |
Init top: picture, details, loser mark. | |
virtual void | initBottom () |
Init time left in bottom. | |
QString | timeString (int msecs) |
Convert msecs to h:mm:ss QString. | |
Protected Attributes | |
QPixmap | picActive_ |
QPixmap | picPassive_ |
QPixmap | picLoser_ |
QLabel * | pictureLabel_ |
QLabel * | timeUsedLabel_ |
QLabel * | timeAverageLabel_ |
QLabel * | turnLabel_ |
QLabel * | loserLabel_ |
QLabel * | leftLabel_ |
QVBoxLayout * | mainLayout |
Simple chess clock widget.
Definition at line 39 of file chessclockwidget.h.
ChessClockWidget::ChessClockWidget | ( | bool | white, | |
QWidget * | parent = 0 | |||
) |
Definition at line 29 of file chessclockwidget.cpp.
void ChessClockWidget::initBottom | ( | ) | [protected, virtual] |
Init time left in bottom.
Override to make different bottom area
Definition at line 109 of file chessclockwidget.cpp.
void ChessClockWidget::initLabels | ( | ) | [protected, virtual] |
Init QLabels.
Definition at line 59 of file chessclockwidget.cpp.
void ChessClockWidget::initPictures | ( | ) | [protected, virtual] |
Init pictures from resources.
Definition at line 43 of file chessclockwidget.cpp.
void ChessClockWidget::initTop | ( | ) | [protected, virtual] |
Init top: picture, details, loser mark.
Definition at line 80 of file chessclockwidget.cpp.
void ChessClockWidget::repaintClock | ( | ) | [virtual, slot] |
Refresh clock information.
Implements ChessClock.
Definition at line 121 of file chessclockwidget.cpp.
QString ChessClockWidget::timeString | ( | int | msecs | ) | [protected] |
Convert msecs to h:mm:ss QString.
Definition at line 148 of file chessclockwidget.cpp.
QLabel* ChessClockWidget::leftLabel_ [protected] |
Definition at line 75 of file chessclockwidget.h.
QLabel* ChessClockWidget::loserLabel_ [protected] |
Definition at line 74 of file chessclockwidget.h.
QVBoxLayout* ChessClockWidget::mainLayout [protected] |
Definition at line 77 of file chessclockwidget.h.
QPixmap ChessClockWidget::picActive_ [protected] |
Definition at line 66 of file chessclockwidget.h.
QPixmap ChessClockWidget::picLoser_ [protected] |
Definition at line 68 of file chessclockwidget.h.
QPixmap ChessClockWidget::picPassive_ [protected] |
Definition at line 67 of file chessclockwidget.h.
QLabel* ChessClockWidget::pictureLabel_ [protected] |
Definition at line 70 of file chessclockwidget.h.
QLabel* ChessClockWidget::timeAverageLabel_ [protected] |
Definition at line 72 of file chessclockwidget.h.
QLabel* ChessClockWidget::timeUsedLabel_ [protected] |
Definition at line 71 of file chessclockwidget.h.
QLabel* ChessClockWidget::turnLabel_ [protected] |
Definition at line 73 of file chessclockwidget.h.