diff options
author | Michele Calgaro <[email protected]> | 2024-01-02 11:37:36 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-02 11:37:36 +0900 |
commit | 861ae27a46c4bb5d5c67feb6d8bbb4a37961b9cd (patch) | |
tree | 60d518a0a91ed14bfb31abf12ff0effb10bcec56 /src/pref.cpp | |
parent | c8a3b81b3c22a3eb79afd726cfef71c0949efb7d (diff) | |
download | kmplayer-861ae27a46c4bb5d5c67feb6d8bbb4a37961b9cd.tar.gz kmplayer-861ae27a46c4bb5d5c67feb6d8bbb4a37961b9cd.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/pref.cpp')
-rw-r--r-- | src/pref.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/pref.cpp b/src/pref.cpp index 5561bd4..fd030e6 100644 --- a/src/pref.cpp +++ b/src/pref.cpp @@ -132,7 +132,7 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti addPrefPage (p); - connect (this, TQT_SIGNAL (defaultClicked ()), TQT_SLOT (confirmDefaults ())); + connect (this, TQ_SIGNAL (defaultClicked ()), TQ_SLOT (confirmDefaults ())); } KDE_NO_EXPORT void Preferences::setPage (const char * name) { @@ -277,24 +277,24 @@ KDE_NO_CDTOR_EXPORT PrefGeneralPageLooks::PrefGeneralPageLooks (TQWidget *parent for (int i = 0; i < int (ColorSetting::last_target); i++) colorscombo->insertItem (colors[i].title); colorscombo->setCurrentItem (0); - connect (colorscombo, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (colorItemChanged(int))); + connect (colorscombo, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (colorItemChanged(int))); colorbutton = new KColorButton (colorbox); colorbutton->setColor (colors[0].color); - connect (colorbutton, TQT_SIGNAL (changed (const TQColor &)), - this, TQT_SLOT (colorCanged (const TQColor &))); + connect (colorbutton, TQ_SIGNAL (changed (const TQColor &)), + this, TQ_SLOT (colorCanged (const TQColor &))); TQGroupBox *fontbox = new TQGroupBox (2,TQt::Horizontal, i18n ("Fonts"), this); fontscombo = new TQComboBox (fontbox); for (int i = 0; i < int (FontSetting::last_target); i++) fontscombo->insertItem (fonts[i].title); fontscombo->setCurrentItem (0); - connect (fontscombo, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (fontItemChanged(int))); + connect (fontscombo, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (fontItemChanged(int))); fontbutton = new TQPushButton (i18n ("AaBbCc"), fontbox); fontbutton->setFlat (true); fontbutton->setFont (fonts[0].font); - connect (fontbutton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (fontClicked ())); + connect (fontbutton, TQ_SIGNAL (clicked ()), this, TQ_SLOT (fontClicked ())); layout->addWidget (colorbox); layout->addWidget (fontbox); @@ -381,10 +381,10 @@ KDE_NO_CDTOR_EXPORT PrefSourcePageURL::PrefSourcePageURL (TQWidget *parent) layout->addLayout (gridlayout); layout->addWidget (cbox); layout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); - connect (urllist, TQT_SIGNAL(textChanged (const TQString &)), - this, TQT_SLOT (slotTextChanged (const TQString &))); - connect (sub_urllist, TQT_SIGNAL(textChanged (const TQString &)), - this, TQT_SLOT (slotTextChanged (const TQString &))); + connect (urllist, TQ_SIGNAL(textChanged (const TQString &)), + this, TQ_SLOT (slotTextChanged (const TQString &))); + connect (sub_urllist, TQ_SIGNAL(textChanged (const TQString &)), + this, TQ_SLOT (slotTextChanged (const TQString &))); } KDE_NO_EXPORT void PrefSourcePageURL::slotBrowse () { @@ -403,7 +403,7 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase * urllayout->addWidget (urlLabel); urllayout->addWidget (url); recordButton = new TQPushButton (i18n ("Start &Recording"), this); - connect (recordButton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotRecord ())); + connect (recordButton, TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotRecord ())); TQHBoxLayout *buttonlayout = new TQHBoxLayout; buttonlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); buttonlayout->addWidget (recordButton); @@ -434,9 +434,9 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase * layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); layout->addLayout (buttonlayout); layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); - connect (m_player, TQT_SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, TQT_SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*))); - connect (recorder, TQT_SIGNAL (clicked(int)), this, TQT_SLOT(recorderClicked(int))); - connect (replay, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (replayClicked (int))); + connect (m_player, TQ_SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, TQ_SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*))); + connect (recorder, TQ_SIGNAL (clicked(int)), this, TQ_SLOT(recorderClicked(int))); + connect (replay, TQ_SIGNAL (clicked (int)), this, TQ_SLOT (replayClicked (int))); } KDE_NO_EXPORT void PrefRecordPage::recordingStarted () { @@ -448,15 +448,15 @@ KDE_NO_EXPORT void PrefRecordPage::recordingStarted () { KDE_NO_EXPORT void PrefRecordPage::recordingFinished () { recordButton->setText (i18n ("Start Recording")); url->setEnabled (true); - TQTimer::singleShot (0, m_player, TQT_SLOT(recordingStopped())); // removed from PartBase::setSource because PartBase::recordingStopped calls openURL and that will call PartBase::setSource and TQt doesn't like disconnecting/connecting a signal that is current + TQTimer::singleShot (0, m_player, TQ_SLOT(recordingStopped())); // removed from PartBase::setSource because PartBase::recordingStopped calls openURL and that will call PartBase::setSource and TQt doesn't like disconnecting/connecting a signal that is current } KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) { int id = 0; int nr_recs = 0; if (olds) { - disconnect(nws,TQT_SIGNAL(startRecording()),this, TQT_SLOT(recordingStarted())); - disconnect(nws,TQT_SIGNAL(stopRecording()),this, TQT_SLOT(recordingFinished())); + disconnect(nws,TQ_SIGNAL(startRecording()),this, TQ_SLOT(recordingStarted())); + disconnect(nws,TQ_SIGNAL(stopRecording()),this, TQ_SLOT(recordingFinished())); } if (nws) { for (RecorderPage * p = m_recorders; p; p = p->next, ++id) { @@ -466,8 +466,8 @@ KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) { if (b) nr_recs++; } source->setText (i18n ("Current Source: ") + nws->prettyName ()); - connect (nws, TQT_SIGNAL(startRecording()), this, TQT_SLOT(recordingStarted())); - connect (nws, TQT_SIGNAL(stopRecording()), this, TQT_SLOT(recordingFinished())); + connect (nws, TQ_SIGNAL(startRecording()), this, TQ_SLOT(recordingStarted())); + connect (nws, TQ_SIGNAL(stopRecording()), this, TQ_SLOT(recordingFinished())); } recordButton->setEnabled (nr_recs > 0); } @@ -490,8 +490,8 @@ KDE_NO_EXPORT void PrefRecordPage::replayClicked (int id) { } KDE_NO_EXPORT void PrefRecordPage::slotRecord () { - connect (m_player->source (), TQT_SIGNAL (stopPlaying ()), - this, TQT_SLOT (playingStopped ())); + connect (m_player->source (), TQ_SIGNAL (stopPlaying ()), + this, TQ_SLOT (playingStopped ())); if (m_player->process () && m_player->process ()->playing ()) m_player->process ()->quit (); else @@ -499,8 +499,8 @@ KDE_NO_EXPORT void PrefRecordPage::slotRecord () { } KDE_NO_EXPORT void PrefRecordPage::playingStopped () { - disconnect (m_player->source (), TQT_SIGNAL (stopPlaying ()), - this, TQT_SLOT (playingStopped ())); + disconnect (m_player->source (), TQ_SIGNAL (stopPlaying ()), + this, TQ_SLOT (playingStopped ())); if (!url->lineEdit()->text().isEmpty()) { m_player->settings ()->recordfile = url->lineEdit()->text(); m_player->settings ()->replaytime = replaytime->text ().toInt (); @@ -553,7 +553,7 @@ KDE_NO_CDTOR_EXPORT PrefMEncoderPage::PrefMEncoderPage (TQWidget *parent, PartBa gridlayout->addWidget (arguments, 0, 1); layout->addWidget (format); layout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); - connect (format, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (formatClicked (int))); + connect (format, TQ_SIGNAL (clicked (int)), this, TQ_SLOT (formatClicked (int))); } KDE_NO_EXPORT void PrefMEncoderPage::formatClicked (int id) { @@ -806,17 +806,17 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T tabLayout->addWidget( PostprocessingOptions/*, 1, 0*/ ); PostprocessingOptions->setEnabled(false); - connect( customPreset, TQT_SIGNAL (toggled(bool) ), customFilters, TQT_SLOT(setEnabled(bool))); - connect( postProcessing, TQT_SIGNAL( toggled(bool) ), PostprocessingOptions, TQT_SLOT( setEnabled(bool) ) ); - connect( HzDeblockFilter, TQT_SIGNAL( toggled(bool) ), HzDeblockAQuality, TQT_SLOT( setEnabled(bool) ) ); - connect( HzDeblockFilter, TQT_SIGNAL( toggled(bool) ), HzDeblockCFiltering, TQT_SLOT( setEnabled(bool) ) ); - connect( VtDeblockFilter, TQT_SIGNAL( toggled(bool) ), VtDeblockCFiltering, TQT_SLOT( setEnabled(bool) ) ); - connect( VtDeblockFilter, TQT_SIGNAL( toggled(bool) ), VtDeblockAQuality, TQT_SLOT( setEnabled(bool) ) ); - connect( DeringFilter, TQT_SIGNAL( toggled(bool) ), DeringAQuality, TQT_SLOT( setEnabled(bool) ) ); - connect( DeringFilter, TQT_SIGNAL( toggled(bool) ), DeringCFiltering, TQT_SLOT( setEnabled(bool) ) ); - //connect( TmpNoiseFilter, TQT_SIGNAL( toggled(bool) ), TmpNoiseSlider, TQT_SLOT( setEnabled(bool) ) ); - - connect( AutolevelsFilter, TQT_SIGNAL( toggled(bool) ), AutolevelsFullrange, TQT_SLOT( setEnabled(bool) ) ); + connect( customPreset, TQ_SIGNAL (toggled(bool) ), customFilters, TQ_SLOT(setEnabled(bool))); + connect( postProcessing, TQ_SIGNAL( toggled(bool) ), PostprocessingOptions, TQ_SLOT( setEnabled(bool) ) ); + connect( HzDeblockFilter, TQ_SIGNAL( toggled(bool) ), HzDeblockAQuality, TQ_SLOT( setEnabled(bool) ) ); + connect( HzDeblockFilter, TQ_SIGNAL( toggled(bool) ), HzDeblockCFiltering, TQ_SLOT( setEnabled(bool) ) ); + connect( VtDeblockFilter, TQ_SIGNAL( toggled(bool) ), VtDeblockCFiltering, TQ_SLOT( setEnabled(bool) ) ); + connect( VtDeblockFilter, TQ_SIGNAL( toggled(bool) ), VtDeblockAQuality, TQ_SLOT( setEnabled(bool) ) ); + connect( DeringFilter, TQ_SIGNAL( toggled(bool) ), DeringAQuality, TQ_SLOT( setEnabled(bool) ) ); + connect( DeringFilter, TQ_SIGNAL( toggled(bool) ), DeringCFiltering, TQ_SLOT( setEnabled(bool) ) ); + //connect( TmpNoiseFilter, TQ_SIGNAL( toggled(bool) ), TmpNoiseSlider, TQ_SLOT( setEnabled(bool) ) ); + + connect( AutolevelsFilter, TQ_SIGNAL( toggled(bool) ), AutolevelsFullrange, TQ_SLOT( setEnabled(bool) ) ); TQWhatsThis::add( defaultPreset, i18n( "Enable mplayer's default postprocessing filters" ) ); TQWhatsThis::add( customPreset, i18n( "Enable custom postprocessing filters (See: Custom preset -tab)" ) ); |