unknown 2 years ago
parent a64e2ca42c
commit 47c122d90a

@ -1,31 +0,0 @@
// 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");
}

@ -1,24 +0,0 @@
// ClearThread.h: interface for the CClearThread class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CLEARTHREAD_H__17C9FD37_21E1_4FC2_83D4_942D1DE68D4B__INCLUDED_)
#define AFX_CLEARTHREAD_H__17C9FD37_21E1_4FC2_83D4_942D1DE68D4B__INCLUDED_
#include <qthread.h>
#include <qtextedit.h>
class CClearThread : public QThread
{
public:
CClearThread(QTextEdit *pEdit);
virtual ~CClearThread();
private:
QTextEdit *m_pEditWidget;
protected:
virtual void run();
};
#endif // !defined(AFX_CLEARTHREAD_H__17C9FD37_21E1_4FC2_83D4_942D1DE68D4B__INCLUDED_)
Loading…
Cancel
Save