|
@@ -33,6 +33,8 @@
|
|
|
#include <ktextedit.h>
|
|
|
#include <kurl.h>
|
|
|
#include <kurlrequester.h>
|
|
|
+#include <kfiledialog.h>
|
|
|
+#include <kprocess.h>
|
|
|
#include "ktigcc.h"
|
|
|
|
|
|
void ToolProperties::init()
|
|
@@ -67,3 +69,12 @@ void ToolProperties::validate()
|
|
|
|| (KURL(workingDirectory->url()).isValid()
|
|
|
&& KURL(workingDirectory->url()).isLocalFile())));
|
|
|
}
|
|
|
+
|
|
|
+void ToolProperties::browseButton_clicked()
|
|
|
+{
|
|
|
+ QString ret=KFileDialog::getOpenFileName("/usr/bin",
|
|
|
+ "application/x-executable application/x-executable-script",this,
|
|
|
+ "Choose executable");
|
|
|
+ if (!ret.isEmpty())
|
|
|
+ commandLine->setText(KProcess::quote(ret));
|
|
|
+}
|