summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-3.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/designer-manual-3.html')
-rw-r--r--doc/html/designer-manual-3.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html
index a4da7992a..e0dd2b3f0 100644
--- a/doc/html/designer-manual-3.html
+++ b/doc/html/designer-manual-3.html
@@ -415,7 +415,7 @@ body { background: #ffffff; color: black; }
TQMap<TQString,TQColor>::ConstIterator it;
for ( it = m_colors.constBegin(); it != m_colors.constEnd(); ++it )
- (void) new <a href="qiconviewitem.html">TQIconViewItem</a>( colorIconView, it.key(),
+ (void) new <a href="tqiconviewitem.html">TQIconViewItem</a>( colorIconView, it.key(),
colorSwatch( it.data() ) );
m_icons_dirty = FALSE;
}
@@ -426,7 +426,7 @@ body { background: #ffffff; color: black; }
<p>If the user wants to see if which colors are web colors we create a <a href="qchecktableitem.html">TQCheckTableItem</a>, and check it if it is a web color. (We'll cover <tt>isWebColor()</tt> shortly.) We then insert this <a href="qchecktableitem.html">TQCheckTableItem</a> into the "Web" column.</p>
<p>Having populated the table we call <tt>adjustColumn()</tt> to ensure that each column is just wide enough to show its widest entry, and show or hide the "Web" column depending on the user's preference.</p>
<p>Finally we set <tt>m_table_dirty</tt> to FALSE, since it is now up-to-date.</p>
-<p>If the icon view is "dirty" we <tt>clear()</tt> it of any existing data. We then iterate over each color in our colors map. For each color we create a new <a href="qiconviewitem.html">TQIconViewItem</a>; we label the item with the user's color name and provide a pixmap (generated by <tt>colorSwatch()</tt>, covered shortly) in the relevant color. Finally we set <tt>m_icons_dirty</tt> to "FALSE", since it is now up-to-date.</p>
+<p>If the icon view is "dirty" we <tt>clear()</tt> it of any existing data. We then iterate over each color in our colors map. For each color we create a new <a href="tqiconviewitem.html">TQIconViewItem</a>; we label the item with the user's color name and provide a pixmap (generated by <tt>colorSwatch()</tt>, covered shortly) in the relevant color. Finally we set <tt>m_icons_dirty</tt> to "FALSE", since it is now up-to-date.</p>
<h4><a name="6-10"></a>isWebColor()</h4>
<pre> bool MainForm::isWebColor( <a href="ntqcolor.html">TQColor</a> color )
{
@@ -516,12 +516,12 @@ body { background: #ffffff; color: black; }
</pre>
<p>We connected to this slot so that we'd know whenever the user moved or clicked in the table view. We call the <tt>changedColor()</tt> function (which we'll see in a moment) with the name of the current color. Note that we don't care about the column argument, so we could have left it out. Don't forget to name the changedTableColor parameter to "int row".</p>
<h4><a name="6-17"></a>changedIconColor()</h4>
-<pre> void MainForm::changedIconColor( <a href="qiconviewitem.html">TQIconViewItem</a> *item )
+<pre> void MainForm::changedIconColor( <a href="tqiconviewitem.html">TQIconViewItem</a> *item )
{
changedColor( item-&gt;<a href="qtableitem.html#text">text</a>() );
}
</pre>
- <p>This slot is connected for the same purpose as <tt>changedTableColor()</tt>, above. It also calls <tt>changedColor()</tt> with the name of the current color. (If you're cutting and pasting the code don't forget to name the <a href="qiconviewitem.html">TQIconViewItem</a> parameter "item".)</p>
+ <p>This slot is connected for the same purpose as <tt>changedTableColor()</tt>, above. It also calls <tt>changedColor()</tt> with the name of the current color. (If you're cutting and pasting the code don't forget to name the <a href="tqiconviewitem.html">TQIconViewItem</a> parameter "item".)</p>
<h4><a name="6-18"></a>changedColor()</h4>
<p>This is a function that we need to write from scratch. Simply enter its code into <em>TQt Designer</em>'s code editor and it will automatically appear in Object Explorer's Members tab (under Functions, public).</p>
<p>By default any function that it typed directly into the code editor becomes a public function. To change this, right click the function's name in Object Explorer's Members list, and click <b>Properties</b> to invoke the <em>Edit Functions</em> dialog. This dialog can be used to change various attributes of the function, including changing it into a slot.</p>
@@ -781,14 +781,14 @@ Captures: cap(1) cap(2) cap(3) cap(4)
m_icons_dirty = TRUE;
}
else if ( <a href="tqwidget.html#visible-prop">visible</a> == iconsPage &amp;&amp; colorIconView-&gt;currentItem() ) {
- <a href="qiconviewitem.html">TQIconViewItem</a> *item = colorIconView-&gt;currentItem();
+ <a href="tqiconviewitem.html">TQIconViewItem</a> *item = colorIconView-&gt;currentItem();
<a href="tqobject.html#name-prop">name</a> = item-&gt;<a href="qtableitem.html#text">text</a>();
if ( colorIconView-&gt;count() == 1 )
colorIconView-&gt;clear();
else {
- <a href="qiconviewitem.html">TQIconViewItem</a> *current = item-&gt;<a href="qiconviewitem.html#nextItem">nextItem</a>();
+ <a href="tqiconviewitem.html">TQIconViewItem</a> *current = item-&gt;<a href="tqiconviewitem.html#nextItem">nextItem</a>();
if ( ! current )
- current = item-&gt;<a href="qiconviewitem.html#prevItem">prevItem</a>();
+ current = item-&gt;<a href="tqiconviewitem.html#prevItem">prevItem</a>();
delete item;
if ( current )
colorIconView-&gt;setCurrentItem( current );
@@ -818,7 +818,7 @@ Captures: cap(1) cap(2) cap(3) cap(4)
text = colorTable-&gt;text( row, 0 );
}
else if ( <a href="tqwidget.html#visible-prop">visible</a> == iconsPage &amp;&amp; colorIconView-&gt;currentItem() ) {
- <a href="qiconviewitem.html">TQIconViewItem</a> *item = colorIconView-&gt;currentItem();
+ <a href="tqiconviewitem.html">TQIconViewItem</a> *item = colorIconView-&gt;currentItem();
text = item-&gt;<a href="qtableitem.html#text">text</a>();
}
if ( ! text.<a href="tqstring.html#isNull">isNull</a>() ) {