summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-3.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-23 14:04:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-27 16:08:54 +0900
commit04913ce7a46fd027856e83a96205fdc388742a19 (patch)
treea04a117317c14854a6b91072658ba0eb3ad8b3fc /doc/html/designer-manual-3.html
parentc11c0f228b65f7471a26513ef8dbde413e75f8fa (diff)
downloadtqt-04913ce7.tar.gz
tqt-04913ce7.zip
Rename ntqobject*.h and qobject*.cpp to tqobject*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/designer-manual-3.html')
-rw-r--r--doc/html/designer-manual-3.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html
index 507316fc4..c5fcbeef4 100644
--- a/doc/html/designer-manual-3.html
+++ b/doc/html/designer-manual-3.html
@@ -532,7 +532,7 @@ body { background: #ffffff; color: black; }
int g = color.<a href="ntqcolor.html#green">green</a>();
int b = color.<a href="ntqcolor.html#blue">blue</a>();
statusBar()-&gt;message( TQString( "%1 \"%2\" (%3,%4,%5)%6 {%7 %8 %9}" ).
- arg( <a href="ntqobject.html#name-prop">name</a> ).
+ arg( <a href="tqobject.html#name-prop">name</a> ).
arg( color.<a href="ntqcolor.html#name">name</a>().upper() ).
arg( r ).arg( g ).arg( b ).
arg( isWebColor( color ) ? " web" : "" ).
@@ -768,11 +768,11 @@ Captures: cap(1) cap(2) cap(3) cap(4)
{
<a href="ntqstring.html">TQString</a> name;
<a href="ntqwidget.html">TQWidget</a> *visible = colorWidgetStack-&gt;visibleWidget();
- statusBar()-&gt;message( TQString( "Deleting '%1'" ).arg( <a href="ntqobject.html#name-prop">name</a> ) );
+ statusBar()-&gt;message( TQString( "Deleting '%1'" ).arg( <a href="tqobject.html#name-prop">name</a> ) );
if ( <a href="ntqwidget.html#visible-prop">visible</a> == tablePage &amp;&amp; colorTable-&gt;numRows() ) {
int row = colorTable-&gt;currentRow();
- <a href="ntqobject.html#name-prop">name</a> = colorTable-&gt;text( row, 0 );
+ <a href="tqobject.html#name-prop">name</a> = colorTable-&gt;text( row, 0 );
colorTable-&gt;removeRow( colorTable-&gt;currentRow() );
if ( row &lt; colorTable-&gt;numRows() )
colorTable-&gt;setCurrentCell( row, 0 );
@@ -782,7 +782,7 @@ Captures: cap(1) cap(2) cap(3) cap(4)
}
else if ( <a href="ntqwidget.html#visible-prop">visible</a> == iconsPage &amp;&amp; colorIconView-&gt;currentItem() ) {
<a href="qiconviewitem.html">TQIconViewItem</a> *item = colorIconView-&gt;currentItem();
- <a href="ntqobject.html#name-prop">name</a> = item-&gt;<a href="qtableitem.html#text">text</a>();
+ <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 {
@@ -798,12 +798,12 @@ Captures: cap(1) cap(2) cap(3) cap(4)
}
if ( ! name.<a href="ntqstring.html#isNull">isNull</a>() ) {
- m_colors.remove( <a href="ntqobject.html#name-prop">name</a> );
+ m_colors.remove( <a href="tqobject.html#name-prop">name</a> );
m_changed = TRUE;
- statusBar()-&gt;message( TQString( "Deleted '%1'" ).arg( <a href="ntqobject.html#name-prop">name</a> ), 5000 );
+ statusBar()-&gt;message( TQString( "Deleted '%1'" ).arg( <a href="tqobject.html#name-prop">name</a> ), 5000 );
}
else
- statusBar()-&gt;message( TQString( "Failed to delete '%1'" ).arg( <a href="ntqobject.html#name-prop">name</a> ), 5000 );
+ statusBar()-&gt;message( TQString( "Failed to delete '%1'" ).arg( <a href="tqobject.html#name-prop">name</a> ), 5000 );
}
</pre>
<p>If the user is viewing the table view we delete the current row. We set the new current cell to be the one following the deleted row, or if the one we deleted was last, its predecessor. We mark the <em>other</em> view (the icon view) as dirty, to make sure that it is updated if the user switches views. Similarly, if the user is viewing the icon view, we make the next (or previous if there is no next) item current and delete the one they were on. We then mark the table view as dirty. If we deleted a color (i.e. there was a current color in one of the views), we remove it from the <tt>m_colors</tt> map and mark the data as changed.</p>