You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
598 B
C++
32 lines
598 B
C++
2 years ago
|
// ClearThread.cpp: implementation of the CClearThread class.
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#include "ClearThread.h"
|
||
|
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
// Construction/Destruction
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
CClearThread::CClearThread(QTextEdit *pEdit)
|
||
|
{
|
||
|
m_pEditWidget = pEdit;
|
||
|
}
|
||
|
|
||
|
CClearThread::~CClearThread()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void CClearThread::run()
|
||
|
{
|
||
|
qDebug("clear thread start... ...");
|
||
|
|
||
|
if(m_pEditWidget)
|
||
|
{
|
||
|
m_pEditWidget->clear();
|
||
|
}
|
||
|
|
||
|
qDebug("clear thread finished");
|
||
|
}
|