Translations:Development/Tutorials/Using Actions/18/pt-br: Difference between revisions

From KDE TechBase
(Created page with "Isso se baseia no código do KXmlGuiWindow do Tutorial 2. A maioria das alterações é no <tt>mainwindow.cpp</tt>, uma mudan...")
(No difference)

Revision as of 17:35, 28 October 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/Using Actions)
This builds upon the KXmlGuiWindow code from [[Development/Tutorials/Using_KXmlGuiWindow/KF5|Tutorial 2]]. Most of the changes are to <tt>mainwindow.cpp</tt>, an important structural change being that the constructor for MainWindow now calls <tt>setupActions()</tt> instead of <tt>setupGUI()</tt>. <tt>setupActions()</tt> is where the new QAction code goes before finally calling <tt>setupGUI()</tt> itself.

Isso se baseia no código do KXmlGuiWindow do Tutorial 2. A maioria das alterações é no mainwindow.cpp, uma mudança estrutural importante é que o construtor do MainWindow agora chama setupActions() em vez de setupGUI()</ tt >. setupActions() é o local onde o novo código QAction vai antes de finalmente chamar setupGUI().