summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/knotes
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/knotes')
-rw-r--r--kontact/plugins/knotes/knotes_part.cpp44
-rw-r--r--kontact/plugins/knotes/knotes_part.h2
-rw-r--r--kontact/plugins/knotes/knotes_part_p.h4
-rw-r--r--kontact/plugins/knotes/knotes_plugin.cpp6
-rw-r--r--kontact/plugins/knotes/knotes_plugin.h2
-rw-r--r--kontact/plugins/knotes/knotetip.cpp8
-rw-r--r--kontact/plugins/knotes/summarywidget.cpp14
-rw-r--r--kontact/plugins/knotes/summarywidget.h2
8 files changed, 41 insertions, 41 deletions
diff --git a/kontact/plugins/knotes/knotes_part.cpp b/kontact/plugins/knotes/knotes_part.cpp
index 20e8d6c9..7ec3df6c 100644
--- a/kontact/plugins/knotes/knotes_part.cpp
+++ b/kontact/plugins/knotes/knotes_part.cpp
@@ -50,13 +50,13 @@ KNotesPart::KNotesPart( TQObject *parent, const char *name )
setInstance( new TDEInstance( "knotes" ) );
// create the actions
- new TDEAction( i18n( "&New" ), "knotes", CTRL+Key_N, this, TQT_SLOT( newNote() ),
+ new TDEAction( i18n( "&New" ), "knotes", CTRL+Key_N, this, TQ_SLOT( newNote() ),
actionCollection(), "file_new" );
- new TDEAction( i18n( "Rename..." ), "text", this, TQT_SLOT( renameNote() ),
+ new TDEAction( i18n( "Rename..." ), "text", this, TQ_SLOT( renameNote() ),
actionCollection(), "edit_rename" );
- new TDEAction( i18n( "Delete" ), "edit-delete", Key_Delete, this, TQT_SLOT( killSelectedNotes() ),
+ new TDEAction( i18n( "Delete" ), "edit-delete", Key_Delete, this, TQ_SLOT( killSelectedNotes() ),
actionCollection(), "edit_delete" );
- new TDEAction( i18n( "Print Selected Notes..." ), "print", CTRL+Key_P, this, TQT_SLOT( printSelectedNotes() ),
+ new TDEAction( i18n( "Print Selected Notes..." ), "print", CTRL+Key_P, this, TQ_SLOT( printSelectedNotes() ),
actionCollection(), "print_note" );
// TODO icons: s/editdelete/knotes_delete/ or the other way round in knotes
@@ -68,20 +68,20 @@ KNotesPart::KNotesPart( TQObject *parent, const char *name )
mNotesView->setAutoArrange( true );
mNotesView->setSorting( true );
- connect( mNotesView, TQT_SIGNAL( executed( TQIconViewItem* ) ),
- this, TQT_SLOT( editNote( TQIconViewItem* ) ) );
- connect( mNotesView, TQT_SIGNAL( returnPressed( TQIconViewItem* ) ),
- this, TQT_SLOT( editNote( TQIconViewItem* ) ) );
- connect( mNotesView, TQT_SIGNAL( itemRenamed( TQIconViewItem* ) ),
- this, TQT_SLOT( renamedNote( TQIconViewItem* ) ) );
- connect( mNotesView, TQT_SIGNAL( contextMenuRequested( TQIconViewItem*, const TQPoint& ) ),
- this, TQT_SLOT( popupRMB( TQIconViewItem*, const TQPoint& ) ) );
- connect( mNotesView, TQT_SIGNAL( onItem( TQIconViewItem* ) ),
- this, TQT_SLOT( slotOnItem( TQIconViewItem* ) ) );
- connect( mNotesView, TQT_SIGNAL( onViewport() ),
- this, TQT_SLOT( slotOnViewport() ) );
- connect( mNotesView, TQT_SIGNAL( currentChanged( TQIconViewItem* ) ),
- this, TQT_SLOT( slotOnCurrentChanged( TQIconViewItem* ) ) );
+ connect( mNotesView, TQ_SIGNAL( executed( TQIconViewItem* ) ),
+ this, TQ_SLOT( editNote( TQIconViewItem* ) ) );
+ connect( mNotesView, TQ_SIGNAL( returnPressed( TQIconViewItem* ) ),
+ this, TQ_SLOT( editNote( TQIconViewItem* ) ) );
+ connect( mNotesView, TQ_SIGNAL( itemRenamed( TQIconViewItem* ) ),
+ this, TQ_SLOT( renamedNote( TQIconViewItem* ) ) );
+ connect( mNotesView, TQ_SIGNAL( contextMenuRequested( TQIconViewItem*, const TQPoint& ) ),
+ this, TQ_SLOT( popupRMB( TQIconViewItem*, const TQPoint& ) ) );
+ connect( mNotesView, TQ_SIGNAL( onItem( TQIconViewItem* ) ),
+ this, TQ_SLOT( slotOnItem( TQIconViewItem* ) ) );
+ connect( mNotesView, TQ_SIGNAL( onViewport() ),
+ this, TQ_SLOT( slotOnViewport() ) );
+ connect( mNotesView, TQ_SIGNAL( currentChanged( TQIconViewItem* ) ),
+ this, TQ_SLOT( slotOnCurrentChanged( TQIconViewItem* ) ) );
slotOnCurrentChanged( 0 );
@@ -91,10 +91,10 @@ KNotesPart::KNotesPart( TQObject *parent, const char *name )
setXMLFile( "knotes_part.rc" );
// connect the resource manager
- connect( mManager, TQT_SIGNAL( sigRegisteredNote( KCal::Journal* ) ),
- this, TQT_SLOT( createNote( KCal::Journal* ) ) );
- connect( mManager, TQT_SIGNAL( sigDeregisteredNote( KCal::Journal* ) ),
- this, TQT_SLOT( killNote( KCal::Journal* ) ) );
+ connect( mManager, TQ_SIGNAL( sigRegisteredNote( KCal::Journal* ) ),
+ this, TQ_SLOT( createNote( KCal::Journal* ) ) );
+ connect( mManager, TQ_SIGNAL( sigDeregisteredNote( KCal::Journal* ) ),
+ this, TQ_SLOT( killNote( KCal::Journal* ) ) );
// read the notes
mManager->load();
diff --git a/kontact/plugins/knotes/knotes_part.h b/kontact/plugins/knotes/knotes_part.h
index 67808bae..62766b1f 100644
--- a/kontact/plugins/knotes/knotes_part.h
+++ b/kontact/plugins/knotes/knotes_part.h
@@ -46,7 +46,7 @@ class Journal;
class KNotesPart : public KParts::ReadOnlyPart, virtual public KNotesIface
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kontact/plugins/knotes/knotes_part_p.h b/kontact/plugins/knotes/knotes_part_p.h
index 9a30d715..735f492e 100644
--- a/kontact/plugins/knotes/knotes_part_p.h
+++ b/kontact/plugins/knotes/knotes_part_p.h
@@ -114,7 +114,7 @@ class KNotesIconView : public TDEIconView
class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -144,7 +144,7 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient
mNoteEdit->setFocus();
KXMLGUIBuilder builder( page );
- KXMLGUIFactory factory( &builder, TQT_TQOBJECT(this) );
+ KXMLGUIFactory factory( &builder, this );
factory.addClient( this );
mTool = static_cast<TDEToolBar *>(factory.container( "note_tool", this ));
diff --git a/kontact/plugins/knotes/knotes_plugin.cpp b/kontact/plugins/knotes/knotes_plugin.cpp
index bec6fb5c..1b66eea1 100644
--- a/kontact/plugins/knotes/knotes_plugin.cpp
+++ b/kontact/plugins/knotes/knotes_plugin.cpp
@@ -39,15 +39,15 @@ K_EXPORT_COMPONENT_FACTORY( libkontact_knotesplugin,
KNotesPlugin::KNotesPlugin( Kontact::Core *core, const char *, const TQStringList & )
- : Kontact::Plugin( core, TQT_TQOBJECT(core), "knotes" ),
+ : Kontact::Plugin( core, core, "knotes" ),
mAboutData( 0 )
{
setInstance( KNotesPluginFactory::instance() );
insertNewAction( new TDEAction( i18n( "New Note..." ), "knotes", CTRL+SHIFT+Key_N,
- this, TQT_SLOT( slotNewNote() ), actionCollection(), "new_note" ) );
+ this, TQ_SLOT( slotNewNote() ), actionCollection(), "new_note" ) );
insertSyncAction( new TDEAction( i18n( "Synchronize Notes" ), "reload", 0,
- this, TQT_SLOT( slotSyncNotes() ), actionCollection(), "knotes_sync" ) );
+ this, TQ_SLOT( slotSyncNotes() ), actionCollection(), "knotes_sync" ) );
}
KNotesPlugin::~KNotesPlugin()
diff --git a/kontact/plugins/knotes/knotes_plugin.h b/kontact/plugins/knotes/knotes_plugin.h
index 069f10fb..1bde9e63 100644
--- a/kontact/plugins/knotes/knotes_plugin.h
+++ b/kontact/plugins/knotes/knotes_plugin.h
@@ -31,7 +31,7 @@ class SummaryWidget;
class KNotesPlugin : public Kontact::Plugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& );
diff --git a/kontact/plugins/knotes/knotetip.cpp b/kontact/plugins/knotes/knotetip.cpp
index 97bd771f..dfa469bc 100644
--- a/kontact/plugins/knotes/knotetip.cpp
+++ b/kontact/plugins/knotes/knotetip.cpp
@@ -75,7 +75,7 @@ void KNoteTip::setNote( KNotesIconViewItem *item )
mNoteIVI = item;
if ( !mNoteIVI ) {
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
if ( isVisible() ) {
setFilter( false );
hide();
@@ -104,7 +104,7 @@ void KNoteTip::setNote( KNotesIconViewItem *item )
resize( w, TQMIN( h, desk.height() / 2 - 20 ) );
hide();
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
setFilter( true );
startTimer( 600 ); // delay showing the tooltip for 0.7 sec
}
@@ -121,7 +121,7 @@ void KNoteTip::resizeEvent( TQResizeEvent *ev )
void KNoteTip::timerEvent( TQTimerEvent * )
{
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
if ( !isVisible() ) {
startTimer( 15000 ); // show the tooltip for 15 sec
@@ -144,7 +144,7 @@ bool KNoteTip::eventFilter( TQObject *, TQEvent *e )
case TQEvent::FocusIn:
case TQEvent::FocusOut:
case TQEvent::Wheel:
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
setFilter( false );
hide();
default:
diff --git a/kontact/plugins/knotes/summarywidget.cpp b/kontact/plugins/knotes/summarywidget.cpp
index ca0f6ae5..89ae1ec1 100644
--- a/kontact/plugins/knotes/summarywidget.cpp
+++ b/kontact/plugins/knotes/summarywidget.cpp
@@ -61,10 +61,10 @@ KNotesSummaryWidget::KNotesSummaryWidget( Kontact::Plugin *plugin,
mCalendar = new KCal::CalendarLocal( TQString::fromLatin1("UTC") );
KNotesResourceManager *manager = new KNotesResourceManager();
- TQObject::connect( manager, TQT_SIGNAL( sigRegisteredNote( KCal::Journal* ) ),
- this, TQT_SLOT( addNote( KCal::Journal* ) ) );
- TQObject::connect( manager, TQT_SIGNAL( sigDeregisteredNote( KCal::Journal* ) ),
- this, TQT_SLOT( removeNote( KCal::Journal* ) ) );
+ TQObject::connect( manager, TQ_SIGNAL( sigRegisteredNote( KCal::Journal* ) ),
+ this, TQ_SLOT( addNote( KCal::Journal* ) ) );
+ TQObject::connect( manager, TQ_SIGNAL( sigDeregisteredNote( KCal::Journal* ) ),
+ this, TQ_SLOT( removeNote( KCal::Journal* ) ) );
manager->load();
@@ -111,8 +111,8 @@ void KNotesSummaryWidget::updateView()
TQToolTip::add( urlLabel, (*it)->description().left( 80 ) );
}
- connect( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ),
- this, TQT_SLOT( urlClicked( const TQString& ) ) );
+ connect( urlLabel, TQ_SIGNAL( leftClickedURL( const TQString& ) ),
+ this, TQ_SLOT( urlClicked( const TQString& ) ) );
counter++;
}
@@ -138,7 +138,7 @@ void KNotesSummaryWidget::urlClicked( const TQString &/*uid*/ )
bool KNotesSummaryWidget::eventFilter( TQObject *obj, TQEvent* e )
{
if ( obj->inherits( "KURLLabel" ) ) {
- KURLLabel* label = static_cast<KURLLabel*>( TQT_TQWIDGET(obj) );
+ KURLLabel* label = static_cast<KURLLabel*>( obj );
if ( e->type() == TQEvent::Enter )
emit message( i18n( "Read Note: \"%1\"" ).arg( label->text() ) );
if ( e->type() == TQEvent::Leave )
diff --git a/kontact/plugins/knotes/summarywidget.h b/kontact/plugins/knotes/summarywidget.h
index 305873d7..1ac015f4 100644
--- a/kontact/plugins/knotes/summarywidget.h
+++ b/kontact/plugins/knotes/summarywidget.h
@@ -42,7 +42,7 @@ namespace Kontact {
class KNotesSummaryWidget : public Kontact::Summary
{
- Q_OBJECT
+ TQ_OBJECT
public: