summaryrefslogtreecommitdiffstats
path: root/src/k9main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/k9main.cpp')
-rw-r--r--src/k9main.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/k9main.cpp b/src/k9main.cpp
index 20b35fc..74c1a0a 100644
--- a/src/k9main.cpp
+++ b/src/k9main.cpp
@@ -88,12 +88,12 @@ k9DVDListItem::k9DVDListItem(TQObject *DVD,ckLvItem *List,eStreamType type)
streamType=type;
}
-k9Main::k9Main(TQWidget* tqparent, const char* name, k9CdDrives *_drives)
- : MainDlg(tqparent,name),pxVideo((const char **) img_video), pxSound((const char **) img_sound),
+k9Main::k9Main(TQWidget* parent, const char* name, k9CdDrives *_drives)
+ : MainDlg(parent,name),pxVideo((const char **) img_video), pxSound((const char **) img_sound),
pxText((const char **) img_text)
{
drives=_drives;
- m_parent=(k9Copy*)tqparent;
+ m_parent=(k9Copy*)parent;
TQImage img;
img.loadFromData( img_chapter, sizeof( img_chapter ), "PNG" );
pxChapter.convertFromImage( img);
@@ -812,7 +812,7 @@ void k9Main::checkLang(TQString lang,eStreamType streamType,bool state)
checked=state;
k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj;
- ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent();
+ ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent();
itemtitleset->setOn(title->gettitleset()->getselected());
}
break;
@@ -826,7 +826,7 @@ void k9Main::checkLang(TQString lang,eStreamType streamType,bool state)
checked=state;
k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj;
- ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent();
+ ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent();
itemtitleset->setOn(title->gettitleset()->getselected());
}
break;
@@ -839,7 +839,7 @@ void k9Main::checkLang(TQString lang,eStreamType streamType,bool state)
for (uint j=0; j<items.count();j++)
{
k9DVDListItem *litem2=(k9DVDListItem*)items.at(j);
- if (litem2->listItem->tqparent()==litem->listItem->tqparent() && litem2->streamType==VID )
+ if (litem2->listItem->parent()==litem->listItem->parent() && litem2->streamType==VID )
{
litem2->title->setforceSelection(state);
litem2->listItem->setOn(state);
@@ -883,7 +883,7 @@ void k9Main::checkTitle(bool state, ckLvItem *_item)
for (uint i=0;i<items.count();i++)
{
litem=(k9DVDListItem*)items.at(i);
- if (litem->listItem->tqparent() == _item->tqparent())
+ if (litem->listItem->parent() == _item->parent())
{
//if current item is video and is unchecked, uncheck audio and subtitles
if (!state && _item->streamType==VID)
@@ -928,9 +928,9 @@ void k9Main::checkTitle(bool state, ckLvItem *_item)
{
ckLvItem * itemtitleset;
if (_item->streamType==CHAP)
- itemtitleset=(ckLvItem*)_item->tqparent()->tqparent()->tqparent();
+ itemtitleset=(ckLvItem*)_item->parent()->parent()->parent();
else
- itemtitleset=(ckLvItem*)_item->tqparent()->tqparent();
+ itemtitleset=(ckLvItem*)_item->parent()->parent();
itemtitleset->setOn(titleset->getselected());
}
@@ -964,7 +964,7 @@ void k9Main::checkAll(bool state)
litem->listItem->setOn(state);
// k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj;
- ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent();
+ ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent();
l_title->gettitleset()->setselected(state);
itemtitleset->setOn(l_title->gettitleset()->getselected());
}
@@ -992,7 +992,7 @@ void k9Main::checkTS( bool _state,ckLvItem *_item )
for (uint i=0;i<items.count();i++)
{
litem=(k9DVDListItem*)items.at(i);
- if (litem->listItem->tqparent ()->tqparent() == _item)
+ if (litem->listItem->parent ()->parent() == _item)
{
litem->listItem->setOn(_state);
}
@@ -1339,8 +1339,8 @@ void k9Main::listView1CurrentChanged( TQListViewItem *newItem )
ckLvItem *ckit = (ckLvItem*) newItem;
if (((ckLvItem*)newItem)->streamType==CHAP)
{
- LvItem *tqparent=(LvItem*)(ckit->tqparent()->tqparent());
- title=(k9DVDTitle*)tqparent->obj;
+ LvItem *parent=(LvItem*)(ckit->parent()->parent());
+ title=(k9DVDTitle*)parent->obj;
}
else
title=(k9DVDTitle*)ckit->obj;