diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 10:28:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-06 19:52:52 +0900 |
commit | 31622296062e9eaafb3429eb84f8780fab22e597 (patch) | |
tree | 7220cbbc37f829f7139b672ae1d2a74cfb7a6d36 /src/settings.cpp | |
parent | 50245e3df9d78cdd42e9551fb32a3ea032434b0e (diff) | |
download | basket-31622296062e9eaafb3429eb84f8780fab22e597.tar.gz basket-31622296062e9eaafb3429eb84f8780fab22e597.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bea15ca3009c2f8505bfa10445c1dc2fc43a4ffe)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 4327847..3f5f31b 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -375,7 +375,7 @@ GeneralPage::GeneralPage(TQWidget * parent, const char * name) label = new TQLabel(m_treeOnLeft, i18n("&Basket tree position:"), this); gl->addWidget(label, 0, 0); gl->addWidget(m_treeOnLeft, 0, 1); - connect( m_treeOnLeft, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed()) ); + connect( m_treeOnLeft, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changed()) ); // Filter Bar Position: m_filterOnTop = new TQComboBox(this); @@ -384,12 +384,12 @@ GeneralPage::GeneralPage(TQWidget * parent, const char * name) label = new TQLabel(m_filterOnTop, i18n("&Filter bar position:"), this); gl->addWidget(label, 1, 0); gl->addWidget(m_filterOnTop, 1, 1); - connect( m_filterOnTop, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed()) ); + connect( m_filterOnTop, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changed()) ); // Use Baloons to Report Results of Global Actions: hLay = new TQHBoxLayout(0L, /*margin=*/0, KDialogBase::spacingHint()); m_usePassivePopup = new TQCheckBox(i18n("&Use balloons to report results of global actions"), this); - connect( m_usePassivePopup, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_usePassivePopup, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); hLabel = new HelpLabel( i18n("What are global actions?"), ("<p>" + i18n("You can configure global shortcuts to do some actions without having to show the main window. For instance, you can paste the clipboard content, take a color from " @@ -412,7 +412,7 @@ GeneralPage::GeneralPage(TQWidget * parent, const char * name) // Dock in System Tray: m_useSystray = new TQCheckBox(i18n("&Dock in system tray"), gbSys); sysLay->addWidget(m_useSystray); - connect( m_useSystray, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_useSystray, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); m_systray = new TQWidget(gbSys); TQVBoxLayout *subSysLay = new TQVBoxLayout(m_systray, /*margin=*/0, KDialogBase::spacingHint()); @@ -421,7 +421,7 @@ GeneralPage::GeneralPage(TQWidget * parent, const char * name) // Show Current Basket Icon in System Tray Icon: m_showIconInSystray = new TQCheckBox(i18n("&Show current basket icon in system tray icon"), m_systray); subSysLay->addWidget(m_showIconInSystray); - connect(m_showIconInSystray, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); + connect(m_showIconInSystray, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); TQGridLayout *gs = new TQGridLayout(0, /*nRows=*/2, /*nCols=*/3); subSysLay->addLayout(gs); @@ -434,8 +434,8 @@ GeneralPage::GeneralPage(TQWidget * parent, const char * name) m_timeToHideOnMouseOut->setSuffix(i18n(" tenths of seconds")); gs->addWidget(m_hideOnMouseOut, 0, 0); gs->addWidget(m_timeToHideOnMouseOut, 0, 1); - connect(m_hideOnMouseOut, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(m_timeToHideOnMouseOut, TQT_SIGNAL(valueChanged (int)), this, TQT_SLOT(changed())); + connect(m_hideOnMouseOut, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(m_timeToHideOnMouseOut, TQ_SIGNAL(valueChanged (int)), this, TQ_SLOT(changed())); // subSysLay->addWidget( // Show Main Window when Mouse Hovers over the System Tray Icon for Some Time: @@ -445,13 +445,13 @@ GeneralPage::GeneralPage(TQWidget * parent, const char * name) m_timeToShowOnMouseIn->setSuffix(i18n(" tenths of seconds")); gs->addWidget(m_showOnMouseIn, 1, 0); gs->addWidget(m_timeToShowOnMouseIn, 1, 1); - connect(m_showOnMouseIn, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(m_timeToShowOnMouseIn, TQT_SIGNAL(valueChanged (int)), this, TQT_SLOT(changed())); + connect(m_showOnMouseIn, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(m_timeToShowOnMouseIn, TQ_SIGNAL(valueChanged (int)), this, TQ_SLOT(changed())); - connect( m_hideOnMouseOut, TQT_SIGNAL(toggled(bool)), m_timeToHideOnMouseOut, TQT_SLOT(setEnabled(bool)) ); - connect( m_showOnMouseIn, TQT_SIGNAL(toggled(bool)), m_timeToShowOnMouseIn, TQT_SLOT(setEnabled(bool)) ); + connect( m_hideOnMouseOut, TQ_SIGNAL(toggled(bool)), m_timeToHideOnMouseOut, TQ_SLOT(setEnabled(bool)) ); + connect( m_showOnMouseIn, TQ_SIGNAL(toggled(bool)), m_timeToShowOnMouseIn, TQ_SLOT(setEnabled(bool)) ); - connect( m_useSystray, TQT_SIGNAL(toggled(bool)), m_systray, TQT_SLOT(setEnabled(bool)) ); + connect( m_useSystray, TQ_SIGNAL(toggled(bool)), m_systray, TQ_SLOT(setEnabled(bool)) ); layout->insertStretch(-1); load(); @@ -515,13 +515,13 @@ BasketsPage::BasketsPage(TQWidget * parent, const char * name) layout->addWidget(appearanceBox); m_playAnimations = new TQCheckBox(i18n("Ani&mate changes in baskets"), appearanceBox); - connect( m_playAnimations, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_playAnimations, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); m_showNotesToolTip = new TQCheckBox(i18n("&Show tooltips in baskets"), appearanceBox); - connect( m_showNotesToolTip, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_showNotesToolTip, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); m_bigNotes = new TQCheckBox(i18n("&Big notes"), appearanceBox); - connect( m_bigNotes, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_bigNotes, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); // Behavior: @@ -529,15 +529,15 @@ BasketsPage::BasketsPage(TQWidget * parent, const char * name) layout->addWidget(behaviorBox); m_autoBullet = new TQCheckBox(i18n("&Transform lines starting with * or - to lists in text editors"), behaviorBox); - connect( m_autoBullet, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_autoBullet, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); m_confirmNoteDeletion = new TQCheckBox(i18n("Ask confirmation before &deleting notes"), behaviorBox); - connect( m_confirmNoteDeletion, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_confirmNoteDeletion, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); TQWidget *widget = new TQWidget(behaviorBox); hLay = new TQHBoxLayout(widget, /*margin=*/0, KDialogBase::spacingHint()); m_exportTextTags = new TQCheckBox(i18n("&Export tags in texts"), widget); - connect( m_exportTextTags, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_exportTextTags, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); TQPixmap pixmapHelp(TDEGlobal::dirs()->findResource("data", "basket/images/tag_export_help.png")); TQMimeSourceFactory::defaultFactory()->setPixmap("__resource_help_tag_export.png", pixmapHelp); @@ -570,7 +570,7 @@ BasketsPage::BasketsPage(TQWidget * parent, const char * name) hLayV->addWidget(helpV); hLayV->insertStretch(-1); layout->addWidget(m_groupOnInsertionLineWidget); - connect(m_groupOnInsertionLine, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); + connect(m_groupOnInsertionLine, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); widget = new TQWidget(behaviorBox); TQGridLayout *ga = new TQGridLayout(widget, /*nRows=*/3, /*nCols=*/4, /*margin=*/0, KDialogBase::spacingHint()); @@ -592,7 +592,7 @@ BasketsPage::BasketsPage(TQWidget * parent, const char * name) ga->addWidget(labelM, 0, 0); ga->addWidget(m_middleAction, 0, 1); ga->addWidget(new TQLabel(i18n("at cursor position"), widget), 0, 2); - connect( m_middleAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed()) ); + connect( m_middleAction, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changed()) ); // Protection: @@ -612,14 +612,14 @@ BasketsPage::BasketsPage(TQWidget * parent, const char * name) //hLay->addWidget(label); hLay->addStretch(); // layout->addLayout(hLay); - connect( m_enableReLockTimeoutMinutes, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); - connect( m_reLockTimeoutMinutes, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed()) ); - connect( m_enableReLockTimeoutMinutes, TQT_SIGNAL(toggled(bool)), m_reLockTimeoutMinutes, TQT_SLOT(setEnabled(bool)) ); + connect( m_enableReLockTimeoutMinutes, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); + connect( m_reLockTimeoutMinutes, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed()) ); + connect( m_enableReLockTimeoutMinutes, TQ_SIGNAL(toggled(bool)), m_reLockTimeoutMinutes, TQ_SLOT(setEnabled(bool)) ); #ifdef HAVE_LIBGPGME m_useGnuPGAgent = new TQCheckBox(i18n("Use GnuPG agent for &private/public key protected baskets"), protectionBox); // hLay->addWidget(m_useGnuPGAgent); - connect( m_useGnuPGAgent, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_useGnuPGAgent, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); #endif layout->insertStretch(-1); @@ -703,7 +703,7 @@ NewNotesPage::NewNotesPage(TQWidget * parent, const char * name) //layout->addLayout(hLay); label->hide(); m_newNotesPlace->hide(); - connect( m_newNotesPlace, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed()) ); + connect( m_newNotesPlace, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed()) ); // New Images Size: @@ -712,7 +712,7 @@ NewNotesPage::NewNotesPage(TQWidget * parent, const char * name) m_imgSizeX->setMinValue(1); m_imgSizeX->setMaxValue(4096); m_imgSizeX->setReferencePoint(100); - connect( m_imgSizeX, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_imgSizeX, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed()) ); label = new TQLabel(m_imgSizeX, i18n("&New images size:"), this); hLay->addWidget(label); hLay->addWidget(m_imgSizeX); @@ -720,7 +720,7 @@ NewNotesPage::NewNotesPage(TQWidget * parent, const char * name) m_imgSizeY->setMinValue(1); m_imgSizeY->setMaxValue(4096); m_imgSizeY->setReferencePoint(100); - connect( m_imgSizeY, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_imgSizeY, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed()) ); label = new TQLabel(m_imgSizeY, i18n("&by"), this); hLay->addWidget(label); hLay->addWidget(m_imgSizeY); @@ -730,7 +730,7 @@ NewNotesPage::NewNotesPage(TQWidget * parent, const char * name) hLay->addWidget(m_pushVisualize); hLay->addStretch(); layout->addLayout(hLay); - connect( m_pushVisualize, TQT_SIGNAL(clicked()), this, TQT_SLOT(visualize()) ); + connect( m_pushVisualize, TQ_SIGNAL(clicked()), this, TQ_SLOT(visualize()) ); // View File Content: @@ -740,10 +740,10 @@ NewNotesPage::NewNotesPage(TQWidget * parent, const char * name) m_viewImageFileContent = new TQCheckBox( i18n("&Image or animation"), buttonGroup ); m_viewSoundFileContent = new TQCheckBox( i18n("&Sound"), buttonGroup ); layout->addWidget(buttonGroup); - connect( m_viewTextFileContent, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); - connect( m_viewHtmlFileContent, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); - connect( m_viewImageFileContent, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); - connect( m_viewSoundFileContent, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); + connect( m_viewTextFileContent, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); + connect( m_viewHtmlFileContent, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); + connect( m_viewImageFileContent, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); + connect( m_viewSoundFileContent, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); layout->insertStretch(-1); load(); @@ -848,32 +848,32 @@ ApplicationsPage::ApplicationsPage(TQWidget * parent, const char * name) TQHBoxLayout *hLayH = new TQHBoxLayout(0L, /*margin=*/0, KDialogBase::spacingHint()); hLayH->insertSpacing(-1, 20); hLayH->addWidget(m_htmlProg); - connect(m_htmlUseProg, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(m_htmlProg->lineEdit(), TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(m_htmlUseProg, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(m_htmlProg->lineEdit(), TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); m_imageUseProg = new TQCheckBox(i18n("Open &image notes with a custom application:"), this); m_imageProg = new RunCommandRequester("", i18n("Open image notes with:"), this); TQHBoxLayout *hLayI = new TQHBoxLayout(0L, /*margin=*/0, KDialogBase::spacingHint()); hLayI->insertSpacing(-1, 20); hLayI->addWidget(m_imageProg); - connect(m_imageUseProg, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(m_imageProg->lineEdit(), TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(m_imageUseProg, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(m_imageProg->lineEdit(), TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); m_animationUseProg = new TQCheckBox(i18n("Open a&nimation notes with a custom application:"), this); m_animationProg = new RunCommandRequester("", i18n("Open animation notes with:"), this); TQHBoxLayout *hLayA = new TQHBoxLayout(0L, /*margin=*/0, KDialogBase::spacingHint()); hLayA->insertSpacing(-1, 20); hLayA->addWidget(m_animationProg); - connect(m_animationUseProg, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(m_animationProg->lineEdit(), TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(m_animationUseProg, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(m_animationProg->lineEdit(), TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); m_soundUseProg = new TQCheckBox(i18n("Open so&und notes with a custom application:"), this); m_soundProg = new RunCommandRequester("", i18n("Open sound notes with:"), this); TQHBoxLayout *hLayS = new TQHBoxLayout(0L, /*margin=*/0, KDialogBase::spacingHint()); hLayS->insertSpacing(-1, 20); hLayS->addWidget(m_soundProg); - connect(m_soundUseProg, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(m_soundProg->lineEdit(), TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(m_soundUseProg, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(m_soundProg->lineEdit(), TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); TQString whatsthis = i18n( "<p>If checked, the application defined below will be used when opening that type of note.</p>" @@ -943,10 +943,10 @@ ApplicationsPage::ApplicationsPage(TQWidget * parent, const char * name) hLay->addStretch(); layout->addLayout(hLay); - connect( m_htmlUseProg, TQT_SIGNAL(toggled(bool)), m_htmlProg, TQT_SLOT(setEnabled(bool)) ); - connect( m_imageUseProg, TQT_SIGNAL(toggled(bool)), m_imageProg, TQT_SLOT(setEnabled(bool)) ); - connect( m_animationUseProg, TQT_SIGNAL(toggled(bool)), m_animationProg, TQT_SLOT(setEnabled(bool)) ); - connect( m_soundUseProg, TQT_SIGNAL(toggled(bool)), m_soundProg, TQT_SLOT(setEnabled(bool)) ); + connect( m_htmlUseProg, TQ_SIGNAL(toggled(bool)), m_htmlProg, TQ_SLOT(setEnabled(bool)) ); + connect( m_imageUseProg, TQ_SIGNAL(toggled(bool)), m_imageProg, TQ_SLOT(setEnabled(bool)) ); + connect( m_animationUseProg, TQ_SIGNAL(toggled(bool)), m_animationProg, TQ_SLOT(setEnabled(bool)) ); + connect( m_soundUseProg, TQ_SIGNAL(toggled(bool)), m_soundProg, TQ_SLOT(setEnabled(bool)) ); layout->insertStretch(-1); load(); |