diff options
Diffstat (limited to 'korganizer/korganizer_part.cpp')
-rw-r--r-- | korganizer/korganizer_part.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/korganizer/korganizer_part.cpp b/korganizer/korganizer_part.cpp index 572255494..65511bd18 100644 --- a/korganizer/korganizer_part.cpp +++ b/korganizer/korganizer_part.cpp @@ -52,7 +52,7 @@ #include <ktempfile.h> #include <kstatusbar.h> #include <kparts/genericfactory.h> - +#include <kparts/partmanager.h> #include <kparts/statusbarextension.h> #include <sidebarextension.h> @@ -109,8 +109,8 @@ KOrganizerPart::KOrganizerPart( TQWidget *parentWidget, const char *widgetName, KParts::InfoExtension *ie = new KParts::InfoExtension( this, "KOrganizerInfo" ); - connect( mView, TQT_SIGNAL( incidenceSelected( Incidence * ) ), - TQT_SLOT( slotChangeInfo( Incidence * ) ) ); + connect( mView, TQT_SIGNAL( incidenceSelected( Incidence *,const TQDate & ) ), + TQT_SLOT( slotChangeInfo( Incidence *,const TQDate & ) ) ); connect( this, TQT_SIGNAL( textChanged( const TQString & ) ), ie, TQT_SIGNAL( textChanged( const TQString & ) ) ); @@ -145,7 +145,7 @@ void KOrganizerPart::startCompleted( KProcess *process ) delete process; } -void KOrganizerPart::slotChangeInfo( Incidence *incidence ) +void KOrganizerPart::slotChangeInfo( Incidence *incidence, const TQDate & ) { if ( incidence ) { emit textChanged( incidence->summary() + " / " + @@ -234,4 +234,13 @@ void KOrganizerPart::setTitle() emit setWindowCaption( title );*/ } +bool KOrganizerPart::isCurrentlyActivePart() +{ + if ( manager() ) { + return ( manager()->activePart() == this ); + } else { + return false; + } +} + #include "korganizer_part.moc" |