diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-29 12:43:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-29 12:43:23 +0900 |
commit | fef846914f8db6dc117e206ef913d519bf6bb33e (patch) | |
tree | d6567b31f7f22d0c8c66eec947dff1960efa25ac /doc/html/scrollview-example.html | |
parent | 8ef4ea451dd81dd66b34ed31aaa631f6df24a192 (diff) | |
download | tqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.tar.gz tqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.zip |
Rename basic widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/scrollview-example.html')
-rw-r--r-- | doc/html/scrollview-example.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html index 9437e1d1e..c23b0321c 100644 --- a/doc/html/scrollview-example.html +++ b/doc/html/scrollview-example.html @@ -47,11 +47,11 @@ optimized for very large contents. ** *****************************************************************************/ -#include <<a href="qscrollview-h.html">ntqscrollview.h</a>> +#include <<a href="tqscrollview-h.html">tqscrollview.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqpixmap-h.html">tqpixmap.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> @@ -82,7 +82,7 @@ public: int b=0; for (int y=0; y<2000-h; y+=h+10) { if (y == 0) { - <a href="ntqbutton.html">TQButton</a>* q=new <a href="ntqpushbutton.html">TQPushButton</a>("Quit", this); + <a href="ntqbutton.html">TQButton</a>* q=new <a href="tqpushbutton.html">TQPushButton</a>("Quit", this); connect(q, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>())); } else { <a href="tqstring.html">TQString</a> str; @@ -92,7 +92,7 @@ public: str = "I'm shrinking!"; ++b; } - (new <a href="ntqpushbutton.html">TQPushButton</a>(str, this))->move(y/2,y); + (new <a href="tqpushbutton.html">TQPushButton</a>(str, this))->move(y/2,y); } } resize(1000,2000); @@ -118,11 +118,11 @@ signals: void clicked(int,int); }; -class BigMatrix : public <a href="ntqscrollview.html">TQScrollView</a> { +class BigMatrix : public <a href="tqscrollview.html">TQScrollView</a> { <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *dragging; public: BigMatrix(TQWidget* parent) : - <a href="ntqscrollview.html">TQScrollView</a>(parent,"matrix", WStaticContents), + <a href="tqscrollview.html">TQScrollView</a>(parent,"matrix", WStaticContents), bg("bg.ppm") { <a name="x640"></a> bg.<a href="tqpixmap.html#load">load</a>("bg.ppm"); @@ -267,24 +267,24 @@ public: corn_id = vp_options-><a href="tqmenudata.html#insertItem">insertItem</a>( "cornerWidget" ); if (technique == 1) { - vp = new <a href="ntqscrollview.html">TQScrollView</a>(this); -<a name="x655"></a> BigShrinker *bs = new BigShrinker(0);//(vp-><a href="ntqscrollview.html#viewport">viewport</a>()); -<a name="x645"></a> vp-><a href="ntqscrollview.html#addChild">addChild</a>(bs); + vp = new <a href="tqscrollview.html">TQScrollView</a>(this); +<a name="x655"></a> BigShrinker *bs = new BigShrinker(0);//(vp-><a href="tqscrollview.html#viewport">viewport</a>()); +<a name="x645"></a> vp-><a href="tqscrollview.html#addChild">addChild</a>(bs); <a name="x659"></a> bs-><a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>(TRUE); TQObject::<a href="tqobject.html#connect">connect</a>(bs, TQ_SIGNAL(clicked(int,int)), -<a name="x646"></a> vp, TQ_SLOT(<a href="ntqscrollview.html#center">center</a>(int,int))); +<a name="x646"></a> vp, TQ_SLOT(<a href="tqscrollview.html#center">center</a>(int,int))); } else { vp = new BigMatrix(this); if ( technique == 3 ) -<a name="x648"></a> vp-><a href="ntqscrollview.html#enableClipper">enableClipper</a>(TRUE); +<a name="x648"></a> vp-><a href="tqscrollview.html#enableClipper">enableClipper</a>(TRUE); srand(1); for (int i=0; i<30; i++) { - <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *l = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>(vp-><a href="ntqscrollview.html#viewport">viewport</a>(),"First"); + <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *l = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>(vp-><a href="tqscrollview.html#viewport">viewport</a>(),"First"); l-><a href="tqtextedit.html#setText">setText</a>("Drag out more of these."); l-><a href="tqwidget.html#resize">resize</a>(100,100); - vp-><a href="ntqscrollview.html#addChild">addChild</a>(l, rand()%800, rand()%10000); + vp-><a href="tqscrollview.html#addChild">addChild</a>(l, rand()%800, rand()%10000); } - vp-><a href="ntqscrollview.html#viewport">viewport</a>()->setBackgroundMode(NoBackground); + vp-><a href="tqscrollview.html#viewport">viewport</a>()->setBackgroundMode(NoBackground); } f_options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar ); @@ -355,20 +355,20 @@ private slots: void doVPMenuItem(int id) { if (id == vauto_id ) { -<a name="x653"></a> vp-><a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::Auto); +<a name="x653"></a> vp-><a href="tqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::Auto); } else if (id == vaoff_id) { - vp-><a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOff); + vp-><a href="tqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOff); } else if (id == vaon_id) { - vp-><a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOn); + vp-><a href="tqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOn); } else if (id == hauto_id) { -<a name="x652"></a> vp-><a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::Auto); +<a name="x652"></a> vp-><a href="tqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::Auto); } else if (id == haoff_id) { - vp-><a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOff); + vp-><a href="tqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOff); } else if (id == haon_id) { - vp-><a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOn); + vp-><a href="tqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOn); } else if (id == corn_id) { -<a name="x647"></a> bool corn = !vp-><a href="ntqscrollview.html#cornerWidget">cornerWidget</a>(); -<a name="x651"></a> vp-><a href="ntqscrollview.html#setCornerWidget">setCornerWidget</a>(corn ? corner : 0); +<a name="x647"></a> bool corn = !vp-><a href="tqscrollview.html#cornerWidget">cornerWidget</a>(); +<a name="x651"></a> vp-><a href="tqscrollview.html#setCornerWidget">setCornerWidget</a>(corn ? corner : 0); } else { return; // Not for us to process. } @@ -377,17 +377,17 @@ private slots: void setVPMenuItems() { -<a name="x654"></a> TQScrollView::ScrollBarMode vm = vp-><a href="ntqscrollview.html#vScrollBarMode">vScrollBarMode</a>(); +<a name="x654"></a> TQScrollView::ScrollBarMode vm = vp-><a href="tqscrollview.html#vScrollBarMode">vScrollBarMode</a>(); <a name="x636"></a> vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( vauto_id, vm == TQScrollView::Auto ); vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( vaoff_id, vm == TQScrollView::AlwaysOff ); vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( vaon_id, vm == TQScrollView::AlwaysOn ); -<a name="x649"></a> TQScrollView::ScrollBarMode hm = vp-><a href="ntqscrollview.html#hScrollBarMode">hScrollBarMode</a>(); +<a name="x649"></a> TQScrollView::ScrollBarMode hm = vp-><a href="tqscrollview.html#hScrollBarMode">hScrollBarMode</a>(); vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( hauto_id, hm == TQScrollView::Auto ); vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( haoff_id, hm == TQScrollView::AlwaysOff ); vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( haon_id, hm == TQScrollView::AlwaysOn ); - vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( corn_id, !!vp-><a href="ntqscrollview.html#cornerWidget">cornerWidget</a>() ); + vp_options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( corn_id, !!vp-><a href="tqscrollview.html#cornerWidget">cornerWidget</a>() ); } void doFMenuItem(int id) @@ -444,7 +444,7 @@ private slots: } private: - <a href="ntqscrollview.html">TQScrollView</a>* vp; + <a href="tqscrollview.html">TQScrollView</a>* vp; <a href="tqpopupmenu.html">TQPopupMenu</a>* vp_options; <a href="tqpopupmenu.html">TQPopupMenu</a>* f_options; <a href="tqpopupmenu.html">TQPopupMenu</a>* lw_options; |