summaryrefslogtreecommitdiffstats
path: root/doc/html/qfd-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-15 19:08:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-18 09:31:41 +0900
commita30f5359f03c3017fa19a6770fab32d25d22cb87 (patch)
treecb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/qfd-example.html
parent25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff)
downloadtqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz
tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qfd-example.html')
-rw-r--r--doc/html/qfd-example.html78
1 files changed, 39 insertions, 39 deletions
diff --git a/doc/html/qfd-example.html b/doc/html/qfd-example.html
index 449904f41..9760dc945 100644
--- a/doc/html/qfd-example.html
+++ b/doc/html/qfd-example.html
@@ -71,9 +71,9 @@ public slots:
protected:
<a href="tqsize.html">TQSize</a> cellSize() const;
- void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a>* );
+ void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a>* );
private:
- <a href="ntqfont.html">TQFont</a> tablefont;
+ <a href="tqfont.html">TQFont</a> tablefont;
int row;
};
@@ -102,12 +102,12 @@ public:
#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="qspinbox-h.html">ntqspinbox.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="tqpainter-h.html">tqpainter.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;
+#include &lt;<a href="tqfontdialog-h.html">tqfontdialog.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -128,18 +128,18 @@ public:
TQSize <a name="f532"></a>FontRowTable::cellSize() const
{
- <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="tqwidget.html#fontMetrics">fontMetrics</a>();
-<a name="x1990"></a><a name="x1989"></a> return TQSize( fm.<a href="ntqfontmetrics.html#maxWidth">maxWidth</a>(), fm.<a href="ntqfontmetrics.html#lineSpacing">lineSpacing</a>()+1 );
+ <a href="tqfontmetrics.html">TQFontMetrics</a> fm = <a href="tqwidget.html#fontMetrics">fontMetrics</a>();
+<a name="x1990"></a><a name="x1989"></a> return TQSize( fm.<a href="tqfontmetrics.html#maxWidth">maxWidth</a>(), fm.<a href="tqfontmetrics.html#lineSpacing">lineSpacing</a>()+1 );
}
-<a name="x1995"></a>void FontRowTable::<a href="ntqframe.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a>* e )
+<a name="x1995"></a>void FontRowTable::<a href="ntqframe.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a>* e )
{
TQFrame::<a href="ntqframe.html#paintEvent">paintEvent</a>(e);
- <a href="ntqpainter.html">TQPainter</a> p(this);
-<a name="x2002"></a><a name="x1999"></a> p.<a href="ntqpainter.html#setClipRegion">setClipRegion</a>(e-&gt;<a href="qpaintevent.html#region">region</a>());
-<a name="x2001"></a> <a href="ntqrect.html">TQRect</a> r = e-&gt;<a href="qpaintevent.html#rect">rect</a>();
- <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>());
+ <a href="tqpainter.html">TQPainter</a> p(this);
+<a name="x2002"></a><a name="x1999"></a> p.<a href="tqpainter.html#setClipRegion">setClipRegion</a>(e-&gt;<a href="tqpaintevent.html#region">region</a>());
+<a name="x2001"></a> <a href="ntqrect.html">TQRect</a> r = e-&gt;<a href="tqpaintevent.html#rect">rect</a>();
+ <a href="tqfontmetrics.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="tqfontmetrics.html#minLeftBearing">minLeftBearing</a>());
int mt = <a href="ntqframe.html#frameWidth">frameWidth</a>()+margin();
<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);
@@ -151,13 +151,13 @@ TQSize <a name="f532"></a>FontRowTable::cellSize() const
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>();
+<a name="x1986"></a> int h = fm.<a href="tqfontmetrics.html#height">height</a>();
- <a href="ntqcolor.html">TQColor</a> body(255,255,192);
- <a href="ntqcolor.html">TQColor</a> negative(255,192,192);
- <a href="ntqcolor.html">TQColor</a> positive(192,192,255);
- <a href="ntqcolor.html">TQColor</a> rnegative(255,128,128);
- <a href="ntqcolor.html">TQColor</a> rpositive(128,128,255);
+ <a href="tqcolor.html">TQColor</a> body(255,255,192);
+ <a href="tqcolor.html">TQColor</a> negative(255,192,192);
+ <a href="tqcolor.html">TQColor</a> positive(192,192,255);
+ <a href="tqcolor.html">TQColor</a> rnegative(255,128,128);
+ <a href="tqcolor.html">TQColor</a> rpositive(128,128,255);
for (int j = minj; j&lt;=maxj; j++) {
for (int i = mini; i&lt;=maxi; i++) {
@@ -167,29 +167,29 @@ TQSize <a name="f532"></a>FontRowTable::cellSize() const
<a href="qchar.html">TQChar</a> ch = TQChar(j*16+i,row);
-<a name="x1987"></a> if ( fm.<a href="ntqfontmetrics.html#inFont">inFont</a>(ch) ) {
-<a name="x1994"></a> int w = fm.<a href="ntqfontmetrics.html#width">width</a>(ch);
-<a name="x1988"></a> int l = fm.<a href="ntqfontmetrics.html#leftBearing">leftBearing</a>(ch);
-<a name="x1993"></a> int r = fm.<a href="ntqfontmetrics.html#rightBearing">rightBearing</a>(ch);
+<a name="x1987"></a> if ( fm.<a href="tqfontmetrics.html#inFont">inFont</a>(ch) ) {
+<a name="x1994"></a> int w = fm.<a href="tqfontmetrics.html#width">width</a>(ch);
+<a name="x1988"></a> int l = fm.<a href="tqfontmetrics.html#leftBearing">leftBearing</a>(ch);
+<a name="x1993"></a> int r = fm.<a href="tqfontmetrics.html#rightBearing">rightBearing</a>(ch);
x += ml;
y += mt+h;
-<a name="x1998"></a> p.<a href="ntqpainter.html#fillRect">fillRect</a>(x,y,w,-h,body);
+<a name="x1998"></a> p.<a href="tqpainter.html#fillRect">fillRect</a>(x,y,w,-h,body);
if ( w ) {
if ( l ) {
- p.<a href="ntqpainter.html#fillRect">fillRect</a>(x+(l&gt;0?0:l), y-h/2, abs(l),-h/2,
+ p.<a href="tqpainter.html#fillRect">fillRect</a>(x+(l&gt;0?0:l), y-h/2, abs(l),-h/2,
l &lt; 0 ? negative : positive);
}
if ( r ) {
- p.<a href="ntqpainter.html#fillRect">fillRect</a>(x+w-(r&gt;0?r:0),y+2, abs(r),-h/2,
+ p.<a href="tqpainter.html#fillRect">fillRect</a>(x+w-(r&gt;0?r:0),y+2, abs(r),-h/2,
r &lt; 0 ? rnegative : rpositive);
}
}
<a href="tqstring.html">TQString</a> s;
s += ch;
- p.<a href="ntqpainter.html#setPen">setPen</a>(TQPen(TQt::black));
- p.<a href="ntqpainter.html#drawText">drawText</a>(x,y,s);
+ p.<a href="tqpainter.html#setPen">setPen</a>(TQPen(TQt::black));
+ p.<a href="tqpainter.html#drawText">drawText</a>(x,y,s);
}
}
}
@@ -200,16 +200,16 @@ void <a name="f533"></a>FontRowTable::setRow(int r)
{
row = r;
- <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="tqwidget.html#fontMetrics">fontMetrics</a>();
- <a href="ntqfontinfo.html">TQFontInfo</a> fi = <a href="tqwidget.html#fontInfo">fontInfo</a>();
+ <a href="tqfontmetrics.html">TQFontMetrics</a> fm = <a href="tqwidget.html#fontMetrics">fontMetrics</a>();
+ <a href="tqfontinfo.html">TQFontInfo</a> fi = <a href="tqwidget.html#fontInfo">fontInfo</a>();
<a href="tqstring.html">TQString</a> str = TQString("%1 %2pt%3%4 mLB=%5 mRB=%6 mW=%7")
-<a name="x1983"></a> .arg(fi.<a href="ntqfontinfo.html#family">family</a>())
-<a name="x1985"></a> .arg(fi.<a href="ntqfontinfo.html#pointSize">pointSize</a>())
-<a name="x1982"></a> .arg(fi.<a href="ntqfontinfo.html#bold">bold</a>() ? " bold" : "")
-<a name="x1984"></a> .arg(fi.<a href="ntqfontinfo.html#italic">italic</a>() ? " italic" : "")
- .arg(fm.<a href="ntqfontmetrics.html#minLeftBearing">minLeftBearing</a>())
-<a name="x1992"></a> .arg(fm.<a href="ntqfontmetrics.html#minRightBearing">minRightBearing</a>())
- .arg(fm.<a href="ntqfontmetrics.html#maxWidth">maxWidth</a>());
+<a name="x1983"></a> .arg(fi.<a href="tqfontinfo.html#family">family</a>())
+<a name="x1985"></a> .arg(fi.<a href="tqfontinfo.html#pointSize">pointSize</a>())
+<a name="x1982"></a> .arg(fi.<a href="tqfontinfo.html#bold">bold</a>() ? " bold" : "")
+<a name="x1984"></a> .arg(fi.<a href="tqfontinfo.html#italic">italic</a>() ? " italic" : "")
+ .arg(fm.<a href="tqfontmetrics.html#minLeftBearing">minLeftBearing</a>())
+<a name="x1992"></a> .arg(fm.<a href="tqfontmetrics.html#minRightBearing">minRightBearing</a>())
+ .arg(fm.<a href="tqfontmetrics.html#maxWidth">maxWidth</a>());
emit fontInformation(str);
<a href="tqwidget.html#update">update</a>();
@@ -218,8 +218,8 @@ void <a name="f533"></a>FontRowTable::setRow(int r)
void <a name="f534"></a>FontRowTable::chooseFont()
{
bool ok;
- <a href="ntqfont.html">TQFont</a> oldfont = tablefont;
-<a name="x1981"></a> tablefont = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>(&amp;ok, oldfont, this);
+ <a href="tqfont.html">TQFont</a> oldfont = tablefont;
+<a name="x1981"></a> tablefont = TQFontDialog::<a href="tqfontdialog.html#getFont">getFont</a>(&amp;ok, oldfont, this);
if (ok)
<a href="tqwidget.html#setFont">setFont</a>(tablefont);
@@ -262,7 +262,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="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;