home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / demo / widgets / widgetsbase_pro.ui.h next >
Encoding:
Text File  |  2001-09-06  |  755 b   |  45 lines

  1. void WidgetsBase::init()
  2. {
  3.     timeEdit->setTime( QTime::currentTime() );
  4.         dateEdit->setDate( QDate::currentDate() );
  5. }
  6.  
  7. void WidgetsBase::destroy()
  8. {
  9.  
  10. }
  11.  
  12. void WidgetsBase::resetColors()
  13. {
  14.     groupBox->setPalette( palette() );
  15. }
  16.  
  17. void WidgetsBase::setColor( const QString & color )
  18. {
  19.     groupBox->setPalette( QColor( color ) );
  20. }
  21.  
  22. void WidgetsBase::setColor()
  23. {
  24.     setColor( lineEdit->text() );
  25. }
  26.  
  27. void WidgetsBase::updateClock()
  28. {
  29.     clock->setTime( timeEdit->time() );
  30. }
  31.  
  32. void WidgetsBase::updateColorTest( const QString & color )
  33. {
  34.     colorTest->setPalette( QColor( color ) );
  35. }
  36.  
  37. void WidgetsBase::updateDateTimeString()
  38. {
  39.     QDateTime dt;
  40.         dt.setDate( dateEdit->date() );
  41.         dt.setTime( timeEdit->time() );
  42.         dateTimeLabel->setText( dt.toString() );
  43. }
  44.  
  45.