summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoTooluButton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/KoTooluButton.cpp')
-rw-r--r--lib/kofficeui/KoTooluButton.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kofficeui/KoTooluButton.cpp b/lib/kofficeui/KoTooluButton.cpp
index bbe4145a0..f202177c2 100644
--- a/lib/kofficeui/KoTooluButton.cpp
+++ b/lib/kofficeui/KoTooluButton.cpp
@@ -75,7 +75,7 @@ TQPopupMenu* KoColorPanel::createColorPopup( KoColorPanel::MenuStyle style, cons
TQPainter p( &pixmap );
p.fillRect( 0, 0, 12, 12, defaultColor );
p.end();
- proxy = new KoColorPopupProxy( defaultColor, 0, TQT_TQOBJECT(menu), "color proxy" );
+ proxy = new KoColorPopupProxy( defaultColor, 0, menu, "color proxy" );
connect( proxy, TQT_SIGNAL( colorSelected( const TQColor& ) ), receiver, slot );
menu->insertItem( TQIconSet( pixmap ), i18n( "Default Color" ), proxy, TQT_SLOT( slotDefaultColor() ) );
menu->insertSeparator();
@@ -92,7 +92,7 @@ TQPopupMenu* KoColorPanel::createColorPopup( KoColorPanel::MenuStyle style, cons
connect( panel, TQT_SIGNAL( colorSelected( const TQColor& ) ), receiver, slot );
menu->insertItem( panel );
if ( !proxy ) {
- proxy = new KoColorPopupProxy( TQColor(), panel, TQT_TQOBJECT(menu), "color proxy" );
+ proxy = new KoColorPopupProxy( TQColor(), panel, menu, "color proxy" );
connect( proxy, TQT_SIGNAL( colorSelected( const TQColor& ) ), receiver, slot );
}
else
@@ -636,7 +636,7 @@ void KoColorPopupProxy::slotMoreColors()
TQColor newColor;
TQWidget* p = 0;
if ( parent() && parent()->isWidgetType() )
- p = TQT_TQWIDGET( parent() );
+ p = static_cast<TQWidget*>( parent() );
if ( KColorDialog::getColor( newColor, p ) == TQDialog::Accepted ) {
m_recentColors->insertColor( newColor );
@@ -832,7 +832,7 @@ bool KoToolButton::eventFilter( TQObject* o, TQEvent* e )
void KoToolButton::init()
{
- m_popup = KoColorPanel::createColorPopup( KoColorPanel::CustomColors, TQt::yellow, TQT_TQOBJECT(this),
+ m_popup = KoColorPanel::createColorPopup( KoColorPanel::CustomColors, TQt::yellow, this,
TQT_SLOT( colorSelected( const TQColor& ) ),
this, "no-name" );
// We are interested in the mouse clicks on the arrow button