Translations:Development/Tutorials/First program/14/pt-br

From KDE TechBase
Revision as of 21:44, 22 June 2014 by Aracele (talk | contribs) (Created page with "KCmdLineArgs::init( argc, argv, &aboutData ); KApplication app; KGuiItem yesButton( i18n( "Hello" ), QString(), i18n( "This is a tooltip" ), ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

KCmdLineArgs::init( argc, argv, &aboutData );

   KApplication app;
   KGuiItem yesButton( i18n( "Hello" ), QString(),
                       i18n( "This is a tooltip" ),
                       i18n( "This is a WhatsThis help text." ) );
   return 
       KMessageBox ::questionYesNo 
       (0, i18n( "Hello World" ), i18n( "Hello" ), yesButton ) 
       == KMessageBox ::Yes? EXIT_SUCCESS: EXIT_FAILURE;

} </syntaxhighlight> The first KDE specific code we come across in this program is KAboutData. This is the class used to store information about the program such as a short description, authors or license information. Pretty much every KDE application should use this class.