Replace Q_SIGNALS and Q_SLOTS

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/63/head
Michele Calgaro 3 months ago
parent 286a061a4c
commit 8423a99b3f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -41,7 +41,7 @@ Wishlist for the artsbuilder app:
this should be very useful in editing objects with lots of properties this should be very useful in editing objects with lots of properties
(widgets) (widgets)
- make _changed Q_SIGNALS visible so you can connect the value_changed of a - make _changed signals visible so you can connect the value_changed of a
poti to the frequency of a filter poti to the frequency of a filter
- make it possible to edit parent property of widgets (i.e. to insert one - make it possible to edit parent property of widgets (i.e. to insert one

@ -355,8 +355,8 @@
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
</connection> </connection>
</connections> </connections>
<Q_SLOTS> <slots>
<slot access="protected">setTitleFont()</slot> <slot access="protected">setTitleFont()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -172,7 +172,7 @@ example_xfade.arts
This example mixes 440 and 880 Hz sine waves using a cross fader. This example mixes 440 and 880 Hz sine waves using a cross fader.
Adjust the value of the cross fader's percentage input from -1 to 1 to Adjust the value of the cross fader's percentage input from -1 to 1 to
control the mixing of the two Q_SIGNALS. control the mixing of the two signals.
example_pscale.arts example_pscale.arts

@ -103,15 +103,15 @@ be inline in the headers. The organization of the members in a class should be
roughly as follows: roughly as follows:
public: public:
public Q_SLOTS: public slots:
protected: protected:
protected Q_SLOTS: protected slots:
Q_SIGNALS: signals:
private: // member funtions private: // member funtions
private Q_SLOTS: private slots:
private: // member variables private: // member variables
If there are no private Q_SLOTS there is no need for two private sections, however If there are no private slots there is no need for two private sections, however
private functions and private variables should be clearly separated. private functions and private variables should be clearly separated.
The implementations files -- .cpp files -- should follow (when possible) the The implementations files -- .cpp files -- should follow (when possible) the

@ -194,10 +194,10 @@
<slot>slotContextRequested(TQIconViewItem*,const TQPoint&amp;)</slot> <slot>slotContextRequested(TQIconViewItem*,const TQPoint&amp;)</slot>
</connection> </connection>
</connections> </connections>
<Q_SLOTS> <slots>
<slot>slotArtistClicked(TQListViewItem *item)</slot> <slot>slotArtistClicked(TQListViewItem *item)</slot>
<slot>slotContextRequested(TQIconViewItem *, const TQPoint &amp;pt)</slot> <slot>slotContextRequested(TQIconViewItem *, const TQPoint &amp;pt)</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<forwards> <forwards>
<forward>class TQIconViewItem;</forward> <forward>class TQIconViewItem;</forward>

@ -133,9 +133,9 @@
<slot>slotShouldDelete(bool)</slot> <slot>slotShouldDelete(bool)</slot>
</connection> </connection>
</connections> </connections>
<Q_SLOTS> <slots>
<slot access="protected">slotShouldDelete(bool)</slot> <slot access="protected">slotShouldDelete(bool)</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includes> <includes>
<include location="global" impldecl="in implementation">tdelistbox.h</include> <include location="global" impldecl="in implementation">tdelistbox.h</include>

@ -267,15 +267,15 @@
<tabstop>m_exampleTrack</tabstop> <tabstop>m_exampleTrack</tabstop>
<tabstop>m_exampleYear</tabstop> <tabstop>m_exampleYear</tabstop>
</tabstops> </tabstops>
<Q_SIGNALS> <signals>
<signal>dataChanged()</signal> <signal>dataChanged()</signal>
<signal>fileChanged()</signal> <signal>fileChanged()</signal>
</Q_SIGNALS> </signals>
<Q_SLOTS> <slots>
<slot access="protected">exampleSelectionChanged()</slot> <slot access="protected">exampleSelectionChanged()</slot>
<slot access="protected">exampleDataChanged()</slot> <slot access="protected">exampleDataChanged()</slot>
<slot access="protected">exampleFileChanged()</slot> <slot access="protected">exampleFileChanged()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includes> <includes>
<include location="global" impldecl="in implementation">klineedit.h</include> <include location="global" impldecl="in implementation">klineedit.h</include>

@ -360,11 +360,11 @@
<tabstop>m_insertCategory</tabstop> <tabstop>m_insertCategory</tabstop>
<tabstop>m_showExample</tabstop> <tabstop>m_showExample</tabstop>
</tabstops> </tabstops>
<Q_SLOTS> <slots>
<slot access="protected">exampleTextChanged()</slot> <slot access="protected">exampleTextChanged()</slot>
<slot access="protected">toggleExampleDialog()</slot> <slot access="protected">toggleExampleDialog()</slot>
<slot access="protected">insertCategory()</slot> <slot access="protected">insertCategory()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includes> <includes>
<include location="global" impldecl="in implementation">kcombobox.h</include> <include location="global" impldecl="in implementation">kcombobox.h</include>

@ -413,11 +413,11 @@
<slot>slotEmptyActionChanged()</slot> <slot>slotEmptyActionChanged()</slot>
</connection> </connection>
</connections> </connections>
<Q_SLOTS> <slots>
<slot access="protected">slotBracketsChanged()</slot> <slot access="protected">slotBracketsChanged()</slot>
<slot access="protected">slotTrackWidthChanged()</slot> <slot access="protected">slotTrackWidthChanged()</slot>
<slot access="protected">slotEmptyActionChanged()</slot> <slot access="protected">slotEmptyActionChanged()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includes> <includes>
<include location="global" impldecl="in implementation">knuminput.h</include> <include location="global" impldecl="in implementation">knuminput.h</include>

@ -54,8 +54,8 @@
</spacer> </spacer>
</vbox> </vbox>
</widget> </widget>
<Q_SLOTS> <slots>
<slot access="protected" specifier="non virtual">configureAudioCD()</slot> <slot access="protected" specifier="non virtual">configureAudioCD()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -286,8 +286,8 @@
<includes> <includes>
<include location="local" impldecl="in implementation">encoderconfig.ui.h</include> <include location="local" impldecl="in implementation">encoderconfig.ui.h</include>
</includes> </includes>
<Q_SLOTS> <slots>
<slot>encoderWizard()</slot> <slot>encoderWizard()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -278,8 +278,8 @@
<includes> <includes>
<include location="local" impldecl="in implementation">general.ui.h</include> <include location="local" impldecl="in implementation">general.ui.h</include>
</includes> </includes>
<Q_SLOTS> <slots>
<slot access="protected" specifier="non virtual">updateExample()</slot> <slot access="protected" specifier="non virtual">updateExample()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -392,7 +392,7 @@
<includes> <includes>
<include location="local" impldecl="in implementation">wizard.ui.h</include> <include location="local" impldecl="in implementation">wizard.ui.h</include>
</includes> </includes>
<Q_SLOTS> <slots>
<slot access="private">homePressed()</slot> <slot access="private">homePressed()</slot>
<slot>extensionPressed()</slot> <slot>extensionPressed()</slot>
<slot access="private">trackTitlePressed()</slot> <slot access="private">trackTitlePressed()</slot>
@ -405,6 +405,6 @@
<slot>artistPressed()</slot> <slot>artistPressed()</slot>
<slot>commentPressed()</slot> <slot>commentPressed()</slot>
<slot>fileFormatTextChanged( const TQString &amp; text )</slot> <slot>fileFormatTextChanged( const TQString &amp; text )</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -445,10 +445,10 @@
<tabstop>kcfg_DigitalPlayback</tabstop> <tabstop>kcfg_DigitalPlayback</tabstop>
<tabstop>kcfg_AudioDevice</tabstop> <tabstop>kcfg_AudioDevice</tabstop>
</tabstops> </tabstops>
<Q_SLOTS> <slots>
<slot>kcfg_DigitalPlayback_toggled( bool )</slot> <slot>kcfg_DigitalPlayback_toggled( bool )</slot>
<slot>kcfg_SelectEncoding_toggled(bool)</slot> <slot>kcfg_SelectEncoding_toggled(bool)</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includes> <includes>
<include location="global" impldecl="in implementation">kcolorbutton.h</include> <include location="global" impldecl="in implementation">kcolorbutton.h</include>

@ -451,12 +451,12 @@
<tabstop>cddbPB</tabstop> <tabstop>cddbPB</tabstop>
<tabstop>infoPB</tabstop> <tabstop>infoPB</tabstop>
</tabstops> </tabstops>
<Q_SLOTS> <slots>
<slot>playClicked()</slot> <slot>playClicked()</slot>
<slot>stopClicked()</slot> <slot>stopClicked()</slot>
<slot>prevClicked()</slot> <slot>prevClicked()</slot>
<slot>ejectClicked()</slot> <slot>ejectClicked()</slot>
<slot returnType="bool">nextClicked()</slot> <slot returnType="bool">nextClicked()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -398,12 +398,12 @@
<variable access="public">static const unsigned TRACK_TITLE = 2;</variable> <variable access="public">static const unsigned TRACK_TITLE = 2;</variable>
<variable access="public">static const unsigned TRACK_COMMENT = 3;</variable> <variable access="public">static const unsigned TRACK_COMMENT = 3;</variable>
</variables> </variables>
<Q_SIGNALS> <signals>
<signal>play(int i)</signal> <signal>play(int i)</signal>
<signal>discInfoClicked()</signal> <signal>discInfoClicked()</signal>
<signal>trackInfoClicked(unsigned)</signal> <signal>trackInfoClicked(unsigned)</signal>
</Q_SIGNALS> </signals>
<Q_SLOTS> <slots>
<slot access="protected">slotTrackSelected( TQListViewItem * item )</slot> <slot access="protected">slotTrackSelected( TQListViewItem * item )</slot>
<slot access="protected">slotNextTrack()</slot> <slot access="protected">slotNextTrack()</slot>
<slot access="protected">slotTrackDoubleClicked( TQListViewItem * item, const TQPoint &amp;, int column )</slot> <slot access="protected">slotTrackDoubleClicked( TQListViewItem * item, const TQPoint &amp;, int column )</slot>
@ -412,7 +412,7 @@
<slot>genreChanged( const TQString &amp; newGenre )</slot> <slot>genreChanged( const TQString &amp; newGenre )</slot>
<slot>slotMultipleArtists( bool hasMultipleArtist )</slot> <slot>slotMultipleArtists( bool hasMultipleArtist )</slot>
<slot access="private">slotChangeEncoding()</slot> <slot access="private">slotChangeEncoding()</slot>
</Q_SLOTS> </slots>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
<function access="private" specifier="non virtual">destroy()</function> <function access="private" specifier="non virtual">destroy()</function>

@ -580,11 +580,11 @@
<tabstop>kcfg_port</tabstop> <tabstop>kcfg_port</tabstop>
<tabstop>kcfg_lookupTransport</tabstop> <tabstop>kcfg_lookupTransport</tabstop>
</tabstops> </tabstops>
<Q_SLOTS> <slots>
<slot access="protected">protocolChanged()</slot> <slot access="protected">protocolChanged()</slot>
<slot access="protected">showMirrorList()</slot> <slot access="protected">showMirrorList()</slot>
<slot access="protected">needAuthenticationChanged(bool)</slot> <slot access="protected">needAuthenticationChanged(bool)</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="11" margin="6"/> <layoutdefaults spacing="11" margin="6"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includes> <includes>

@ -247,7 +247,7 @@ Digit_Large/Digit_Small_Default: filename
Image file. Contains digits horizontally from 0 to 9, and a blank space. Image file. Contains digits horizontally from 0 to 9, and a blank space.
These two digits are a convenience function, if you want to use a digit more than These two digits are a convenience function, if you want to use a digit more than
once it is quicker to load it into on of these two Q_SLOTS. Then when using the digit once it is quicker to load it into on of these two slots. Then when using the digit
in the number item type below, use the words 'Large' or 'Small' in place of the in the number item type below, use the words 'Large' or 'Small' in place of the
filename. filename.

@ -341,8 +341,8 @@
<include location="global" impldecl="in declaration">kmimetype.h</include> <include location="global" impldecl="in declaration">kmimetype.h</include>
<include location="local" impldecl="in implementation">propertiesdialog.ui.h</include> <include location="local" impldecl="in implementation">propertiesdialog.ui.h</include>
</includes> </includes>
<Q_SLOTS> <slots>
<slot specifier="non virtual">setPlayObject( PlaylistItem pi, Arts::PlayObject po )</slot> <slot specifier="non virtual">setPlayObject( PlaylistItem pi, Arts::PlayObject po )</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -619,8 +619,8 @@
<include location="global" impldecl="in declaration">tdecmodule.h</include> <include location="global" impldecl="in declaration">tdecmodule.h</include>
<include location="global" impldecl="in implementation">klineedit.h</include> <include location="global" impldecl="in implementation">klineedit.h</include>
</includes> </includes>
<Q_SLOTS> <slots>
<slot>toggleLowpass()</slot> <slot>toggleLowpass()</slot>
</Q_SLOTS> </slots>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

Loading…
Cancel
Save