summaryrefslogtreecommitdiffstats
path: root/kpresenter
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter')
-rw-r--r--kpresenter/KPrView.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp
index c581ddf4..67a2596f 100644
--- a/kpresenter/KPrView.cpp
+++ b/kpresenter/KPrView.cpp
@@ -1856,7 +1856,7 @@ void KPrView::slotApplyFont()
void KPrView::slotCounterStyleSelected()
{
- TQString actionName = TQString::fromLatin1(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
+ TQString actionName = TQString::fromLatin1(sender()->name());
if ( actionName.startsWith( "counterstyle_" ) )
{
TQString styleStr = actionName.mid(13);
@@ -4912,7 +4912,7 @@ void KPrView::insertCustomVariable()
KPrTextView *edit=m_canvas->currentTextObjectView();
if ( edit )
{
- TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(sender());
edit->insertCustomVariable(act->text());
}
}
@@ -4992,7 +4992,7 @@ void KPrView::insertVariable()
KPrTextView *edit=m_canvas->currentTextObjectView();
if ( edit )
{
- TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(sender());
VariableDefMap::ConstIterator it = m_variableDefMap.find( act );
if ( it == m_variableDefMap.end() )
kdWarning(33001) << "Action not found in m_variableDefMap." << endl;
@@ -5522,7 +5522,7 @@ void KPrView::extraStylist()
// Called when selecting a style in the Format / Style menu
void KPrView::slotStyleSelected()
{
- TQString actionName = TQString::fromUtf8(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
+ TQString actionName = TQString::fromUtf8(sender()->name());
kdDebug(33001) << "KPrView::slotStyleSelected " << actionName << endl;
textStyleSelected( m_pKPresenterDoc->styleCollection()->findStyle( actionName ) );
}
@@ -6388,7 +6388,7 @@ TQPtrList<TDEAction> KPrView::listOfResultOfCheckWord( const TQString &word )
void KPrView::slotCorrectWord()
{
- TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(sender());
KPrTextView* edit = m_canvas->currentTextObjectView();
if ( edit )
{
@@ -6430,7 +6430,7 @@ void KPrView::initialLayoutOfSplitter()
void KPrView::slotChildActivated(bool a)
{
- KoViewChild* ch = child( (KoView*)TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())) );
+ KoViewChild* ch = child( (KoView*)sender() );
if ( !ch )
return;