summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/test/SignalForwarder.java
blob: 1d6f272664631257e39da0702bbd1e44f8836069 (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
31
import org.trinitydesktop.qt.*;

public class SignalForwarder extends TQDialog {

	SignalForwarder() {
		TQPushButton searchButton = new TQPushButton("Search", this);
		connect( searchButton, TQ_SIGNAL("clicked()"), this, TQ_SIGNAL("continueSearch()"));		
		connect( this, TQ_SIGNAL("continueSearch()"), this, TQ_SLOT("slotContinueSearch()"));		
	}

	public void slotContinueSearch()
	{
		System.out.println("in continueSearch()...");
	}
		
	public static void main(String[] args)
	{
		TQApplication myapp = new TQApplication(args);
		
		SignalForwarder signalForwarder = new SignalForwarder();
		myapp.setMainWidget(signalForwarder);
		signalForwarder.show();
		myapp.exec();
		
		return;
	}
	
	static {
                qtjava.initialize();
	}
}