| 12345678910111213141516171819202122232425262728 |
- #include "showdisplaytext.h"
- ShowDisplayText::ShowDisplayText()
- {
- this->stop = false;
- }
- ShowDisplayText::~ShowDisplayText()
- {
- qDebug()<<QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss")\
- <<"ShowDisplayText Destroyed.";
- }
- void ShowDisplayText::abort()
- {
- this->stop = true;
- }
- void ShowDisplayText::run()
- {
- int i=1;
- while(!stop)
- {
- if(i>6)
- i=1;
- emit showText(QString(".").leftJustified(i++,'.'));
- msleep(500);
- }
- }
|