rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 9a3f0aacd4
commit 03feb89582

@ -71,7 +71,7 @@ void BackTrace::start()
TQString exec = m_krashconf->tryExec();
if ( !exec.isEmpty() && KStandardDirs::findExe(exec).isEmpty() )
{
TQObject * o = tqparent();
TQObject * o = parent();
if (o && !o->inherits(TQWIDGET_OBJECT_NAME_STRING))
{

@ -301,10 +301,10 @@ void FileTypesView::removeType()
if (!li)
li = current->itemBelow();
if (!li)
li = current->tqparent();
li = current->parent();
removedList.append(current->name());
current->tqparent()->takeItem(current);
current->parent()->takeItem(current);
m_itemList.removeRef( current );
setDirty(true);

@ -312,7 +312,7 @@ void ModuleTreeItem::setPixmap(int column, const TQPixmap& pm)
{
if (!pm.isNull())
{
ModuleTreeItem* p = dynamic_cast<ModuleTreeItem*>(tqparent());
ModuleTreeItem* p = dynamic_cast<ModuleTreeItem*>(parent());
if (p)
p->regChildIconWidth(pm.width());
}
@ -331,7 +331,7 @@ void ModuleTreeItem::paintCell( TQPainter * p, const TQColorGroup & cg, int colu
if (!pixmap(0))
{
int offset = 0;
ModuleTreeItem* parentItem = dynamic_cast<ModuleTreeItem*>(tqparent());
ModuleTreeItem* parentItem = dynamic_cast<ModuleTreeItem*>(parent());
if (parentItem)
{
offset = parentItem->maxChildIconWidth();

@ -383,7 +383,7 @@ void KCookiesManagement::doPolicy()
if( domain.isEmpty() )
{
CookieListViewItem *parent = static_cast<CookieListViewItem*>( item->tqparent() );
CookieListViewItem *parent = static_cast<CookieListViewItem*>( item->parent() );
if ( parent )
domain = parent->domain ();
@ -407,7 +407,7 @@ void KCookiesManagement::deleteCookie(TQListViewItem* deleteItem)
CookieListViewItem *item = static_cast<CookieListViewItem*>( deleteItem );
if( item->cookie() )
{
CookieListViewItem *parent = static_cast<CookieListViewItem*>(item->tqparent());
CookieListViewItem *parent = static_cast<CookieListViewItem*>(item->parent());
CookiePropList *list = deletedCookies.find(parent->domain());
if(!list)
{

@ -639,9 +639,9 @@ void KScreenSaver::slotScreenSaver(TQListViewItem *item)
int i = 0, indx = -1;
for (SaverConfig* saver = mSaverList.first(); saver != 0; saver = mSaverList.next()) {
if ( item->tqparent() )
if ( item->parent() )
{
if ( item->tqparent()->text( 0 ) == saver->category() && saver->name() == item->text (0))
if ( item->parent()->text( 0 ) == saver->category() && saver->name() == item->text (0))
{
indx = i;
break;

@ -806,13 +806,13 @@ void Minicli::setIcon ()
{
int x = icon.width() - overlay.width();
int y = icon.height() - overlay.height();
if ( icon.tqmask() )
if ( icon.mask() )
{
TQBitmap mask = *icon.tqmask();
TQBitmap mask = *icon.mask();
bitBlt( &mask, x, y,
overlay.tqmask() ? TQT_TQPIXMAP(const_cast<TQBitmap *>(overlay.tqmask())) : &overlay,
overlay.mask() ? TQT_TQPIXMAP(const_cast<TQBitmap *>(overlay.mask())) : &overlay,
0, 0, overlay.width(), overlay.height(),
overlay.tqmask() ? OrROP : SetROP );
overlay.mask() ? OrROP : SetROP );
icon.setMask(mask);
}
bitBlt( &icon, x, y, &overlay );

@ -218,8 +218,8 @@ void StartupId::start_startupid( const TQString& icon_P )
}
else
{
if( icon_pixmap.tqmask() != NULL )
startup_widget->setMask( *icon_pixmap.tqmask());
if( icon_pixmap.mask() != NULL )
startup_widget->setMask( *icon_pixmap.mask());
else
startup_widget->clearMask();
startup_widget->setBackgroundPixmap( icon_pixmap );
@ -257,8 +257,8 @@ void StartupId::update_startupid()
yoffset = frame_to_yoffset[ frame ];
TQPixmap pm = pixmaps[ frame_to_pixmap[ frame ] ];
startup_widget->setBackgroundPixmap( pm );
if ( pm.tqmask() != NULL )
startup_widget->setMask( *pm.tqmask() );
if ( pm.mask() != NULL )
startup_widget->setMask( *pm.mask() );
else
startup_widget->clearMask();
if ( ++frame >= ( sizeof( frame_to_yoffset ) / sizeof( frame_to_yoffset[ 0 ] ) ) )

@ -621,7 +621,7 @@ KdmItem::parentWidget() const
if (!this->parent())
return 0;
if (tqparent()->qt_cast(TQWIDGET_OBJECT_NAME_STRING))
if (parent()->qt_cast(TQWIDGET_OBJECT_NAME_STRING))
return (TQWidget*)parent();
return ((KdmItem*)parent())->parentWidget();
}

@ -147,7 +147,7 @@ public:
TQString baseDir() const
{
if (basedir.isEmpty() && parent())
return static_cast<KdmItem *>( tqparent()->qt_cast( "KdmItem" ) )->baseDir();
return static_cast<KdmItem *>( parent()->qt_cast( "KdmItem" ) )->baseDir();
return basedir;
}

@ -311,7 +311,7 @@ void Glossary::slotSelectGlossEntry( const TQString &id )
if ( curItem != 0 ) {
if ( curItem->id() == id )
return;
curItem->tqparent()->setOpen( false );
curItem->parent()->setOpen( false );
}
setCurrentItem( newItem );

@ -261,8 +261,8 @@ TOCSectionItem::TOCSectionItem( TOC *toc, TOCChapterItem *parent, TQListViewItem
TQString TOCSectionItem::url()
{
if ( static_cast<TOCSectionItem *>( tqparent()->firstChild() ) == this )
return static_cast<TOCChapterItem *>( tqparent() )->url() + "#" + m_name;
if ( static_cast<TOCSectionItem *>( parent()->firstChild() ) == this )
return static_cast<TOCChapterItem *>( parent() )->url() + "#" + m_name;
return "help:" + toc()->application() + "/" + m_name + ".html";
}

@ -151,7 +151,7 @@ void Action_list_widget::copy_pressed()
if ( !selected_item )
return;
actions_listview->setSelected( create_listview_item( selected_item->action(),
selected_item->tqparent() ? NULL : actions_listview, selected_item->tqparent(),
selected_item->parent() ? NULL : actions_listview, selected_item->parent(),
selected_item, true ), true );
}

@ -92,7 +92,7 @@ void Actions_listview_widget::new_action( Action_data_base* data_P )
if( dynamic_cast< Action_data_group* >( current_action()->data()) != NULL )
parent = current_action();
else
parent = current_action()->tqparent();
parent = current_action()->parent();
}
if( parent )
parent->setOpen( true );
@ -124,7 +124,7 @@ void Actions_listview_widget::delete_action()
void Actions_listview_widget::item_moved( TQListViewItem* item_P, TQListViewItem*, TQListViewItem* )
{
Action_listview_item* item = static_cast< Action_listview_item* >( item_P );
Action_listview_item* parent = static_cast< Action_listview_item* >( item->tqparent());
Action_listview_item* parent = static_cast< Action_listview_item* >( item->parent());
if( parent == NULL )
item->data()->reparent( module->actions_root());
else if( Action_data_group* group = dynamic_cast< Action_data_group* >( parent->data()))

@ -165,9 +165,9 @@ void Condition_list_widget::new_selected( int type_P )
parent = NULL;
}
}
if( parent == NULL && selected_item != NULL && selected_item->tqparent() != NULL )
if( parent == NULL && selected_item != NULL && selected_item->parent() != NULL )
{
parent = static_cast< Condition_list_item* >( selected_item->tqparent());
parent = static_cast< Condition_list_item* >( selected_item->parent());
after = selected_item;
}
Condition_list_base* parent_cond = parent
@ -217,8 +217,8 @@ void Condition_list_widget::copy_pressed()
return;
conditions_listview->setSelected( create_listview_item(
selected_item->condition()->copy( selected_item->condition()->parent()),
selected_item->tqparent() ? NULL : conditions_listview,
static_cast< Condition_list_item* >( selected_item->tqparent()),
selected_item->parent() ? NULL : conditions_listview,
static_cast< Condition_list_item* >( selected_item->parent()),
selected_item, true ), true );
}

@ -134,7 +134,7 @@ void Windowdef_list_widget::new_selected( int type_P )
void Windowdef_list_widget::copy_pressed()
{
windows_listview->setSelected( create_listview_item( selected_item->window(),
selected_item->tqparent() ? NULL : windows_listview, selected_item->tqparent(),
selected_item->parent() ? NULL : windows_listview, selected_item->parent(),
selected_item, true ), true );
}

@ -151,7 +151,7 @@ void Zone::getSelectedZonelist(KListView *listView)
root = root->nextSibling();
continue;
}
root = root->tqparent();
root = root->parent();
if (root)
root = root->nextSibling();
}

@ -1200,10 +1200,10 @@ void ContainerArea::dropEvent(TQDropEvent *ev)
return;
}
TQObject *parent = ev->source() ? ev->source()->tqparent() : 0;
TQObject *parent = ev->source() ? ev->source()->parent() : 0;
while (parent && (TQT_BASE_OBJECT(parent) != TQT_BASE_OBJECT(this)))
{
parent = parent->tqparent();
parent = parent->parent();
}
if (parent)

@ -178,7 +178,7 @@ void MenuManager::kmenuAccelActivated()
// let's unhide the panel while we're at it. traverse the widget
// hierarchy until we find the panel, if any
TQObject* menuParent = button->tqparent();
TQObject* menuParent = button->parent();
while (menuParent)
{
ExtensionContainer* ext = dynamic_cast<ExtensionContainer*>(menuParent);
@ -192,7 +192,7 @@ void MenuManager::kmenuAccelActivated()
break;
}
menuParent = menuParent->tqparent();
menuParent = menuParent->parent();
}
button->showMenu();
}

@ -31,7 +31,7 @@ KickoffSearch::Plugin::~Plugin()
KickoffSearch::KickoffSearchInterface* KickoffSearch::Plugin::kickoffSearchInterface()
{
return static_cast<KickoffSearchInterface*>( tqparent()->child( 0, "KickoffSearch::KickoffSearchInterface" ) );
return static_cast<KickoffSearchInterface*>( parent()->child( 0, "KickoffSearch::KickoffSearchInterface" ) );
}
#include "kickoff-search-plugin.moc"

@ -58,7 +58,7 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
// this is part of the kiosk support in kicker, allowing
// one to block users from adding new containers
ContainerArea* area = 0;
TQObject* findTheArea = parent ? parent->tqparent() : 0;
TQObject* findTheArea = parent ? parent->parent() : 0;
while (findTheArea)
{
area = dynamic_cast<ContainerArea*>(findTheArea);
@ -68,7 +68,7 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
break;
}
findTheArea = findTheArea->tqparent();
findTheArea = findTheArea->parent();
}
if (!area || area->canAddContainers())

@ -761,7 +761,7 @@ void ItemView::slotMoveContent()
int item_height = 0;
TQListViewItemIterator it( this );
while ( it.current() ) {
if ( !dynamic_cast<KMenuSpacer*>( it.current() ) && !it.current()->tqparent() && it.current()->isVisible() ) {
if ( !dynamic_cast<KMenuSpacer*>( it.current() ) && !it.current()->parent() && it.current()->isVisible() ) {
it.current()->invalidateHeight();
item_height += it.current()->totalHeight();
}
@ -1022,14 +1022,14 @@ TQDragObject * ItemView::dragObject()
TQBitmap mask;
if (pix.tqmask())
mask = *pix.tqmask();
if (pix.mask())
mask = *pix.mask();
else {
mask.resize(pix.size());
mask.fill(Qt::color1);
}
bitBlt( &mask, pix.width()-add.width(), pix.height()-add.height(), add.tqmask(), 0, 0, add.width(), add.height(), OrROP );
bitBlt( &mask, pix.width()-add.width(), pix.height()-add.height(), add.mask(), 0, 0, add.width(), add.height(), OrROP );
pix.setMask( mask );
o->setPixmap(pix);
@ -1070,7 +1070,7 @@ int ItemView::goodHeight()
int item_height = 0;
TQListViewItemIterator it( this );
while ( it.current() ) {
if ( !dynamic_cast<KMenuSpacer*>( it.current() ) && !it.current()->tqparent() && it.current()->isVisible() ) {
if ( !dynamic_cast<KMenuSpacer*>( it.current() ) && !it.current()->parent() && it.current()->isVisible() ) {
item_height += it.current()->height();
}
++it;

@ -322,7 +322,7 @@ void ThumbnailProtocol::get(const KURL &url)
p.drawLine( 0, 0, 0, y2 );
p.end();
const TQBitmap *mask = pix.tqmask();
const TQBitmap *mask = pix.mask();
if ( mask ) // need to update it so we can see the frame
{
TQBitmap bitmap( *mask );

@ -331,14 +331,14 @@ void ActionWidget::slotContextMenu( KListView *, TQListViewItem *item,
KPopupMenu *menu = new KPopupMenu;
addCmd = menu->insertItem( i18n("Add Command") );
rmCmd = menu->insertItem( i18n("Remove Command") );
if ( !item->tqparent() ) {// no "command" item
if ( !item->parent() ) {// no "command" item
menu->setItemEnabled( rmCmd, false );
item->setOpen( true );
}
int id = menu->exec( pos );
if ( id == addCmd ) {
TQListViewItem *p = item->tqparent() ? item->tqparent() : item;
TQListViewItem *p = item->parent() ? item->parent() : item;
TQListViewItem *cmdItem = new TQListViewItem( p, item,
i18n("Click here to set the command to be executed"),
i18n("<new command>") );
@ -352,7 +352,7 @@ void ActionWidget::slotContextMenu( KListView *, TQListViewItem *item,
void ActionWidget::slotItemChanged( TQListViewItem *item, const TQPoint&, int col )
{
if ( !item->tqparent() || col != 0 )
if ( !item->parent() || col != 0 )
return;
ClipCommand command( item->text(0), item->text(1) );
item->setPixmap( 0, SmallIcon( command.pixmap.isEmpty() ?
@ -371,8 +371,8 @@ void ActionWidget::slotAddAction()
void ActionWidget::slotDeleteAction()
{
TQListViewItem *item = listView->currentItem();
if ( item && item->tqparent() )
item = item->tqparent();
if ( item && item->parent() )
item = item->parent();
delete item;
}

@ -808,11 +808,11 @@ void TreeView::slotDropped (TQDropEvent * e, TQListViewItem *parent, TQListViewI
m_drag = 0;
return;
}
tmpItem = static_cast<TreeItem*>(tmpItem->tqparent() );
tmpItem = static_cast<TreeItem*>(tmpItem->parent() );
}
// Remove MenuFolderInfo
TreeItem *oldParentItem = static_cast<TreeItem*>(m_dragItem->tqparent());
TreeItem *oldParentItem = static_cast<TreeItem*>(m_dragItem->parent());
MenuFolderInfo *oldParentFolderInfo = oldParentItem ? oldParentItem->folderInfo() : m_rootFolder;
oldParentFolderInfo->take(folderInfo);
@ -1017,7 +1017,7 @@ void TreeView::newsubmenu()
}
else
{
parentItem = static_cast<TreeItem*>(item->tqparent());
parentItem = static_cast<TreeItem*>(item->parent());
folder = parentItem ? parentItem->directory() : TQString::null;
}
@ -1093,7 +1093,7 @@ void TreeView::newitem()
}
else
{
parentItem = static_cast<TreeItem*>(item->tqparent());
parentItem = static_cast<TreeItem*>(item->parent());
folder = parentItem ? parentItem->directory() : TQString::null;
}
@ -1139,7 +1139,7 @@ void TreeView::newsep()
}
else
{
parentItem = static_cast<TreeItem*>(item->tqparent());
parentItem = static_cast<TreeItem*>(item->parent());
}
// create the TreeItem
@ -1181,7 +1181,7 @@ void TreeView::copy( bool cutting )
if (item == 0) return;
if (cutting)
setLayoutDirty((TreeItem*)item->tqparent());
setLayoutDirty((TreeItem*)item->parent());
// clean up old stuff
cleanupClipboard();
@ -1256,7 +1256,7 @@ void TreeView::paste()
}
else
{
parentItem = static_cast<TreeItem*>(item->tqparent());
parentItem = static_cast<TreeItem*>(item->parent());
folder = parentItem ? parentItem->directory() : TQString::null;
}
@ -1384,7 +1384,7 @@ void TreeView::del()
void TreeView::del(TreeItem *item, bool deleteInfo)
{
TreeItem *parentItem = static_cast<TreeItem*>(item->tqparent());
TreeItem *parentItem = static_cast<TreeItem*>(item->parent());
// is file a .directory or a .desktop file
if(item->isDirectory())
{

@ -376,7 +376,7 @@ KEBListViewItem* ListView::getItemAtAddress(const TQString &address) const {
void ListView::setOpen(bool open) {
for (TQListViewItemIterator it(m_listView); it.current() != 0; ++it)
if (it.current()->tqparent())
if (it.current()->parent())
it.current()->setOpen(open);
}
@ -456,7 +456,7 @@ void ListView::updateListView()
{
KEBListViewItem * item = static_cast<KEBListViewItem*>(m_listView->currentItem());
if(item->isEmptyFolderPadder())
s_current_address = static_cast<KEBListViewItem*>(item->tqparent())->bookmark().address();
s_current_address = static_cast<KEBListViewItem*>(item->parent())->bookmark().address();
else
s_current_address = item->bookmark().address();
}
@ -804,7 +804,7 @@ TQDragObject *KEBListView::dragObject() {
bool KEBListViewItem::parentSelected(TQListViewItem * item)
{
TQListViewItem *root = item->listView()->firstChild();
for( TQListViewItem *parent = item->tqparent(); parent ; parent = parent->tqparent())
for( TQListViewItem *parent = item->parent(); parent ; parent = parent->parent())
if (parent->isSelected() && parent != root)
return true;
return false;
@ -814,7 +814,7 @@ void KEBListViewItem::setSelected(bool s)
{
if( isEmptyFolderPadder())
{
tqparent()->setSelected(true);
parent()->setSelected(true);
return;
}
@ -904,7 +904,7 @@ KEBListViewItem::KEBListViewItem(TQListView *parent, TQListViewItem *after, cons
// DESIGN - move this into kbookmark or into a helper
void KEBListViewItem::setOpen(bool open) {
if (!tqparent())
if (!parent())
return;
m_bookmark.internalElement().setAttribute("folded", open ? "no" : "yes");
TQListViewItem::setOpen(open);

@ -1046,7 +1046,7 @@ TQObject *KonqMainWindow::lastFrame( KonqView *view )
viewFrame = 0;
while ( nextFrame != 0 && ! nextFrame->inherits( TQWIDGETSTACK_OBJECT_NAME_STRING ) ) {
viewFrame = nextFrame;
nextFrame = nextFrame->tqparent();
nextFrame = nextFrame->parent();
}
return nextFrame ? viewFrame : 0L;
}

@ -989,13 +989,13 @@ void KonqBaseListViewWidget::slotReturnPressed( TQListViewItem *_item )
// calculate nesting depth
int nestingDepth = 0;
for (TQListViewItem *currentItem = _item->tqparent();
for (TQListViewItem *currentItem = _item->parent();
currentItem != 0;
currentItem = currentItem->tqparent())
currentItem = currentItem->parent())
nestingDepth++;
// no parent no indent
if (_item->tqparent() == 0)
if (_item->parent() == 0)
nestingDepth = 0;
// Root decoration means additional indent
@ -1371,13 +1371,13 @@ KonqBaseListViewWidget::iterator& KonqBaseListViewWidget::iterator::operator++()
m_p = i;
return *this;
}
m_p = (KonqBaseListViewItem *)m_p->tqparent();
m_p = (KonqBaseListViewItem *)m_p->parent();
while ( m_p )
{
if ( m_p->nextSibling() )
break;
m_p = (KonqBaseListViewItem *)m_p->tqparent();
m_p = (KonqBaseListViewItem *)m_p->parent();
}
if ( m_p )
@ -1402,13 +1402,13 @@ KonqBaseListViewWidget::iterator KonqBaseListViewWidget::iterator::operator++(in
m_p = i;
return it;
}
m_p = (KonqBaseListViewItem *)m_p->tqparent();
m_p = (KonqBaseListViewItem *)m_p->parent();
while ( m_p )
{
if ( m_p->nextSibling() )
break;
m_p = (KonqBaseListViewItem *)m_p->tqparent();
m_p = (KonqBaseListViewItem *)m_p->parent();
}
if ( m_p )

@ -52,7 +52,7 @@ void KonqSidebarPlugin::handlePreviewOnMouseOver(const KFileItem& /*items*/) {}
bool KonqSidebarPlugin::universalMode() {
if (!parent()) return false;
KonqSidebarIface *ksi=static_cast<KonqSidebarIface*>(tqparent()->qt_cast("KonqSidebarIface"));
KonqSidebarIface *ksi=static_cast<KonqSidebarIface*>(parent()->qt_cast("KonqSidebarIface"));
if (!ksi) return false;
kdDebug()<<"calling KonqSidebarIface->universalMode()"<<endl;
return ksi->universalMode();

@ -1123,7 +1123,7 @@ void Sidebar_Widget::createNewWindow( const KURL &url, const KParts::URLArgs &ar
void Sidebar_Widget::enableAction( const char * name, bool enabled )
{
if (TQT_TQOBJECT_CONST(sender())->tqparent()->isA("ButtonInfo"))
if (TQT_TQOBJECT_CONST(sender())->parent()->isA("ButtonInfo"))
{
ButtonInfo *btninfo = static_cast<ButtonInfo*>(sender()->parent());
if (btninfo)
@ -1148,7 +1148,7 @@ void Sidebar_Widget::enableAction( const char * name, bool enabled )
bool Sidebar_Widget::doEnableActions()
{
if (!(TQT_TQOBJECT_CONST(sender())->tqparent()->isA("ButtonInfo")))
if (!(TQT_TQOBJECT_CONST(sender())->parent()->isA("ButtonInfo")))
{
kdDebug()<<"Couldn't set active module, aborting"<<endl;
return false;
@ -1299,9 +1299,9 @@ void Sidebar_Widget::resizeEvent(TQResizeEvent* ev)
TQSplitter *Sidebar_Widget::splitter() const
{
if (m_universalMode) return 0;
TQObject *p = tqparent();
TQObject *p = parent();
if (!p) return 0;
p = p->tqparent();
p = p->parent();
return static_cast<TQSplitter*>(TQT_TQWIDGET(p));
}

@ -161,10 +161,10 @@ void KonqSidebarBookmarkModule::slotMoved(TQListViewItem *i, TQListViewItem*, TQ
KBookmarkGroup parentGroup;
// try to get the parent group (assume that the TQListViewItem has been reparented by KListView)...
// if anything goes wrong, use the root.
if (item->tqparent()) {
if (item->parent()) {
bool error = false;
KonqSidebarBookmarkItem *parent = dynamic_cast<KonqSidebarBookmarkItem*>( (item->tqparent()) );
KonqSidebarBookmarkItem *parent = dynamic_cast<KonqSidebarBookmarkItem*>( (item->parent()) );
if (!parent) {
error = true;
} else {

@ -29,7 +29,7 @@
#include <kiconloader.h>
#define MYMODULE static_cast<KonqSidebarHistoryModule*>(module())
#define MYGROUP static_cast<KonqSidebarHistoryGroupItem*>(tqparent())
#define MYGROUP static_cast<KonqSidebarHistoryGroupItem*>(parent())
KonqSidebarHistorySettings * KonqSidebarHistoryItem::s_settings = 0L;

@ -1883,7 +1883,7 @@ bool TEWidget::eventFilter( TQObject *obj, TQEvent *e )
TQT_TQKEYEVENT( e )->ignore();
return false;
}
if ( TQT_BASE_OBJECT(obj) != TQT_BASE_OBJECT(this) /* when embedded */ && TQT_BASE_OBJECT(obj) != TQT_BASE_OBJECT(tqparent()) /* when standalone */ )
if ( TQT_BASE_OBJECT(obj) != TQT_BASE_OBJECT(this) /* when embedded */ && TQT_BASE_OBJECT(obj) != TQT_BASE_OBJECT(parent()) /* when standalone */ )
return false; // not us
if ( e->type() == TQEvent::KeyPress )
{

@ -53,10 +53,10 @@ WndIcon::WndIcon(
TQLabel *w = new TQLabel( this );
w->setFixedSize( pix.width(), pix.height() );
w->setPixmap( pix );
if(pix.tqmask())
if(pix.mask())
{
setMask(*pix.tqmask());
w->setMask(*pix.tqmask());
setMask(*pix.mask());
w->setMask(*pix.mask());
}
resize( pix.width(), pix.height() );

@ -635,7 +635,7 @@ ProcessList::addProcess(KSGRD::SensorPSLine* p, ProcessLVI* pli)
icon.fill();
bitBlt(&icon, 4, 0, &pix, 0, 0, pix.width(), pix.height());
TQBitmap mask(24, 16, true);
bitBlt(&mask, 4, 0, pix.tqmask(), 0, 0, pix.width(), pix.height());
bitBlt(&mask, 4, 0, pix.mask(), 0, 0, pix.width(), pix.height());
icon.setMask(mask);
pix = icon;
}

@ -447,8 +447,8 @@ void SensorDisplay::setSensorOk( bool ok )
mErrorIndicator = new TQWidget( mPlotterWdg );
mErrorIndicator->setErasePixmap( errorIcon );
mErrorIndicator->resize( errorIcon.size() );
if ( errorIcon.tqmask() )
mErrorIndicator->setMask( *errorIcon.tqmask() );
if ( errorIcon.mask() )
mErrorIndicator->setMask( *errorIcon.mask() );
mErrorIndicator->move( 0, 0 );
mErrorIndicator->show();
}

@ -182,12 +182,12 @@ TQPixmap KonqPixmapProvider::loadIcon( const TQString& url, const TQString& icon
int x = big.width() - small.width();
int y = 0;
if ( big.tqmask() ) {
TQBitmap mask = *big.tqmask();
if ( big.mask() ) {
TQBitmap mask = *big.mask();
bitBlt( &mask, x, y,
small.tqmask() ? TQT_TQPIXMAP(const_cast<TQBitmap *>(small.tqmask())) : &small, 0, 0,
small.mask() ? TQT_TQPIXMAP(const_cast<TQBitmap *>(small.mask())) : &small, 0, 0,
small.width(), small.height(),
small.tqmask() ? OrROP : SetROP );
small.mask() ? OrROP : SetROP );
big.setMask( mask );
}

Loading…
Cancel
Save