Compare commits
	
		
			2 commits
		
	
	
		
			b5110b759e
			...
			cd2343e57d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| cd2343e57d | |||
| bccf43f1f7 | 
					 3 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -26,6 +26,11 @@ RootWrapper::RootWrapper(QString rootPath)
 | 
			
		|||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
RootWrapper::~RootWrapper() {
 | 
			
		||||
	// event loop may no longer be running so deleteLater is not an option
 | 
			
		||||
	delete this->root;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void RootWrapper::reloadGraph(bool hard) {
 | 
			
		||||
	if (this->root != nullptr) {
 | 
			
		||||
		this->engine.clearComponentCache();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
#include <qobject.h>
 | 
			
		||||
#include <qqmlengine.h>
 | 
			
		||||
#include <qtclasshelpermacros.h>
 | 
			
		||||
#include <qtmetamacros.h>
 | 
			
		||||
#include <qurl.h>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -13,6 +14,8 @@ class RootWrapper: public QObject {
 | 
			
		|||
 | 
			
		||||
public:
 | 
			
		||||
	explicit RootWrapper(QString rootPath);
 | 
			
		||||
	~RootWrapper() override;
 | 
			
		||||
	Q_DISABLE_COPY_MOVE(RootWrapper);
 | 
			
		||||
 | 
			
		||||
	void reloadGraph(bool hard);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,6 +35,7 @@ void DataStream::onReaderDestroyed() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void DataStream::onBytesAvailable() {
 | 
			
		||||
	if (this->mReader == nullptr) return;
 | 
			
		||||
	auto buf = this->ioDevice()->readAll();
 | 
			
		||||
	this->mReader->parseBytes(buf, this->buffer);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue