@ -33,9 +33,7 @@ TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent, const char *nam
: QPushButton ( parent )
{
setObjectName ( name ) ;
setText ( i18n ( " &Insert Command... " ) ) ;
connect ( this , SIGNAL ( clicked ( ) ) ,
this , SLOT ( slotClicked ( ) ) ) ;
setText ( i18n ( " &Insert Command " ) ) ;
KAction * action ;
KActionMenu * menu ;
@ -44,7 +42,7 @@ TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent, const char *nam
connect ( mapper , SIGNAL ( mapped ( int ) ) ,
this , SLOT ( slotMapped ( int ) ) ) ;
mMenu = new KActionMenu ( i18n ( " Insert Command... " ) , this ) ;
mMenu = new KActionMenu ( i18n ( " Insert Command " ) , this ) ;
// ******************************************************
menu = new KActionMenu ( i18n ( " Original Message " ) , mMenu ) ;
@ -371,16 +369,12 @@ TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent, const char *nam
connect ( action , SIGNAL ( triggered ( bool ) ) , mapper , SLOT ( map ( ) ) ) ;
mapper - > setMapping ( action , CDebugOff ) ;
menu - > addAction ( action ) ;
}
TemplatesInsertCommand : : ~ TemplatesInsertCommand ( )
{
setMenu ( mMenu - > menu ( ) ) ;
}
void TemplatesInsertCommand : : slotClicke d( )
TemplatesInsertCommand : : ~ TemplatesInsertComman d( )
{
QSize ps = mMenu - > menu ( ) - > sizeHint ( ) ;
mMenu - > menu ( ) - > popup ( mapToGlobal ( QPoint ( 0 , - ( ps . height ( ) ) ) ) ) ;
}
void TemplatesInsertCommand : : slotMapped ( int cmd )