summaryrefslogtreecommitdiffstats
path: root/tdeui/kjanuswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/kjanuswidget.cpp')
-rw-r--r--tdeui/kjanuswidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdeui/kjanuswidget.cpp b/tdeui/kjanuswidget.cpp
index 703c8f030..685301ab8 100644
--- a/tdeui/kjanuswidget.cpp
+++ b/tdeui/kjanuswidget.cpp
@@ -254,7 +254,7 @@ TQFrame *KJanusWidget::addPage( const TQStringList &items, const TQString &heade
void KJanusWidget::pageGone( TQObject *obj )
{
- removePage( TQT_TQWIDGET( obj ) );
+ removePage( static_cast<TQWidget*>( obj ) );
}
void KJanusWidget::slotReopen( TQListViewItem * item )
@@ -435,14 +435,14 @@ void KJanusWidget::addPageWidget( TQFrame *page, const TQStringList &items,
if( mFace == Tabbed )
{
mTabControl->addTab (page, items.last());
- d->mIntToPage[d->mNextPageIndex] = static_cast<TQWidget*>(page);
- d->mPageToInt[static_cast<TQWidget*>(page)] = d->mNextPageIndex;
+ d->mIntToPage[d->mNextPageIndex] = page;
+ d->mPageToInt[page] = d->mNextPageIndex;
d->mNextPageIndex++;
}
else if( mFace == TreeList || mFace == IconList )
{
- d->mIntToPage[d->mNextPageIndex] = static_cast<TQWidget*>(page);
- d->mPageToInt[static_cast<TQWidget*>(page)] = d->mNextPageIndex;
+ d->mIntToPage[d->mNextPageIndex] = page;
+ d->mPageToInt[page] = d->mNextPageIndex;
mPageStack->addWidget( page, 0 );
if (items.isEmpty()) {