summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/browseof.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/browseof.cpp')
-rw-r--r--rbutil/rbutilqt/browseof.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/browseof.cpp b/rbutil/rbutilqt/browseof.cpp
index 93b768c263..28cde9c6fe 100644
--- a/rbutil/rbutilqt/browseof.cpp
+++ b/rbutil/rbutilqt/browseof.cpp
@@ -27,25 +27,25 @@ BrowseOF::BrowseOF(QWidget *parent) : QDialog(parent)
27{ 27{
28 ui.setupUi(this); 28 ui.setupUi(this);
29 this->setModal(true); 29 this->setModal(true);
30 30
31 connect(ui.browseOFButton,SIGNAL(clicked()),this,SLOT(onBrowse())); 31 connect(ui.browseOFButton,SIGNAL(clicked()),this,SLOT(onBrowse()));
32} 32}
33 33
34void BrowseOF::setFile(QString file) 34void BrowseOF::setFile(QString file)
35{ 35{
36 ui.OFlineEdit->setText(file); 36 ui.OFlineEdit->setText(file);
37} 37}
38 38
39void BrowseOF::onBrowse() 39void BrowseOF::onBrowse()
40{ 40{
41 BrowseDirtree browser(this); 41 BrowseDirtree browser(this);
42 browser.setFilter(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot); 42 browser.setFilter(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot);
43 43
44 if(QFileInfo(ui.OFlineEdit->text()).exists()) 44 if(QFileInfo(ui.OFlineEdit->text()).exists())
45 { 45 {
46 browser.setDir(ui.OFlineEdit->text()); 46 browser.setDir(ui.OFlineEdit->text());
47 } 47 }
48 48
49 if(browser.exec() == QDialog::Accepted) 49 if(browser.exec() == QDialog::Accepted)
50 { 50 {
51 qDebug() << browser.getSelected(); 51 qDebug() << browser.getSelected();