summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial2-08.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial2-08.html')
-rw-r--r--doc/html/tutorial2-08.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html
index 05fb03c07..ba69ea915 100644
--- a/doc/html/tutorial2-08.html
+++ b/doc/html/tutorial2-08.html
@@ -216,10 +216,10 @@ create a blank pixmap of that size.
TQString( "%1" ).arg( element.value(), 0, 'f',
m_decimalPlaces ) );
- <a href="ntqcolor.html">TQColor</a> color = element.valueColor();
+ <a href="tqcolor.html">TQColor</a> color = element.valueColor();
pix.<a href="ntqpixmap.html#fill">fill</a>( color );
table-&gt;<a href="ntqtable.html#setPixmap">setPixmap</a>( i, 1, pix );
- table-&gt;<a href="ntqtable.html#setText">setText</a>( i, 1, color.<a href="ntqcolor.html#name">name</a>() );
+ table-&gt;<a href="ntqtable.html#setText">setText</a>( i, 1, color.<a href="tqcolor.html#name">name</a>() );
<a href="ntqcombobox.html">TQComboBox</a> *combobox = new <a href="ntqcombobox.html">TQComboBox</a>;
for ( int j = 0; j &lt; MAX_PATTERNS; ++j )
@@ -232,7 +232,7 @@ create a blank pixmap of that size.
color = element.labelColor();
<a name="x2606"></a> pix.<a href="ntqpixmap.html#fill">fill</a>( color );
<a name="x2623"></a> table-&gt;<a href="ntqtable.html#setPixmap">setPixmap</a>( i, 4, pix );
- <a name="x2624"></a><a name="x2600"></a> table-&gt;<a href="ntqtable.html#setText">setText</a>( i, 4, color.<a href="ntqcolor.html#name">name</a>() );
+ <a name="x2624"></a><a name="x2600"></a> table-&gt;<a href="ntqtable.html#setText">setText</a>( i, 4, color.<a href="tqcolor.html#name">name</a>() );
</pre>
<p> For each element in the element vector we must populate the table.
<p> If the element is valid we write its value in the first column (column
@@ -290,19 +290,19 @@ function and put the focus back into the table.
if ( !( col == 1 || col == 4 ) )
return;
- <a name="x2601"></a> <a href="ntqcolor.html">TQColor</a> color = TQColorDialog::<a href="ntqcolordialog.html#getColor">getColor</a>(
+ <a name="x2601"></a> <a href="tqcolor.html">TQColor</a> color = TQColorDialog::<a href="tqcolordialog.html#getColor">getColor</a>(
TQColor( table-&gt;<a href="ntqtable.html#text">text</a>( row, col ) ),
this, "color dialog" );
- <a name="x2599"></a> if ( color.<a href="ntqcolor.html#isValid">isValid</a>() ) {
+ <a name="x2599"></a> if ( color.<a href="tqcolor.html#isValid">isValid</a>() ) {
<a name="x2617"></a> <a href="ntqpixmap.html">TQPixmap</a> pix = table-&gt;<a href="ntqtable.html#pixmap">pixmap</a>( row, col );
pix.<a href="ntqpixmap.html#fill">fill</a>( color );
table-&gt;<a href="ntqtable.html#setPixmap">setPixmap</a>( row, col, pix );
- table-&gt;<a href="ntqtable.html#setText">setText</a>( row, col, color.<a href="ntqcolor.html#name">name</a>() );
+ table-&gt;<a href="ntqtable.html#setText">setText</a>( row, col, color.<a href="tqcolor.html#name">name</a>() );
}
}
</pre>
<p> If this function is called with the focus on a color cell we call
-the static <a href="ntqcolordialog.html#getColor">TQColorDialog::getColor</a>() dialog to get the user's choice of
+the static <a href="tqcolordialog.html#getColor">TQColorDialog::getColor</a>() dialog to get the user's choice of
color. If they chose a color we fill the color cell's pixmap with that
color and set the cell's text to the new color's name.
<p> <pre> <a name="x2604"></a>void SetDataForm::<a href="ntqdialog.html#accept">accept</a>()
@@ -328,7 +328,7 @@ color and set the cell's text to the new color's name.
<p> If the user clicks OK we must update the elements vector. We iterate
over the vector and set each element's value to the value the user has
entered or <tt>INVALID</tt> if the value is invalid. We set the value color
-and the label color by constructing <a href="ntqcolor.html">TQColor</a> temporaries that take a
+and the label color by constructing <a href="tqcolor.html">TQColor</a> temporaries that take a
color name as argument. The pattern is set to the pattern combobox's
current item with an offset of 1 (since our pattern numbers begin at
1, but the combobox's items are indexed from 0).