-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathfileselectorline.h
53 lines (42 loc) · 997 Bytes
/
fileselectorline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef FILESELECTORLINE_H
#define FILESELECTORLINE_H
#include <QWidget>
#include <QCompleter>
#include <QDirModel>
#include <QFileDialog>
namespace Ui {
class FileSelectorLine;
}
class FileSelectorLine : public QWidget
{
Q_OBJECT
public:
explicit FileSelectorLine(QWidget *parent = 0);
~FileSelectorLine();
/*!
* \brief set file selector widget parameter
* \param If true, it's a saveFileDialog otherwise it wold be a openFileDialog
* \param Filter on file names
*/
void setParam (bool ok, const QString & nameFilter);
/*!
* \brief Get the text in the lineedit
* \return
*/
QString text();
/*!
* \brief Set the text of the line editor
* \param s
*/
void setText (const QString & s);
private slots:
void on_toolButton_clicked();
private:
Ui::FileSelectorLine *ui;
/*!
* \brief isSaveFileDlg
*/
bool isSaveFileDlg;
QString nameFilter;
};
#endif // FILESELECTORLINE_H