using signal slot to update the combobox entries
This commit is contained in:
		@@ -31,7 +31,6 @@ private:
 | 
			
		||||
// functions
 | 
			
		||||
private:
 | 
			
		||||
	void setupWidgets();
 | 
			
		||||
	void setupAssetLibrary();
 | 
			
		||||
	void updateAssetTree(QString);
 | 
			
		||||
	void openFileDialog();
 | 
			
		||||
	void openFile(QString);
 | 
			
		||||
@@ -46,12 +45,13 @@ public slots:
 | 
			
		||||
	void printMessage(QString message, int severity);
 | 
			
		||||
	void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
 | 
			
		||||
 | 
			
		||||
// private slots
 | 
			
		||||
private slots:
 | 
			
		||||
	void setupAssetLibrary();
 | 
			
		||||
	void on_fileListWidget_doubleClicked(const QModelIndex &index);
 | 
			
		||||
	void on_dirDropDownList_currentTextChanged(const QString &arg1);
 | 
			
		||||
 | 
			
		||||
// signals
 | 
			
		||||
signals:
 | 
			
		||||
	void loadFile(QString);
 | 
			
		||||
 | 
			
		||||
// private slots
 | 
			
		||||
private slots:
 | 
			
		||||
	void on_fileListWidget_doubleClicked(const QModelIndex &index);
 | 
			
		||||
	void on_dirDropDownList_currentTextChanged(const QString &arg1);
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
@@ -72,4 +72,8 @@ public:
 | 
			
		||||
	void setAutoColor(int value);
 | 
			
		||||
 | 
			
		||||
	void updateDirectories(QString path);
 | 
			
		||||
 | 
			
		||||
// signals
 | 
			
		||||
signals:
 | 
			
		||||
	void dirsChanged();
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user