diff options
Diffstat (limited to 'doc/html/qfd-example.html')
-rw-r--r-- | doc/html/qfd-example.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/html/qfd-example.html b/doc/html/qfd-example.html index 1543b538e..e4e90a68a 100644 --- a/doc/html/qfd-example.html +++ b/doc/html/qfd-example.html @@ -57,7 +57,7 @@ class TQSlider; class FontRowTable : public <a href="ntqframe.html">TQFrame</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: - FontRowTable( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); + FontRowTable( <a href="tqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); <a href="ntqsize.html">TQSize</a> sizeHint() const; @@ -80,7 +80,7 @@ private: class FontDisplayer : public <a href="ntqmainwindow.html">TQMainWindow</a> { TQ_OBJECT public: - FontDisplayer( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); + FontDisplayer( <a href="tqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); }; #endif @@ -111,24 +111,24 @@ public: #include <stdlib.h> -<a name="f531"></a>FontRowTable::FontRowTable( <a href="ntqwidget.html">TQWidget</a>* parent, const char* name ) : +<a name="f531"></a>FontRowTable::FontRowTable( <a href="tqwidget.html">TQWidget</a>* parent, const char* name ) : <a href="ntqframe.html">TQFrame</a>(parent,name) { - <a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>(PaletteBase); + <a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>(PaletteBase); <a href="ntqframe.html#setFrameStyle">setFrameStyle</a>(Panel|Sunken); <a href="ntqframe.html#setMargin">setMargin</a>(8); setRow(0); <a name="x1979"></a> tablefont = TQApplication::<a href="ntqapplication.html#font">font</a>(); } -<a name="x1996"></a>TQSize FontRowTable::<a href="ntqwidget.html#sizeHint">sizeHint</a>() const +<a name="x1996"></a>TQSize FontRowTable::<a href="tqwidget.html#sizeHint">sizeHint</a>() const { return 24*cellSize()+TQSize(2,2)*(<a href="ntqframe.html#margin">margin</a>()+frameWidth()); } TQSize <a name="f532"></a>FontRowTable::cellSize() const { - <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="ntqwidget.html#fontMetrics">fontMetrics</a>(); + <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 ); } @@ -138,10 +138,10 @@ TQSize <a name="f532"></a>FontRowTable::cellSize() const <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-><a href="qpaintevent.html#region">region</a>()); <a name="x2001"></a> <a href="ntqrect.html">TQRect</a> r = e-><a href="qpaintevent.html#rect">rect</a>(); - <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="ntqwidget.html#fontMetrics">fontMetrics</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>()); int mt = <a href="ntqframe.html#frameWidth">frameWidth</a>()+margin(); - <a href="ntqsize.html">TQSize</a> cell((<a href="ntqwidget.html#width">width</a>()-15-ml)/16,(<a href="ntqwidget.html#height">height</a>()-15-mt)/16); + <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 name="x2008"></a><a name="x2007"></a> if ( !cell.<a href="ntqsize.html#width">width</a>() || !cell.<a href="ntqsize.html#height">height</a>() ) return; @@ -200,8 +200,8 @@ void <a name="f533"></a>FontRowTable::setRow(int r) { row = r; - <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="ntqwidget.html#fontMetrics">fontMetrics</a>(); - <a href="ntqfontinfo.html">TQFontInfo</a> fi = <a href="ntqwidget.html#fontInfo">fontInfo</a>(); + <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="ntqstring.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>()) @@ -212,7 +212,7 @@ void <a name="f533"></a>FontRowTable::setRow(int r) .arg(fm.<a href="ntqfontmetrics.html#maxWidth">maxWidth</a>()); emit fontInformation(str); - <a href="ntqwidget.html#update">update</a>(); + <a href="tqwidget.html#update">update</a>(); } void <a name="f534"></a>FontRowTable::chooseFont() @@ -222,12 +222,12 @@ void <a name="f534"></a>FontRowTable::chooseFont() <a name="x1981"></a> tablefont = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>(&ok, oldfont, this); if (ok) - <a href="ntqwidget.html#setFont">setFont</a>(tablefont); + <a href="tqwidget.html#setFont">setFont</a>(tablefont); else tablefont = oldfont; } -<a name="f530"></a>FontDisplayer::FontDisplayer( <a href="ntqwidget.html">TQWidget</a>* parent, const char* name ) : +<a name="f530"></a>FontDisplayer::FontDisplayer( <a href="tqwidget.html">TQWidget</a>* parent, const char* name ) : <a href="ntqmainwindow.html">TQMainWindow</a>(parent,name) { FontRowTable* table = new FontRowTable(this); @@ -273,11 +273,11 @@ int main(int argc, char** 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="ntqwidget.html#resize">resize</a>(sh.<a href="ntqsize.html#width">width</a>(), +<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()); app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(&m); - m.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - TQFD"); -<a name="x2014"></a> m.<a href="ntqwidget.html#show">show</a>(); + m.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - TQFD"); +<a name="x2014"></a> m.<a href="tqwidget.html#show">show</a>(); return app.<a href="ntqapplication.html#exec">exec</a>(); } |