mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 12:26:39 +00:00 
			
		
		
		
	Fix folder name. Keep Qt optional. Move open dialogue from doc to tools. Rename 'load' to 'open'. Deleted wrong comment.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			628 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			628 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef FILEDIALOG_HPP
 | 
						|
#define FILEDIALOG_HPP
 | 
						|
 | 
						|
#include <QFileDialog>
 | 
						|
 | 
						|
class QPushButton;
 | 
						|
 | 
						|
class FileDialog : public QFileDialog
 | 
						|
{
 | 
						|
    Q_OBJECT
 | 
						|
 | 
						|
public:
 | 
						|
    FileDialog(QWidget *parent = 0);
 | 
						|
 | 
						|
    static QString getExistingDirectory(QWidget *parent = 0,
 | 
						|
                                            const QString &caption = QString(),
 | 
						|
                                            const QString &dir = QString(),
 | 
						|
                                            Options options = ShowDirsOnly);
 | 
						|
 | 
						|
private slots:
 | 
						|
    void updateChooseButton(const QString &directory);
 | 
						|
 | 
						|
private:
 | 
						|
    QPushButton *mChooseButton;
 | 
						|
};
 | 
						|
 | 
						|
 | 
						|
#endif // FILEDIALOG_HPP
 |