|
|
@ -260,7 +260,7 @@ ActionWidget::ActionWidget( const ActionList *list, ConfigDialog* configWidget,
|
|
|
|
ActionListIterator it( *list );
|
|
|
|
ActionListIterator it( *list );
|
|
|
|
|
|
|
|
|
|
|
|
const TQPixmap& doc = SmallIcon( "misc" );
|
|
|
|
const TQPixmap& doc = SmallIcon( "misc" );
|
|
|
|
const TQPixmap& exec = SmallIcon( "exec" );
|
|
|
|
const TQPixmap& exec = SmallIcon( "application-x-executable" );
|
|
|
|
|
|
|
|
|
|
|
|
for ( action = it.current(); action; action = ++it ) {
|
|
|
|
for ( action = it.current(); action; action = ++it ) {
|
|
|
|
item = new TQListViewItem( listView, after,
|
|
|
|
item = new TQListViewItem( listView, after,
|
|
|
@ -341,7 +341,7 @@ void ActionWidget::slotContextMenu( TDEListView *, TQListViewItem *item,
|
|
|
|
TQListViewItem *cmdItem = new TQListViewItem( p, item,
|
|
|
|
TQListViewItem *cmdItem = new TQListViewItem( p, item,
|
|
|
|
i18n("Click here to set the command to be executed"),
|
|
|
|
i18n("Click here to set the command to be executed"),
|
|
|
|
i18n("<new command>") );
|
|
|
|
i18n("<new command>") );
|
|
|
|
cmdItem->setPixmap( 0, SmallIcon( "exec" ) );
|
|
|
|
cmdItem->setPixmap( 0, SmallIcon( "application-x-executable" ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( id == rmCmd )
|
|
|
|
else if ( id == rmCmd )
|
|
|
|
delete item;
|
|
|
|
delete item;
|
|
|
@ -355,7 +355,7 @@ void ActionWidget::slotItemChanged( TQListViewItem *item, const TQPoint&, int co
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
ClipCommand command( item->text(0), item->text(1) );
|
|
|
|
ClipCommand command( item->text(0), item->text(1) );
|
|
|
|
item->setPixmap( 0, SmallIcon( command.pixmap.isEmpty() ?
|
|
|
|
item->setPixmap( 0, SmallIcon( command.pixmap.isEmpty() ?
|
|
|
|
"exec" : command.pixmap ) );
|
|
|
|
"application-x-executable" : command.pixmap ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ActionWidget::slotAddAction()
|
|
|
|
void ActionWidget::slotAddAction()
|
|
|
|