Translations:Development/Tutorials/First program/18/fr: Difference between revisions

From KDE TechBase
(Created page with "Nous avons maintenant notre élément et pouvons créer notre fenêtre. Nous appelons la fonction <tt>{{class|KMessageBox}}::questionYesNo()</tt> qui, par défaut, crée une b...")
 
(No difference)

Latest revision as of 09:39, 17 May 2019

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/First program)
Now we have our item, we can create our popup. We call the <tt>{{class|KMessageBox}}::questionYesNo()</tt> function which, by default, creates a message box with a "Yes" and a "No" button. The second argument is the text that will appear in the message box above the buttons. The third is the caption the window will have and finally, we set the KGuiItem for (what would normally be) the "Yes" button to the <tt>KGuiItem yesButton</tt> we created.

Nous avons maintenant notre élément et pouvons créer notre fenêtre. Nous appelons la fonction KMessageBox::questionYesNo() qui, par défaut, crée une boîte de message avec un bouton "Yes" et un bouton "No" . Le deuxième argument est le texte à afficher dans la boîte de message au-dessus des boutons. Le troisième est le titre de la fenêtre et finalement, nous initialisons le KGuiItem pour (ce qui normalement serait) le bouton "Yes" avec le KGuiItem yesButton que nous avons créé.