summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/widgets/MyWidgetView.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/widgets/MyWidgetView.java')
-rw-r--r--qtjava/javalib/examples/widgets/MyWidgetView.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qtjava/javalib/examples/widgets/MyWidgetView.java b/qtjava/javalib/examples/widgets/MyWidgetView.java
index db42cb9a..968a13ea 100644
--- a/qtjava/javalib/examples/widgets/MyWidgetView.java
+++ b/qtjava/javalib/examples/widgets/MyWidgetView.java
@@ -19,7 +19,7 @@ public MyWidgetView( )
this(null, null);
}
-public MyWidgetView( QWidget parent, String name )
+public MyWidgetView( TQWidget parent, String name )
{
super(parent, name);
s = 0;
@@ -28,7 +28,7 @@ public MyWidgetView( QWidget parent, String name )
void button1Clicked()
{
- ArrayList styles = QStyleFactory.keys();
+ ArrayList styles = TQStyleFactory.keys();
s = (++s)%styles.size();
qApp().setStyle( (String) styles.get(s) );
@@ -42,8 +42,8 @@ public MyWidgetView( QWidget parent, String name )
public static void main(String[] args)
{
- QApplication.setColorSpec( QApplication.CustomColor );
- QApplication a = new QApplication( args );
+ TQApplication.setColorSpec( TQApplication.CustomColor );
+ TQApplication a = new TQApplication( args );
MyWidgetView w = new MyWidgetView();
a.setMainWidget( w );