[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kontact/src
From: Allen Winter <winter () kde ! org>
Date: 2009-10-03 16:19:33
Message-ID: 1254586773.224120.11239.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1030967 by winterz:
add helpText() for the KActions
MERGE: none
DO_NOT_BACKPORT:
M +7 -2 mainwindow.cpp
--- trunk/KDE/kdepim/kontact/src/mainwindow.cpp #1030966:1030967
@@ -455,13 +455,17 @@
}
KAction *action = new KAction( KIcon( "configure" ), i18n( "Configure Kontact..." ), this );
+ action->setHelpText( i18n( "Configure Kontact" ) );
actionCollection()->addAction( "settings_configure_kontact", action );
connect( action, SIGNAL(triggered(bool)), SLOT(slotPreferences()) );
action = new KAction( KIcon( "kontact" ), i18n( "&Kontact Introduction" ), this );
+ action->setHelpText( i18n( "Show the Kontact Introduction page" ) );
actionCollection()->addAction( "help_introduction", action );
connect( action, SIGNAL(triggered(bool)), SLOT(slotShowIntroduction()) );
+
action = new KAction( KIcon( "ktip" ), i18n( "&Tip of the Day" ), this );
+ action->setHelpText( i18n( "Show the Tip-of-the-Day dialog" ) );
actionCollection()->addAction( "help_tipofday", action );
connect( action, SIGNAL(triggered(bool)), SLOT(slotShowTip()) );
}
@@ -656,9 +660,10 @@
if ( plugin->showInSideBar() ) {
KAction *action = new KAction( KIcon( plugin->icon() ), plugin->title(), this );
+ action->setHelpText( i18n( "Add plugin %1", plugin->title() ) );
action->setCheckable( true );
- action->setData( QVariant::fromValue( plugin ) ); // on the slot we can decode which action was
- // triggered
+ action->setData( QVariant::fromValue( plugin ) ); // on the slot we can decode
+ // which action was triggered
connect( action, SIGNAL(triggered(bool)), SLOT(slotActionTriggered()) );
actionCollection()->addAction( plugin->title(), action );
mActionPlugins.append( action );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic