00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqClockLabel.h 00004 // 00005 // Purpose: Extension of a QLabel to draw a clock face with a label. 00006 // 00007 // Version: $Id: TxqClockLabel.h,v 1.2 2002/01/03 21:55:52 kgl Exp $ 00008 // 00009 // Copyright (c) 2002 by Tech-X Corporation. All rights reserved. 00010 // 00011 // Author: Kelly G. Luetkemeyer 00012 // 00013 //-------------------------------------------------------------------- 00014 00015 // Qt includes 00016 #include <qprogressdialog.h> 00017 #include <qapplication.h> 00018 #include <qmenubar.h> 00019 #include <qpopupmenu.h> 00020 #include <qpainter.h> 00021 00022 // system includes 00023 #include <stdlib.h> 00024 00033 class TxqClockLabel: public QLabel { 00034 00035 public: 00036 00042 TxqClockLabel( QWidget* parent, const QString& s ); 00043 00047 void show(); 00048 00052 void hide(); 00053 00057 QSize sizeHint() const; 00058 00059 protected: 00060 00064 void timerEvent(QTimerEvent*); 00065 00069 void paintEvent(QPaintEvent* event); 00070 00071 private: 00072 00073 };
Copyright Tech-X Corporation, all rights reserved.