summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/widgets/tqmenudata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqmenudata.cpp')
-rw-r--r--tqtinterface/qt4/src/widgets/tqmenudata.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqmenudata.cpp b/tqtinterface/qt4/src/widgets/tqmenudata.cpp
index 2061254..925ed22 100644
--- a/tqtinterface/qt4/src/widgets/tqmenudata.cpp
+++ b/tqtinterface/qt4/src/widgets/tqmenudata.cpp
@@ -469,7 +469,7 @@ int TQMenuData::insertItem( const TQIconSet& icon,
be displayed to the left of the text in the item.
To look best when being highlighted as a menu item, the pixmap
- should provide a tqmask (see TQPixmap::tqmask()).
+ should provide a mask (see TQPixmap::mask()).
Returns the allocated menu identifier number (\a id if \a id >= 0).
@@ -500,7 +500,7 @@ int TQMenuData::insertItem( const QPixmap &pixmap,
receiver object.
To look best when being highlighted as a menu item, the pixmap
- should provide a tqmask (see TQPixmap::tqmask()).
+ should provide a mask (see TQPixmap::mask()).
Returns the allocated menu identifier number (\a id if \a id >= 0).
@@ -565,7 +565,7 @@ int TQMenuData::insertItem( const TQIconSet& icon,
Inserts a menu item with text \a text, submenu \a popup, optional
id \a id, and optional \a index position.
- The \a popup must be deleted by the programmer or by its tqparent
+ The \a popup must be deleted by the programmer or by its parent
widget. It is not deleted when this menu item is removed or when
the menu is deleted.
@@ -588,7 +588,7 @@ int TQMenuData::insertItem( const QString &text, TQPopupMenu *popup,
popup, optional id \a id, and optional \a index position. The icon
will be displayed to the left of the text in the item.
- The \a popup must be deleted by the programmer or by its tqparent
+ The \a popup must be deleted by the programmer or by its parent
widget. It is not deleted when this menu item is removed or when
the menu is deleted.
@@ -611,7 +611,7 @@ int TQMenuData::insertItem( const TQIconSet& icon,
optional \a index position.
To look best when being highlighted as a menu item, the pixmap
- should provide a tqmask (see TQPixmap::tqmask()).
+ should provide a mask (see TQPixmap::mask()).
Returns the allocated menu identifier number (\a id if \a id >= 0).
@@ -648,7 +648,7 @@ int TQMenuData::insertItem( const TQIconSet& icon,
Inserts a menu item with pixmap \a pixmap, submenu \a popup,
optional id \a id, and optional \a index position.
- The \a popup must be deleted by the programmer or by its tqparent
+ The \a popup must be deleted by the programmer or by its parent
widget. It is not deleted when this menu item is removed or when
the menu is deleted.
@@ -671,7 +671,7 @@ int TQMenuData::insertItem( const QPixmap &pixmap, TQPopupMenu *popup,
popup, optional id \a id, and optional \a index position. The icon
will be displayed to the left of the pixmap in the item.
- The \a popup must be deleted by the programmer or by its tqparent
+ The \a popup must be deleted by the programmer or by its parent
widget. It is not deleted when this menu item is removed or when
the menu is deleted.
@@ -801,9 +801,9 @@ int TQMenuData::insertSeparator( int index )
void TQMenuData::removeItem( int id )
{
- TQMenuData *tqparent;
- if ( findItem( id, &tqparent ) )
- tqparent->removeItemAt(tqparent->indexOf(id));
+ TQMenuData *parent;
+ if ( findItem( id, &parent ) )
+ parent->removeItemAt(parent->indexOf(id));
}
/*!
@@ -926,11 +926,11 @@ TQKeySequence TQMenuData::accel( int id ) const
void TQMenuData::setAccel( const TQKeySequence& key, int id )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi ) {
mi->accel_key = key;
- tqparent->menuContentsChanged();
+ parent->menuContentsChanged();
}
}
@@ -1012,8 +1012,8 @@ TQPixmap *TQMenuData::pixmap( int id ) const
void TQMenuData::changeItem( int id, const TQString &text )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi ) { // item found
if ( mi->text_data == text ) // same string
return;
@@ -1026,7 +1026,7 @@ void TQMenuData::changeItem( int id, const TQString &text )
if ( !mi->accel_key && text.find( '\t' ) != -1 )
mi->accel_key = TQt::Key_unknown;
#endif
- tqparent->menuContentsChanged();
+ parent->menuContentsChanged();
}
}
@@ -1041,8 +1041,8 @@ void TQMenuData::changeItem( int id, const TQString &text )
void TQMenuData::changeItem( int id, const TQPixmap &pixmap )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi ) { // item found
register TQPixmap *i = mi->pixmap_data;
bool fast_refresh = i != 0 &&
@@ -1057,9 +1057,9 @@ void TQMenuData::changeItem( int id, const TQPixmap &pixmap )
mi->pixmap_data = 0;
delete i; // old mi->pixmap_data, could be &pixmap
if ( fast_refresh )
- tqparent->updateItem( id );
+ parent->updateItem( id );
else
- tqparent->menuContentsChanged();
+ parent->menuContentsChanged();
}
}
@@ -1103,8 +1103,8 @@ void TQMenuData::changeItem( int id, const TQIconSet &icon, const TQPixmap &pixm
void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi ) { // item found
register TQIconSet *i = mi->iconset_data;
bool fast_refresh = i != 0;
@@ -1114,9 +1114,9 @@ void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon )
mi->iconset_data = 0;
delete i; // old mi->iconset_data, could be &icon
if ( fast_refresh )
- tqparent->updateItem( id );
+ parent->updateItem( id );
else
- tqparent->menuContentsChanged();
+ parent->menuContentsChanged();
}
}
@@ -1143,15 +1143,15 @@ bool TQMenuData::isItemEnabled( int id ) const
void TQMenuData::setItemEnabled( int id, bool enable )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi && (bool)mi->is_enabled != enable ) {
mi->is_enabled = enable;
#if !defined(TQT_NO_ACCEL) && !defined(TQT_NO_POPUPMENU)
if ( mi->popup() )
mi->popup()->enableAccel( enable );
#endif
- tqparent->menuStateChanged();
+ parent->menuStateChanged();
}
}
@@ -1190,15 +1190,15 @@ bool TQMenuData::isItemChecked( int id ) const
void TQMenuData::setItemChecked( int id, bool check )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi && (bool)mi->is_checked != check ) {
mi->is_checked = check;
#ifndef TQT_NO_POPUPMENU
- if ( tqparent->isPopupMenu && !((TQPopupMenu *)tqparent)->isCheckable() )
- ((TQPopupMenu *)tqparent)->setCheckable( TRUE );
+ if ( parent->isPopupMenu && !((TQPopupMenu *)parent)->isCheckable() )
+ ((TQPopupMenu *)parent)->setCheckable( TRUE );
#endif
- tqparent->menuStateChanged();
+ parent->menuStateChanged();
}
}
@@ -1224,11 +1224,11 @@ bool TQMenuData::isItemVisible( int id ) const
void TQMenuData::setItemVisible( int id, bool visible )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi && (bool)mi->is_visible != visible ) {
mi->is_visible = visible;
- tqparent->menuContentsChanged();
+ parent->menuContentsChanged();
}
}
@@ -1255,8 +1255,8 @@ TQMenuItem *TQMenuData::findItem( int id ) const
\overload
Returns the menu item with identifier \a id, or 0 if there is no
- item with this identifier. Changes \a *tqparent to point to the
- tqparent of the return value.
+ item with this identifier. Changes \a *parent to point to the
+ parent of the return value.
Note that TQMenuItem is an internal class, and that you should not
need to call this function. Use the higher level functions like
@@ -1266,10 +1266,10 @@ TQMenuItem *TQMenuData::findItem( int id ) const
\sa indexOf()
*/
-TQMenuItem * TQMenuData::findItem( int id, TQMenuData ** tqparent ) const
+TQMenuItem * TQMenuData::findItem( int id, TQMenuData ** parent ) const
{
- if ( tqparent )
- *tqparent = (TQMenuData *)this; // ###
+ if ( parent )
+ *parent = (TQMenuData *)this; // ###
if ( id == -1 ) // bad identifier
return 0;
@@ -1288,7 +1288,7 @@ TQMenuItem * TQMenuData::findItem( int id, TQMenuData ** tqparent ) const
TQPopupMenu *p = mi->popup_menu;
if (!p->avoid_circularity) {
p->avoid_circularity = 1;
- mi = mi->popup_menu->findItem( id, tqparent );
+ mi = mi->popup_menu->findItem( id, parent );
p->avoid_circularity = 0;
if ( mi ) // found item
return mi;
@@ -1441,11 +1441,11 @@ bool TQMenuData::disconnectItem( int id, const TQT_BASE_OBJECT_NAME *receiver,
void TQMenuData::setWhatsThis( int id, const TQString& text )
{
- TQMenuData *tqparent;
- TQMenuItem *mi = findItem( id, &tqparent );
+ TQMenuData *parent;
+ TQMenuItem *mi = findItem( id, &parent );
if ( mi ) {
mi->setWhatsThis( text );
- tqparent->menuContentsChanged();
+ parent->menuContentsChanged();
}
}