blob: 9a00962a0114f0ce055ff00ed7f38cfc2ba3ec0b (
plain)
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
|
//import org.kde.qt.TQApplication;
//import org.kde.qt.TQDir;
import org.kde.qt.*;
public class DirTest {
public static void main(String[] args)
{
TQApplication myapp = new TQApplication(args);
TQDir mydir = new TQDir("/tmp");
if ( mydir.match(new String [] {"*.bmp", "*.h"}, "foobar.bmp") ) {
System.out.println("foobar matches");
}
if ( ! mydir.match(new String[] {"*.bmp", "*.h"}, "baz.cpp") ) {
System.out.println("baz doesn't match");
}
TQFile myobj = new TQFile();
Object mytest;
System.out.println("myobj: " + myobj.toString());
mytest = (TQDir) Qt.dynamicCast("TQDir", myobj);
System.out.println("mytest: " + mytest.toString());
return;
}
static {
qtjava.initialize();
}
}
|