diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/docs/examples/frame | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/examples/frame')
-rw-r--r-- | kjsembed/docs/examples/frame/frame.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kjsembed/docs/examples/frame/frame.js b/kjsembed/docs/examples/frame/frame.js index d19fc4de..b14be202 100644 --- a/kjsembed/docs/examples/frame/frame.js +++ b/kjsembed/docs/examples/frame/frame.js @@ -1,26 +1,26 @@ #!/usr/bin/env kjscmd -// Demo of QFrame and enum support +// Demo of TQFrame and enum support function add_frame( parent ) { - var v = new QVBox( parent ); + var v = new TQVBox( parent ); v.margin = 6; - return new QFrame( v ); + return new TQFrame( v ); } -var top = new QVBox(); -var hbox = new QHBox( top ); +var top = new TQVBox(); +var hbox = new TQHBox( top ); var f = add_frame( hbox ); -f.frameShape = QFrame.Box; +f.frameShape = TQFrame.Box; f = add_frame( hbox ); -f.frameShape = QFrame.WinPanel | QFrame.Sunken; +f.frameShape = TQFrame.WinPanel | TQFrame.Sunken; f = add_frame( hbox ); -f.frameShape = QFrame.PopupPanel; +f.frameShape = TQFrame.PopupPanel; top.resize(300,200); |