-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/opiepim/ui/opimmainwindow.cpp b/libopie2/opiepim/ui/opimmainwindow.cpp index 40bbb7b..d46df69 100644 --- a/libopie2/opiepim/ui/opimmainwindow.cpp +++ b/libopie2/opiepim/ui/opimmainwindow.cpp | |||
@@ -356,33 +356,34 @@ void OPimMainWindow::initBars( const QString &itemName ) { | |||
356 | 356 | ||
357 | // Item menu | 357 | // Item menu |
358 | m_itemMenuGroup1 = new QActionGroup( this, QString::null, false ); | 358 | m_itemMenuGroup1 = new QActionGroup( this, QString::null, false ); |
359 | 359 | ||
360 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), | 360 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), |
361 | QString::null, 0, m_itemMenuGroup1, 0 ); | 361 | QString::null, 0, m_itemMenuGroup1, 0 ); |
362 | connect( a, SIGNAL(activated()), this, SLOT(slotItemNew()) ); | 362 | connect( a, SIGNAL(activated()), this, SLOT(slotItemNew()) ); |
363 | a->setWhatsThis( tr( "Click here to create a new item." ) ); | 363 | a->setWhatsThis( tr( "Click here to create a new item." ) ); |
364 | a->addTo( toolbar ); | 364 | a->addTo( toolbar ); |
365 | 365 | ||
366 | m_itemEditAction = new QAction( tr( "Edit" ), Resource::loadPixmap( "edit" ), | 366 | m_itemEditAction = new QAction( tr( "Edit" ), Resource::loadPixmap( "edit" ), |
367 | QString::null, 0, m_itemMenuGroup1, 0 ); | 367 | QString::null, 0, m_itemMenuGroup1, 0 ); |
368 | connect( m_itemEditAction, SIGNAL(activated()), this, SLOT(slotItemEdit()) ); | 368 | connect( m_itemEditAction, SIGNAL(activated()), this, SLOT(slotItemEdit()) ); |
369 | m_itemEditAction->setWhatsThis( tr( "Click here to edit the selected item." ) ); | 369 | m_itemEditAction->setWhatsThis( tr( "Click here to edit the selected item." ) ); |
370 | m_itemEditAction->addTo( toolbar ); | 370 | m_itemEditAction->addTo( toolbar ); |
371 | 371 | ||
372 | m_itemDuplicateAction = new QAction( tr( "Duplicate" ), QString::null, 0, m_itemMenuGroup1, 0 ); | 372 | m_itemDuplicateAction = new QAction( tr( "Duplicate" ), Resource::loadPixmap( "copy" ), |
373 | QString::null, 0, m_itemMenuGroup1, 0 ); | ||
373 | connect( m_itemDuplicateAction, SIGNAL(activated()), this, SLOT(slotItemDuplicate()) ); | 374 | connect( m_itemDuplicateAction, SIGNAL(activated()), this, SLOT(slotItemDuplicate()) ); |
374 | m_itemDuplicateAction->setWhatsThis( tr( "Click here to duplicate the selected item." ) ); | 375 | m_itemDuplicateAction->setWhatsThis( tr( "Click here to duplicate the selected item." ) ); |
375 | 376 | ||
376 | m_itemDeleteAction = new QAction( tr( "Delete" ), Resource::loadPixmap( "trash" ), | 377 | m_itemDeleteAction = new QAction( tr( "Delete" ), Resource::loadPixmap( "trash" ), |
377 | QString::null, 0, m_itemMenuGroup1, 0 ); | 378 | QString::null, 0, m_itemMenuGroup1, 0 ); |
378 | connect( m_itemDeleteAction, SIGNAL(activated()), this, SLOT(slotItemDelete()) ); | 379 | connect( m_itemDeleteAction, SIGNAL(activated()), this, SLOT(slotItemDelete()) ); |
379 | m_itemDeleteAction->setWhatsThis( tr( "Click here to delete the selected item." ) ); | 380 | m_itemDeleteAction->setWhatsThis( tr( "Click here to delete the selected item." ) ); |
380 | m_itemDeleteAction->addTo( toolbar ); | 381 | m_itemDeleteAction->addTo( toolbar ); |
381 | 382 | ||
382 | if ( Ir::supported() ) { | 383 | if ( Ir::supported() ) { |
383 | a = new QAction( tr( "Beam" ), Resource::loadPixmap( "beam" ), | 384 | a = new QAction( tr( "Beam" ), Resource::loadPixmap( "beam" ), |
384 | QString::null, 0, m_itemMenuGroup1, 0 ); | 385 | QString::null, 0, m_itemMenuGroup1, 0 ); |
385 | connect( a, SIGNAL(activated()), this, SLOT(slotItemBeam()) ); | 386 | connect( a, SIGNAL(activated()), this, SLOT(slotItemBeam()) ); |
386 | a->setWhatsThis( tr( "Click here to transmit the selected item." ) ); | 387 | a->setWhatsThis( tr( "Click here to transmit the selected item." ) ); |
387 | //a->addTo( m_itemMenu ); | 388 | //a->addTo( m_itemMenu ); |
388 | a->addTo( toolbar ); | 389 | a->addTo( toolbar ); |