summaryrefslogtreecommitdiffstats
path: root/doc/html/qfd-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qfd-example.html')
-rw-r--r--doc/html/qfd-example.html46
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 &lt;<a href="qframe-h.html">ntqframe.h</a>&gt;
-#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
+#include &lt;<a href="tqmainwindow-h.html">tqmainwindow.h</a>&gt;
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>&amp;);
@@ -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 &lt;<a href="qslider-h.html">ntqslider.h</a>&gt;
#include &lt;<a href="qspinbox-h.html">ntqspinbox.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
-#include &lt;<a href="qtoolbar-h.html">ntqtoolbar.h</a>&gt;
-#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.h</a>&gt;
+#include &lt;<a href="tqtoolbar-h.html">tqtoolbar.h</a>&gt;
+#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
#include &lt;<a href="qfontdialog-h.html">ntqfontdialog.h</a>&gt;
@@ -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&lt;=maxj; j++) {
for (int i = mini; i&lt;=maxi; i++) {
if ( i &lt; 16 &amp;&amp; j &lt; 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-&gt;<a href="ntqtoolbar.html#addSeparator">addSeparator</a>();
+<a name="x2010"></a> controls-&gt;<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>&amp;)),
- <a href="ntqmainwindow.html#statusBar">statusBar</a>(),TQ_SLOT(message(const <a href="tqstring.html">TQString</a>&amp;)));
+ <a href="tqmainwindow.html#statusBar">statusBar</a>(),TQ_SLOT(message(const <a href="tqstring.html">TQString</a>&amp;)));
table-&gt;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 &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="qslider-h.html">ntqslider.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
-#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.h</a>&gt;
+#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
@@ -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>()-&gt;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>()-&gt;height());
+<a name="x2013"></a> <a href="tqsize.html">TQSize</a> sh = m.<a href="tqmainwindow.html#centralWidget">centralWidget</a>()-&gt;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>()-&gt;height());
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(&amp;m);
m.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - TQFD");
<a name="x2014"></a> m.<a href="tqwidget.html#show">show</a>();