summaryrefslogtreecommitdiffstats
path: root/knotes
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 12:33:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 12:43:48 +0900
commit3b3f9ec8f31978030c17309fae48335bea5c1587 (patch)
tree0b493383a1501860371aacd792ec6fc08d595824 /knotes
parent99e6e1d1f43610c3573e9824a2a8a38f69930cd0 (diff)
downloadtdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.tar.gz
tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'knotes')
-rw-r--r--knotes/knote.cpp48
-rw-r--r--knotes/knotealarmdlg.cpp2
-rw-r--r--knotes/knoteedit.cpp80
-rw-r--r--knotes/knotehostdlg.cpp4
-rw-r--r--knotes/knotesalarm.cpp2
-rw-r--r--knotes/knotesapp.cpp64
-rw-r--r--knotes/knotesnetrecv.cpp8
-rw-r--r--knotes/knotesnetsend.cpp10
-rw-r--r--knotes/main.cpp2
9 files changed, 110 insertions, 110 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp
index c498dc764..69fb1d430 100644
--- a/knotes/knote.cpp
+++ b/knotes/knote.cpp
@@ -105,47 +105,47 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char *
// create the menu items for the note - not the editor...
// rename, mail, print, save as, insert date, alarm, close, delete, new note
new TDEAction( i18n("New"), "document-new", 0,
- this,TQT_SLOT(slotRequestNewNote()) , actionCollection(), "new_note" );
+ this,TQ_SLOT(slotRequestNewNote()) , actionCollection(), "new_note" );
new TDEAction( i18n("Rename..."), "text", 0,
- this, TQT_SLOT(slotRename()), actionCollection(), "rename_note" );
+ this, TQ_SLOT(slotRename()), actionCollection(), "rename_note" );
m_readOnly = new TDEToggleAction( i18n("Lock"), "system-lock-screen" , 0,
- this, TQT_SLOT(slotUpdateReadOnly()), actionCollection(), "lock_note" );
+ this, TQ_SLOT(slotUpdateReadOnly()), actionCollection(), "lock_note" );
m_readOnly->setCheckedState( KGuiItem( i18n("Unlock"), "unlock" ) );
new TDEAction( i18n("Hide"), "window-close" , Key_Escape,
- this, TQT_SLOT(slotClose()), actionCollection(), "hide_note" );
+ this, TQ_SLOT(slotClose()), actionCollection(), "hide_note" );
new TDEAction( i18n("Delete"), "knotes_delete", 0,
- this, TQT_SLOT(slotKill()), actionCollection(), "delete_note" );
+ this, TQ_SLOT(slotKill()), actionCollection(), "delete_note" );
new TDEAction( i18n("Insert Date"), "knotes_date", 0 ,
- this, TQT_SLOT(slotInsDate()), actionCollection(), "insert_date" );
+ this, TQ_SLOT(slotInsDate()), actionCollection(), "insert_date" );
new TDEAction( i18n("Set Alarm..."), "knotes_alarm", 0 ,
- this, TQT_SLOT(slotSetAlarm()), actionCollection(), "set_alarm" );
+ this, TQ_SLOT(slotSetAlarm()), actionCollection(), "set_alarm" );
new TDEAction( i18n("Send..."), "network", 0,
- this, TQT_SLOT(slotSend()), actionCollection(), "send_note" );
+ this, TQ_SLOT(slotSend()), actionCollection(), "send_note" );
new TDEAction( i18n("Mail..."), "mail-send", 0,
- this, TQT_SLOT(slotMail()), actionCollection(), "mail_note" );
+ this, TQ_SLOT(slotMail()), actionCollection(), "mail_note" );
new TDEAction( i18n("Save As..."), "document-save-as", 0,
- this, TQT_SLOT(slotSaveAs()), actionCollection(), "save_note" );
- KStdAction::print( this, TQT_SLOT(slotPrint()), actionCollection(), "print_note" );
+ this, TQ_SLOT(slotSaveAs()), actionCollection(), "save_note" );
+ KStdAction::print( this, TQ_SLOT(slotPrint()), actionCollection(), "print_note" );
new TDEAction( i18n("Preferences..."), "configure", 0,
- this, TQT_SLOT(slotPreferences()), actionCollection(), "configure_note" );
+ this, TQ_SLOT(slotPreferences()), actionCollection(), "configure_note" );
m_keepAbove = new TDEToggleAction( i18n("Keep Above Others"), "go-up", 0,
- this, TQT_SLOT(slotUpdateKeepAboveBelow()), actionCollection(), "keep_above" );
+ this, TQ_SLOT(slotUpdateKeepAboveBelow()), actionCollection(), "keep_above" );
m_keepAbove->setExclusiveGroup( "keepAB" );
m_keepBelow = new TDEToggleAction( i18n("Keep Below Others"), "go-down", 0,
- this, TQT_SLOT(slotUpdateKeepAboveBelow()), actionCollection(), "keep_below" );
+ this, TQ_SLOT(slotUpdateKeepAboveBelow()), actionCollection(), "keep_below" );
m_keepBelow->setExclusiveGroup( "keepAB" );
m_toDesktop = new TDEListAction( i18n("To Desktop"), 0,
- this, TQT_SLOT(slotPopupActionToDesktop(int)), actionCollection(), "to_desktop" );
- connect( m_toDesktop->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotUpdateDesktopActions()) );
+ this, TQ_SLOT(slotPopupActionToDesktop(int)), actionCollection(), "to_desktop" );
+ connect( m_toDesktop->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(slotUpdateDesktopActions()) );
// invisible action to walk through the notes to make this configurable
new TDEAction( i18n("Walk Through Notes"), 0, SHIFT+Key_BackTab,
- this, TQT_SIGNAL(sigShowNextNote()), actionCollection(), "walk_notes" );
+ this, TQ_SIGNAL(sigShowNextNote()), actionCollection(), "walk_notes" );
// create the note header, button and label...
m_label = new TQLabel( this );
@@ -155,14 +155,14 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char *
setName( m_journal->summary() ); // don't worry, no signals are connected at this stage yet
m_button = new KNoteButton( "knotes_close", this );
- connect( m_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()) );
+ connect( m_button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClose()) );
// create the note editor
m_editor = new KNoteEdit( actionCollection(), this );
m_editor->setNote( this );
m_editor->installEventFilter( this ); // receive events (for modified)
m_editor->viewport()->installEventFilter( this );
- connect( m_editor, TQT_SIGNAL(contentsMoving( int, int )), this, TQT_SLOT(slotUpdateViewport( int, int )));
+ connect( m_editor, TQ_SIGNAL(contentsMoving( int, int )), this, TQ_SLOT(slotUpdateViewport( int, int )));
KXMLGUIBuilder builder( this );
KXMLGUIFactory factory( &builder, this );
@@ -600,9 +600,9 @@ void KNote::find( const TQString& pattern, long options )
delete m_find;
m_find = new KFind( pattern, options, this );
- connect( m_find, TQT_SIGNAL(highlight( const TQString &, int, int )),
- this, TQT_SLOT(slotHighlight( const TQString &, int, int )) );
- connect( m_find, TQT_SIGNAL(findNext()), this, TQT_SLOT(slotFindNext()) );
+ connect( m_find, TQ_SIGNAL(highlight( const TQString &, int, int )),
+ this, TQ_SLOT(slotHighlight( const TQString &, int, int )) );
+ connect( m_find, TQ_SIGNAL(findNext()), this, TQ_SLOT(slotFindNext()) );
m_find->setData( plainText() );
slotFindNext();
@@ -816,8 +816,8 @@ void KNote::slotPreferences()
// create a new preferences dialog...
KNoteConfigDlg *dialog = new KNoteConfigDlg( m_config, name(), this, noteId().utf8() );
- connect( dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotApplyConfig()) );
- connect( this, TQT_SIGNAL(sigNameChanged()), dialog, TQT_SLOT(slotUpdateCaption()) );
+ connect( dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(slotApplyConfig()) );
+ connect( this, TQ_SIGNAL(sigNameChanged()), dialog, TQ_SLOT(slotUpdateCaption()) );
dialog->show();
}
diff --git a/knotes/knotealarmdlg.cpp b/knotes/knotealarmdlg.cpp
index 0a3236a29..5e43a86a3 100644
--- a/knotes/knotealarmdlg.cpp
+++ b/knotes/knotealarmdlg.cpp
@@ -72,7 +72,7 @@ KNoteAlarmDlg::KNoteAlarmDlg( const TQString& caption, TQWidget *parent, const c
label_in->setEnabled( false ); // TODO
in->hide(); //show it and enable it when feature will implement
- connect( m_buttons, TQT_SIGNAL(clicked( int )), TQT_SLOT(slotButtonChanged( int )) );
+ connect( m_buttons, TQ_SIGNAL(clicked( int )), TQ_SLOT(slotButtonChanged( int )) );
}
diff --git a/knotes/knoteedit.cpp b/knotes/knoteedit.cpp
index f03150ba9..4ef1274de 100644
--- a/knotes/knoteedit.cpp
+++ b/knotes/knoteedit.cpp
@@ -45,27 +45,27 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
setLinkUnderline( true );
setCheckSpellingEnabled(false);
// create the actions for the RMB menu
- undo = KStdAction::undo( this, TQT_SLOT(undo()), actions );
- redo = KStdAction::redo( this, TQT_SLOT(redo()), actions );
+ undo = KStdAction::undo( this, TQ_SLOT(undo()), actions );
+ redo = KStdAction::redo( this, TQ_SLOT(redo()), actions );
undo->setEnabled( isUndoAvailable() );
redo->setEnabled( isRedoAvailable() );
- m_cut = KStdAction::cut( this, TQT_SLOT(cut()), actions );
- m_copy = KStdAction::copy( this, TQT_SLOT(copy()), actions );
- m_paste = KStdAction::paste( this, TQT_SLOT(paste()), actions );
+ m_cut = KStdAction::cut( this, TQ_SLOT(cut()), actions );
+ m_copy = KStdAction::copy( this, TQ_SLOT(copy()), actions );
+ m_paste = KStdAction::paste( this, TQ_SLOT(paste()), actions );
m_cut->setEnabled( false );
m_copy->setEnabled( false );
m_paste->setEnabled( true );
- connect( this, TQT_SIGNAL(undoAvailable(bool)), this, TQT_SLOT(setEnabledUndo(bool)) );
- connect( this, TQT_SIGNAL(redoAvailable(bool)), this, TQT_SLOT(setEnabledRedo(bool)) );
+ connect( this, TQ_SIGNAL(undoAvailable(bool)), this, TQ_SLOT(setEnabledUndo(bool)) );
+ connect( this, TQ_SIGNAL(redoAvailable(bool)), this, TQ_SLOT(setEnabledRedo(bool)) );
- connect( this, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT( slotCutEnabled( bool ) ) );
- connect( this, TQT_SIGNAL(copyAvailable(bool)), m_copy, TQT_SLOT(setEnabled(bool)) );
+ connect( this, TQ_SIGNAL(copyAvailable(bool)), this, TQ_SLOT( slotCutEnabled( bool ) ) );
+ connect( this, TQ_SIGNAL(copyAvailable(bool)), m_copy, TQ_SLOT(setEnabled(bool)) );
- new TDEAction( KStdGuiItem::clear(), 0, this, TQT_SLOT(clear()), actions, "edit_clear" );
- KStdAction::selectAll( this, TQT_SLOT(selectAll()), actions );
+ new TDEAction( KStdGuiItem::clear(), 0, this, TQ_SLOT(clear()), actions, "edit_clear" );
+ KStdAction::selectAll( this, TQ_SLOT(selectAll()), actions );
// create the actions modifying the text format
m_textBold = new TDEToggleAction( i18n("Bold"), "format-text-bold", CTRL + Key_B, 0, 0,
@@ -77,23 +77,23 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
m_textStrikeOut = new TDEToggleAction( i18n("Strike Out"), "format-text-strikethrough", CTRL + Key_S, 0, 0,
actions, "format_strikeout" );
- connect( m_textBold, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setBold(bool)) );
- connect( m_textItalic, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setItalic(bool)) );
- connect( m_textUnderline, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setUnderline(bool)) );
- connect( m_textStrikeOut, TQT_SIGNAL(toggled(bool)), TQT_SLOT(textStrikeOut(bool)) );
+ connect( m_textBold, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setBold(bool)) );
+ connect( m_textItalic, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setItalic(bool)) );
+ connect( m_textUnderline, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setUnderline(bool)) );
+ connect( m_textStrikeOut, TQ_SIGNAL(toggled(bool)), TQ_SLOT(textStrikeOut(bool)) );
m_textAlignLeft = new TDEToggleAction( i18n("Align Left"), "format-text-direction-ltr", ALT + Key_L,
- this, TQT_SLOT(textAlignLeft()),
+ this, TQ_SLOT(textAlignLeft()),
actions, "format_alignleft" );
m_textAlignLeft->setChecked( true ); // just a dummy, will be updated later
m_textAlignCenter = new TDEToggleAction( i18n("Align Center"), "text_center", ALT + Key_C,
- this, TQT_SLOT(textAlignCenter()),
+ this, TQ_SLOT(textAlignCenter()),
actions, "format_aligncenter" );
m_textAlignRight = new TDEToggleAction( i18n("Align Right"), "format-text-direction-rtl", ALT + Key_R,
- this, TQT_SLOT(textAlignRight()),
+ this, TQ_SLOT(textAlignRight()),
actions, "format_alignright" );
m_textAlignBlock = new TDEToggleAction( i18n("Align Block"), "text_block", ALT + Key_B,
- this, TQT_SLOT(textAlignBlock()),
+ this, TQ_SLOT(textAlignBlock()),
actions, "format_alignblock" );
m_textAlignLeft->setExclusiveGroup( "align" );
@@ -102,16 +102,16 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
m_textAlignBlock->setExclusiveGroup( "align" );
m_textList = new TDEToggleAction( i18n("List"), "enum_list", 0,
- this, TQT_SLOT(textList()),
+ this, TQ_SLOT(textList()),
actions, "format_list" );
m_textList->setExclusiveGroup( "style" );
m_textSuper = new TDEToggleAction( i18n("Superscript"), "text_super", 0,
- this, TQT_SLOT(textSuperScript()),
+ this, TQ_SLOT(textSuperScript()),
actions, "format_super" );
m_textSub = new TDEToggleAction( i18n("Subscript"), "text_sub", 0,
- this, TQT_SLOT(textSubScript()),
+ this, TQ_SLOT(textSubScript()),
actions, "format_sub" );
m_textSuper->setExclusiveGroup( "valign" );
@@ -120,38 +120,38 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
// There is no easy possibility to implement text indenting with TQTextEdit
//
// m_textIncreaseIndent = new TDEAction( i18n("Increase Indent"), "format_increaseindent", 0,
-// this, TQT_SLOT(textIncreaseIndent()),
+// this, TQ_SLOT(textIncreaseIndent()),
// actions, "format_increaseindent" );
//
// m_textDecreaseIndent = new TDEAction( i18n("Decrease Indent"), "format_decreaseindent", 0,
-// this, TQT_SLOT(textDecreaseIndent()),
+// this, TQ_SLOT(textDecreaseIndent()),
// actions, "format_decreaseindent" );
TQPixmap pix( ICON_SIZE, ICON_SIZE );
pix.fill( black ); // just a dummy, gets updated before widget is shown
m_textColor = new TDEAction( i18n("Text Color..."), pix, 0, this,
- TQT_SLOT(textColor()), actions, "format_color" );
+ TQ_SLOT(textColor()), actions, "format_color" );
m_textFont = new TDEFontAction( i18n("Text Font"), "text", KKey(),
actions, "format_font" );
- connect( m_textFont, TQT_SIGNAL(activated( const TQString & )),
- this, TQT_SLOT(setFamily( const TQString & )) );
+ connect( m_textFont, TQ_SIGNAL(activated( const TQString & )),
+ this, TQ_SLOT(setFamily( const TQString & )) );
m_textSize = new TDEFontSizeAction( i18n("Text Size"), KKey(),
actions, "format_size" );
- connect( m_textSize, TQT_SIGNAL(fontSizeChanged( int )),
- this, TQT_SLOT(setPointSize( int )) );
+ connect( m_textSize, TQ_SIGNAL(fontSizeChanged( int )),
+ this, TQ_SLOT(setPointSize( int )) );
// TQTextEdit connections
- connect( this, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotReturnPressed()) );
- connect( this, TQT_SIGNAL(currentFontChanged( const TQFont & )),
- this, TQT_SLOT(fontChanged( const TQFont & )) );
- connect( this, TQT_SIGNAL(currentColorChanged( const TQColor & )),
- this, TQT_SLOT(colorChanged( const TQColor & )) );
- connect( this, TQT_SIGNAL(currentAlignmentChanged( int )),
- this, TQT_SLOT(alignmentChanged( int )) );
- connect( this, TQT_SIGNAL(currentVerticalAlignmentChanged( VerticalAlignment )),
- this, TQT_SLOT(verticalAlignmentChanged( VerticalAlignment )) );
+ connect( this, TQ_SIGNAL(returnPressed()), TQ_SLOT(slotReturnPressed()) );
+ connect( this, TQ_SIGNAL(currentFontChanged( const TQFont & )),
+ this, TQ_SLOT(fontChanged( const TQFont & )) );
+ connect( this, TQ_SIGNAL(currentColorChanged( const TQColor & )),
+ this, TQ_SLOT(colorChanged( const TQColor & )) );
+ connect( this, TQ_SIGNAL(currentAlignmentChanged( int )),
+ this, TQ_SLOT(alignmentChanged( int )) );
+ connect( this, TQ_SIGNAL(currentVerticalAlignmentChanged( VerticalAlignment )),
+ this, TQ_SLOT(verticalAlignmentChanged( VerticalAlignment )) );
}
KNoteEdit::~KNoteEdit()
@@ -541,13 +541,13 @@ TQPopupMenu *KNoteEdit::createPopupMenu( const TQPoint &pos )
menu->insertSeparator();
id = menu->insertItem( SmallIconSet( "tools-check-spelling" ), i18n( "Check Spelling..." ),
- this, TQT_SLOT( checkSpelling() ) );
+ this, TQ_SLOT( checkSpelling() ) );
if( text().isEmpty() )
menu->setItemEnabled( id, false );
menu->insertSeparator();
- id=menu->insertItem(i18n("Allow Tabulations"),this,TQT_SLOT(slotAllowTab()));
+ id=menu->insertItem(i18n("Allow Tabulations"),this,TQ_SLOT(slotAllowTab()));
menu->setItemChecked(id, !tabChangesFocus());
}
diff --git a/knotes/knotehostdlg.cpp b/knotes/knotehostdlg.cpp
index 9d8fff975..15a32c66d 100644
--- a/knotes/knotehostdlg.cpp
+++ b/knotes/knotehostdlg.cpp
@@ -60,8 +60,8 @@ KNoteHostDlg::KNoteHostDlg( const TQString &caption, TQWidget *parent, const cha
m_hostCombo->setHistoryItems( KNotesGlobalConfig::knownHosts(), true );
m_hostCombo->setFocus();
//m_hostCombo->completionObject()->setItems( KNotesGlobalConfig::hostCompletions() );
- connect( m_hostCombo->lineEdit(), TQT_SIGNAL( textChanged ( const TQString & ) ),
- this, TQT_SLOT( slotTextChanged( const TQString & ) ) );
+ connect( m_hostCombo->lineEdit(), TQ_SIGNAL( textChanged ( const TQString & ) ),
+ this, TQ_SLOT( slotTextChanged( const TQString & ) ) );
slotTextChanged( m_hostCombo->lineEdit()->text() );
}
diff --git a/knotes/knotesalarm.cpp b/knotes/knotesalarm.cpp
index c2d1bd1cd..99f05cd96 100644
--- a/knotes/knotesalarm.cpp
+++ b/knotes/knotesalarm.cpp
@@ -49,7 +49,7 @@ KNotesAlarm::KNotesAlarm( KNotesResourceManager *manager, TQObject *parent, cons
{
// TODO: fix timezone stuff?
- connect( &m_checkTimer, TQT_SIGNAL(timeout()), TQT_SLOT(checkAlarms()) );
+ connect( &m_checkTimer, TQ_SIGNAL(timeout()), TQ_SLOT(checkAlarms()) );
m_checkTimer.start( 1000 * KNotesGlobalConfig::self()->checkInterval() ); // interval in seconds
}
diff --git a/knotes/knotesapp.cpp b/knotes/knotesapp.cpp
index e68027495..1f7e9b99a 100644
--- a/knotes/knotesapp.cpp
+++ b/knotes/knotesapp.cpp
@@ -65,7 +65,7 @@ public:
{
m_keyChooser = new KKeyChooser( globals, this );
setMainWidget( m_keyChooser );
- connect( this, TQT_SIGNAL(defaultClicked()), m_keyChooser, TQT_SLOT(allDefault()) );
+ connect( this, TQ_SIGNAL(defaultClicked()), m_keyChooser, TQ_SLOT(allDefault()) );
}
void insert( TDEActionCollection *actions )
@@ -96,7 +96,7 @@ KNotesApp::KNotesApp()
: DCOPObject("KNotesIface"), TQLabel( 0, 0, WType_TopLevel ),
m_alarm( 0 ), m_listener( 0 ), m_find( 0 ), m_findPos( 0 )
{
- connect( kapp, TQT_SIGNAL(lastWindowClosed()), kapp, TQT_SLOT(quit()) );
+ connect( kapp, TQ_SIGNAL(lastWindowClosed()), kapp, TQ_SLOT(quit()) );
m_noteList.setAutoDelete( true );
m_noteActions.setAutoDelete( true );
@@ -112,20 +112,20 @@ KNotesApp::KNotesApp()
// create the GUI...
new TDEAction( i18n("New Note"), "document-new", 0,
- this, TQT_SLOT(newNote()), actionCollection(), "new_note" );
+ this, TQ_SLOT(newNote()), actionCollection(), "new_note" );
new TDEAction( i18n("New Note From Clipboard"), "edit-paste", 0,
- this, TQT_SLOT(newNoteFromClipboard()), actionCollection(), "new_note_clipboard" );
+ this, TQ_SLOT(newNoteFromClipboard()), actionCollection(), "new_note_clipboard" );
new TDEAction( i18n("Show All Notes"), "knotes", 0,
- this, TQT_SLOT(showAllNotes()), actionCollection(), "show_all_notes" );
+ this, TQ_SLOT(showAllNotes()), actionCollection(), "show_all_notes" );
new TDEAction( i18n("Hide All Notes"), "window-close", 0,
- this, TQT_SLOT(hideAllNotes()), actionCollection(), "hide_all_notes" );
+ this, TQ_SLOT(hideAllNotes()), actionCollection(), "hide_all_notes" );
new KHelpMenu( this, kapp->aboutData(), false, actionCollection() );
- m_findAction = KStdAction::find( this, TQT_SLOT(slotOpenFindDialog()), actionCollection() );
- KStdAction::preferences( this, TQT_SLOT(slotPreferences()), actionCollection() );
- KStdAction::keyBindings( this, TQT_SLOT(slotConfigureAccels()), actionCollection() );
+ m_findAction = KStdAction::find( this, TQ_SLOT(slotOpenFindDialog()), actionCollection() );
+ KStdAction::preferences( this, TQ_SLOT(slotPreferences()), actionCollection() );
+ KStdAction::keyBindings( this, TQ_SLOT(slotConfigureAccels()), actionCollection() );
//FIXME: no shortcut removing!?
- KStdAction::quit( this, TQT_SLOT(slotQuit()), actionCollection() )->setShortcut( 0 );
+ KStdAction::quit( this, TQ_SLOT(slotQuit()), actionCollection() )->setShortcut( 0 );
setXMLFile( instance()->instanceName() + "appui.rc" );
@@ -150,16 +150,16 @@ KNotesApp::KNotesApp()
m_globalAccel = new TDEGlobalAccel( this, "global accel" );
m_globalAccel->insert( "global_new_note", i18n("New Note"), "",
TDEShortcut(), TDEShortcut(),
- this, TQT_SLOT(newNote()), true, true );
+ this, TQ_SLOT(newNote()), true, true );
m_globalAccel->insert( "global_new_note_clipboard", i18n("New Note From Clipboard"), "",
TDEShortcut(), TDEShortcut(),
- this, TQT_SLOT(newNoteFromClipboard()), true, true );
+ this, TQ_SLOT(newNoteFromClipboard()), true, true );
m_globalAccel->insert( "global_hide_all_notes", i18n("Hide All Notes"), "",
TDEShortcut(), TDEShortcut(),
- this, TQT_SLOT(hideAllNotes()), true, true );
+ this, TQ_SLOT(hideAllNotes()), true, true );
m_globalAccel->insert( "global_show_all_notes", i18n("Show All Notes"), "",
TDEShortcut(), TDEShortcut(),
- this, TQT_SLOT(showAllNotes()), true, true );
+ this, TQ_SLOT(showAllNotes()), true, true );
m_globalAccel->readSettings();
@@ -174,10 +174,10 @@ KNotesApp::KNotesApp()
// create the resource manager
m_manager = new KNotesResourceManager();
- connect( m_manager, TQT_SIGNAL(sigRegisteredNote( KCal::Journal * )),
- this, TQT_SLOT(createNote( KCal::Journal * )) );
- connect( m_manager, TQT_SIGNAL(sigDeregisteredNote( KCal::Journal * )),
- this, TQT_SLOT(killNote( KCal::Journal * )) );
+ connect( m_manager, TQ_SIGNAL(sigRegisteredNote( KCal::Journal * )),
+ this, TQ_SLOT(createNote( KCal::Journal * )) );
+ connect( m_manager, TQ_SIGNAL(sigDeregisteredNote( KCal::Journal * )),
+ this, TQ_SLOT(killNote( KCal::Journal * )) );
// read the notes
m_manager->load();
@@ -201,7 +201,7 @@ KNotesApp::KNotesApp()
// create the socket and possibly start listening for connections
m_listener = new TDEServerSocket();
m_listener->setResolutionEnabled( true );
- connect( m_listener, TQT_SIGNAL(readyAccept()), TQT_SLOT(acceptConnection()) );
+ connect( m_listener, TQ_SIGNAL(readyAccept()), TQ_SLOT(acceptConnection()) );
updateNetworkListener();
if ( m_noteList.count() == 0 && !kapp->isRestored() )
@@ -575,8 +575,8 @@ void KNotesApp::slotPreferences()
// create a new preferences dialog...
KNoteConfigDlg *dialog = new KNoteConfigDlg( 0, i18n("Settings"), this,
"KNotes Settings" );
- connect( dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(updateNetworkListener()) );
- connect( dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(updateStyle()) );
+ connect( dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(updateNetworkListener()) );
+ connect( dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(updateStyle()) );
dialog->show();
}
@@ -657,14 +657,14 @@ void KNotesApp::createNote( KCal::Journal *journal )
KNote *newNote = new KNote( m_noteGUI, journal, 0, journal->uid().utf8() );
m_noteList.insert( newNote->noteId(), newNote );
- connect( newNote, TQT_SIGNAL(sigRequestNewNote()), TQT_SLOT(newNote()) );
- connect( newNote, TQT_SIGNAL(sigShowNextNote()), TQT_SLOT(slotWalkThroughNotes()) );
- connect( newNote, TQT_SIGNAL(sigKillNote( KCal::Journal* )),
- TQT_SLOT(slotNoteKilled( KCal::Journal* )) );
- connect( newNote, TQT_SIGNAL(sigNameChanged()), TQT_SLOT(updateNoteActions()) );
- connect( newNote, TQT_SIGNAL(sigDataChanged(const TQString &)), TQT_SLOT(saveNotes(const TQString &)) );
- connect( newNote, TQT_SIGNAL(sigColorChanged()), TQT_SLOT(updateNoteActions()) );
- connect( newNote, TQT_SIGNAL(sigFindFinished()), TQT_SLOT(slotFindNext()) );
+ connect( newNote, TQ_SIGNAL(sigRequestNewNote()), TQ_SLOT(newNote()) );
+ connect( newNote, TQ_SIGNAL(sigShowNextNote()), TQ_SLOT(slotWalkThroughNotes()) );
+ connect( newNote, TQ_SIGNAL(sigKillNote( KCal::Journal* )),
+ TQ_SLOT(slotNoteKilled( KCal::Journal* )) );
+ connect( newNote, TQ_SIGNAL(sigNameChanged()), TQ_SLOT(updateNoteActions()) );
+ connect( newNote, TQ_SIGNAL(sigDataChanged(const TQString &)), TQ_SLOT(saveNotes(const TQString &)) );
+ connect( newNote, TQ_SIGNAL(sigColorChanged()), TQ_SLOT(updateNoteActions()) );
+ connect( newNote, TQ_SIGNAL(sigFindFinished()), TQ_SLOT(slotFindNext()) );
// don't call this during startup for each and every loaded note
if ( m_alarm )
@@ -693,8 +693,8 @@ void KNotesApp::acceptConnection()
if ( s )
{
KNotesNetworkReceiver *recv = new KNotesNetworkReceiver( s );
- connect( recv, TQT_SIGNAL(sigNoteReceived( const TQString &, const TQString & )),
- this, TQT_SLOT(newNote( const TQString &, const TQString & )) );
+ connect( recv, TQ_SIGNAL(sigNoteReceived( const TQString &, const TQString & )),
+ this, TQ_SLOT(newNote( const TQString &, const TQString & )) );
}
}
@@ -725,7 +725,7 @@ void KNotesApp::updateNoteActions()
for ( TQDictIterator<KNote> it( m_noteList ); it.current(); ++it )
{
TDEAction *action = new TDEAction( it.current()->name().replace("&", "&&"),
- TDEShortcut(), this, TQT_SLOT(slotShowNote()),
+ TDEShortcut(), this, TQ_SLOT(slotShowNote()),
(TQObject *)0,
it.current()->noteId().utf8() );
TDEIconEffect effect;
diff --git a/knotes/knotesnetrecv.cpp b/knotes/knotesnetrecv.cpp
index 48bb791fd..d1ae12374 100644
--- a/knotes/knotesnetrecv.cpp
+++ b/knotes/knotesnetrecv.cpp
@@ -70,15 +70,15 @@ KNotesNetworkReceiver::KNotesNetworkReceiver( TDEBufferedSocket *s )
.arg( date );
// Setup the communications
- connect( m_sock, TQT_SIGNAL(readyRead()), TQT_SLOT(slotDataAvailable()) );
- connect( m_sock, TQT_SIGNAL(closed()), TQT_SLOT(slotConnectionClosed()) );
- connect( m_sock, TQT_SIGNAL(gotError( int )), TQT_SLOT(slotError( int )) );
+ connect( m_sock, TQ_SIGNAL(readyRead()), TQ_SLOT(slotDataAvailable()) );
+ connect( m_sock, TQ_SIGNAL(closed()), TQ_SLOT(slotConnectionClosed()) );
+ connect( m_sock, TQ_SIGNAL(gotError( int )), TQ_SLOT(slotError( int )) );
m_sock->enableRead( true );
// Setup the timer
m_timer = new TQTimer( this, "m_timer" );
- connect( m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotReceptionTimeout()) );
+ connect( m_timer, TQ_SIGNAL(timeout()), TQ_SLOT(slotReceptionTimeout()) );
m_timer->start( MAXTIME, true );
}
diff --git a/knotes/knotesnetsend.cpp b/knotes/knotesnetsend.cpp
index d1e9f1d81..55dc75c38 100644
--- a/knotes/knotesnetsend.cpp
+++ b/knotes/knotesnetsend.cpp
@@ -48,11 +48,11 @@ KNotesNetworkSender::KNotesNetworkSender( const TQString& hostname, int port )
// TQObject:: prefix needed, otherwise the KStreamSocket::connect()
// mehtod is called!!!
- TQObject::connect( this, TQT_SIGNAL(connected( const KResolverEntry& )),
- TQT_SLOT(slotConnected( const KResolverEntry& )) );
- TQObject::connect( this, TQT_SIGNAL(gotError( int )), TQT_SLOT(slotError( int )) );
- TQObject::connect( this, TQT_SIGNAL(closed()), TQT_SLOT(slotClosed()) );
- TQObject::connect( this, TQT_SIGNAL(readyWrite()), TQT_SLOT(slotReadyWrite()) );
+ TQObject::connect( this, TQ_SIGNAL(connected( const KResolverEntry& )),
+ TQ_SLOT(slotConnected( const KResolverEntry& )) );
+ TQObject::connect( this, TQ_SIGNAL(gotError( int )), TQ_SLOT(slotError( int )) );
+ TQObject::connect( this, TQ_SIGNAL(closed()), TQ_SLOT(slotClosed()) );
+ TQObject::connect( this, TQ_SIGNAL(readyWrite()), TQ_SLOT(slotReadyWrite()) );
}
void KNotesNetworkSender::setSenderId( const TQString& sender )
diff --git a/knotes/main.cpp b/knotes/main.cpp
index e809a8f71..8b85abe3c 100644
--- a/knotes/main.cpp
+++ b/knotes/main.cpp
@@ -122,7 +122,7 @@ int main( int argc, char* argv[] )
KUniqueApplication::addCmdLineOptions();
Application app;
- app.connect( &app, TQT_SIGNAL( lastWindowClosed() ), &app, TQT_SLOT( quit() ) );
+ app.connect( &app, TQ_SIGNAL( lastWindowClosed() ), &app, TQ_SLOT( quit() ) );
remove_sm_from_client_leader();