diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-02 21:37:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-06 11:24:55 +0900 |
commit | 7552c6d73043b1040139033f6864db48ae5446cf (patch) | |
tree | f90d24d072dd3ee6a3f909bf7778abc7669f03ef /doc/html/qfd-example.html | |
parent | c113da2069b66130f67a0f27c699e1cec83588a5 (diff) | |
download | tqt3-7552c6d73043b1040139033f6864db48ae5446cf.tar.gz tqt3-7552c6d73043b1040139033f6864db48ae5446cf.zip |
Rename main window nt* related files to equivalent tq*. The file
"ntqsession.h" was totally unnecessary and has been removed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qfd-example.html')
-rw-r--r-- | doc/html/qfd-example.html | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/doc/html/qfd-example.html b/doc/html/qfd-example.html index b4c115b68..449904f41 100644 --- a/doc/html/qfd-example.html +++ b/doc/html/qfd-example.html @@ -50,7 +50,7 @@ This example program displays all characters of a font. #define FontDisplayer_H #include <<a href="qframe-h.html">ntqframe.h</a>> -#include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> +#include <<a href="tqmainwindow-h.html">tqmainwindow.h</a>> class TQSlider; @@ -59,7 +59,7 @@ class FontRowTable : public <a href="ntqframe.html">TQFrame</a> { public: FontRowTable( <a href="tqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); - <a href="ntqsize.html">TQSize</a> sizeHint() const; + <a href="tqsize.html">TQSize</a> sizeHint() const; signals: void fontInformation(const <a href="tqstring.html">TQString</a>&); @@ -70,14 +70,14 @@ public slots: protected: - <a href="ntqsize.html">TQSize</a> cellSize() const; + <a href="tqsize.html">TQSize</a> cellSize() const; void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a>* ); private: <a href="ntqfont.html">TQFont</a> tablefont; int row; }; -class FontDisplayer : public <a href="ntqmainwindow.html">TQMainWindow</a> { +class FontDisplayer : public <a href="tqmainwindow.html">TQMainWindow</a> { TQ_OBJECT public: FontDisplayer( <a href="tqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); @@ -103,8 +103,8 @@ public: #include <<a href="qslider-h.html">ntqslider.h</a>> #include <<a href="qspinbox-h.html">ntqspinbox.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> -#include <<a href="qtoolbar-h.html">ntqtoolbar.h</a>> -#include <<a href="qstatusbar-h.html">ntqstatusbar.h</a>> +#include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> +#include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> #include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> #include <<a href="qfontdialog-h.html">ntqfontdialog.h</a>> @@ -141,15 +141,15 @@ TQSize <a name="f532"></a>FontRowTable::cellSize() const <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="tqwidget.html#fontMetrics">fontMetrics</a>(); <a name="x1991"></a> int ml = <a href="ntqframe.html#frameWidth">frameWidth</a>()+margin() + 1 + TQMAX(0,-fm.<a href="ntqfontmetrics.html#minLeftBearing">minLeftBearing</a>()); int mt = <a href="ntqframe.html#frameWidth">frameWidth</a>()+margin(); - <a href="ntqsize.html">TQSize</a> cell((<a href="tqwidget.html#width">width</a>()-15-ml)/16,(<a href="tqwidget.html#height">height</a>()-15-mt)/16); + <a href="tqsize.html">TQSize</a> cell((<a href="tqwidget.html#width">width</a>()-15-ml)/16,(<a href="tqwidget.html#height">height</a>()-15-mt)/16); -<a name="x2008"></a><a name="x2007"></a> if ( !cell.<a href="ntqsize.html#width">width</a>() || !cell.<a href="ntqsize.html#height">height</a>() ) +<a name="x2008"></a><a name="x2007"></a> if ( !cell.<a href="tqsize.html#width">width</a>() || !cell.<a href="tqsize.html#height">height</a>() ) return; - int mini = r.<a href="ntqrect.html#left">left</a>() / cell.<a href="ntqsize.html#width">width</a>(); - int maxi = (r.<a href="ntqrect.html#right">right</a>()+cell.<a href="ntqsize.html#width">width</a>()-1) / cell.<a href="ntqsize.html#width">width</a>(); - int minj = r.<a href="ntqrect.html#top">top</a>() / cell.<a href="ntqsize.html#height">height</a>(); -<a name="x2003"></a> int maxj = (r.<a href="ntqrect.html#bottom">bottom</a>()+cell.<a href="ntqsize.html#height">height</a>()-1) / cell.<a href="ntqsize.html#height">height</a>(); + int mini = r.<a href="ntqrect.html#left">left</a>() / cell.<a href="tqsize.html#width">width</a>(); + int maxi = (r.<a href="ntqrect.html#right">right</a>()+cell.<a href="tqsize.html#width">width</a>()-1) / cell.<a href="tqsize.html#width">width</a>(); + int minj = r.<a href="ntqrect.html#top">top</a>() / cell.<a href="tqsize.html#height">height</a>(); +<a name="x2003"></a> int maxj = (r.<a href="ntqrect.html#bottom">bottom</a>()+cell.<a href="tqsize.html#height">height</a>()-1) / cell.<a href="tqsize.html#height">height</a>(); <a name="x1986"></a> int h = fm.<a href="ntqfontmetrics.html#height">height</a>(); @@ -162,8 +162,8 @@ TQSize <a name="f532"></a>FontRowTable::cellSize() const for (int j = minj; j<=maxj; j++) { for (int i = mini; i<=maxi; i++) { if ( i < 16 && j < 16 ) { - int x = i*cell.<a href="ntqsize.html#width">width</a>(); - int y = j*cell.<a href="ntqsize.html#height">height</a>(); + int x = i*cell.<a href="tqsize.html#width">width</a>(); + int y = j*cell.<a href="tqsize.html#height">height</a>(); <a href="qchar.html">TQChar</a> ch = TQChar(j*16+i,row); @@ -228,21 +228,21 @@ void <a name="f534"></a>FontRowTable::chooseFont() } <a name="f530"></a>FontDisplayer::FontDisplayer( <a href="tqwidget.html">TQWidget</a>* parent, const char* name ) : - <a href="ntqmainwindow.html">TQMainWindow</a>(parent,name) + <a href="tqmainwindow.html">TQMainWindow</a>(parent,name) { FontRowTable* table = new FontRowTable(this); - <a href="ntqtoolbar.html">TQToolBar</a>* controls = new <a href="ntqtoolbar.html">TQToolBar</a>(this); + <a href="tqtoolbar.html">TQToolBar</a>* controls = new <a href="tqtoolbar.html">TQToolBar</a>(this); (void) new <a href="ntqlabel.html">TQLabel</a>(<a href="tqobject.html#tr">tr</a>("Row:"), controls); <a href="ntqspinbox.html">TQSpinBox</a> *row = new <a href="ntqspinbox.html">TQSpinBox</a>(0,255,1,controls); -<a name="x2010"></a> controls-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); +<a name="x2010"></a> controls-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); <a href="ntqpushbutton.html">TQPushButton</a> *fontbutton = new <a href="ntqpushbutton.html">TQPushButton</a>(<a href="tqobject.html#tr">tr</a>("Font..."), controls); <a name="x2009"></a> <a href="tqobject.html#connect">connect</a>(row,TQ_SIGNAL(<a href="ntqspinbox.html#valueChanged">valueChanged</a>(int)),table,TQ_SLOT(setRow(int))); <a href="tqobject.html#connect">connect</a>(fontbutton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), table, TQ_SLOT(chooseFont())); <a href="tqobject.html#connect">connect</a>(table,TQ_SIGNAL(fontInformation(const <a href="tqstring.html">TQString</a>&)), - <a href="ntqmainwindow.html#statusBar">statusBar</a>(),TQ_SLOT(message(const <a href="tqstring.html">TQString</a>&))); + <a href="tqmainwindow.html#statusBar">statusBar</a>(),TQ_SLOT(message(const <a href="tqstring.html">TQString</a>&))); table->setRow(0); - <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>(table); + <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>(table); } </pre> @@ -263,7 +263,7 @@ void <a name="f534"></a>FontRowTable::chooseFont() #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qslider-h.html">ntqslider.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> -#include <<a href="qstatusbar-h.html">ntqstatusbar.h</a>> +#include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> @@ -272,9 +272,9 @@ int main(int argc, char** argv) <a href="ntqapplication.html">TQApplication</a> app(argc,argv); FontDisplayer m; -<a name="x2013"></a> <a href="ntqsize.html">TQSize</a> sh = m.<a href="ntqmainwindow.html#centralWidget">centralWidget</a>()->sizeHint(); -<a name="x2017"></a> m.<a href="tqwidget.html#resize">resize</a>(sh.<a href="ntqsize.html#width">width</a>(), -<a name="x2016"></a><a name="x2015"></a> sh.<a href="ntqsize.html#height">height</a>()+3*m.<a href="ntqmainwindow.html#statusBar">statusBar</a>()->height()); +<a name="x2013"></a> <a href="tqsize.html">TQSize</a> sh = m.<a href="tqmainwindow.html#centralWidget">centralWidget</a>()->sizeHint(); +<a name="x2017"></a> m.<a href="tqwidget.html#resize">resize</a>(sh.<a href="tqsize.html#width">width</a>(), +<a name="x2016"></a><a name="x2015"></a> sh.<a href="tqsize.html#height">height</a>()+3*m.<a href="tqmainwindow.html#statusBar">statusBar</a>()->height()); app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(&m); m.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - TQFD"); <a name="x2014"></a> m.<a href="tqwidget.html#show">show</a>(); |