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

List:       kde-commits
Subject:    KDE/kdepimlibs/akonadi
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2008-11-01 11:53:42
Message-ID: 1225540422.837464.8467.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 878481 by toma:

Make sure the list is sorted and add a signal for doubleclicking.


 M  +3 -0      agenttypewidget.cpp  
 M  +6 -0      agenttypewidget.h  


--- trunk/KDE/kdepimlibs/akonadi/agenttypewidget.cpp #878480:878481
@@ -92,12 +92,15 @@
   d->mModel = new AgentTypeModel( d->mView );
   d->proxyModel = new AgentFilterProxyModel( this );
   d->proxyModel->setSourceModel( d->mModel );
+  d->proxyModel->sort( 0 );
   d->mView->setModel( d->proxyModel );
 
   d->mView->selectionModel()->setCurrentIndex( d->mView->model()->index( 0, 0 ), \
QItemSelectionModel::Select );  d->mView->scrollTo( d->mView->model()->index( 0, 0 ) \
);  connect( d->mView->selectionModel(), SIGNAL( currentChanged( const QModelIndex&, \
                const QModelIndex& ) ),
            this, SLOT( currentAgentTypeChanged( const QModelIndex&, const \
QModelIndex& ) ) ); +  connect( d->mView, SIGNAL( doubleClicked( const QModelIndex& ) \
), +           SIGNAL( doubleClicked() ) );
 }
 
 AgentTypeWidget::~AgentTypeWidget()
--- trunk/KDE/kdepimlibs/akonadi/agenttypewidget.h #878480:878481
@@ -99,6 +99,12 @@
      */
     void currentChanged( const Akonadi::AgentType &current, const Akonadi::AgentType \
&previous );  
+    /**
+      * This signal is emitted whenever the user doubleclicks on an agent.
+      * @since 4.2
+      */
+    void doubleClicked();
+
   private:
     //@cond PRIVATE
     class Private;


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

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