[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/nepomuk-kde/annotation/lib/gui
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-05-04 10:10:19
Message-ID: 20100504101019.3DDB4AC8AB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1122612 by trueg:

Added signal which is emitted for each new annotation

 M  +3 -0      resourceannotationmodel.cpp  
 M  +5 -0      resourceannotationmodel.h  


--- trunk/playground/base/nepomuk-kde/annotation/lib/gui/resourceannotationmodel.cpp #1122611:1122612
@@ -93,6 +93,7 @@
 void Nepomuk::ResourceAnnotationModel::Private::_k_strigiResult( KJob* )
 {
     QString text = m_strigiJob->text();
+    kDebug() << text.left(10);
     m_strigiJob = 0;
     updateAnnotations( text );
 }
@@ -106,6 +107,8 @@
     d->m_wrapper = new AnnotationPluginWrapper( this );
     connect( d->m_wrapper, SIGNAL( newAnnotation( Nepomuk::Annotation* ) ),
              this, SLOT( addNewAnnotation( Nepomuk::Annotation* ) ) );
+    connect( d->m_wrapper, SIGNAL( newAnnotation( Nepomuk::Annotation* ) ),
+             this, SIGNAL( newAnnotation( Nepomuk::Annotation* ) ) );
     connect( d->m_wrapper, SIGNAL( finished() ),
              this, SIGNAL( finished() ) );
 }
--- trunk/playground/base/nepomuk-kde/annotation/lib/gui/resourceannotationmodel.h #1122611:1122612
@@ -53,6 +53,11 @@
          */
         void finished();
 
+        /**
+         * \sa AnnotationPlugin::newAnnotation
+         */
+        void newAnnotation( Nepomuk::Annotation* annotation );
+
     public Q_SLOTS:
         void setResource( const Nepomuk::Resource& );
         void setContent( const QString& content );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic