[yast-commit] r42869 - in /trunk/qt4/src: YQSelectionBox.cc YQSelectionBox.h YQTable.cc YQTree.cc YQWizard.cc
Author: coolo Date: Sun Dec 9 18:28:12 2007 New Revision: 42869 URL: http://svn.opensuse.org/viewcvs/yast?rev=42869&view=rev Log: fix signal names Modified: trunk/qt4/src/YQSelectionBox.cc trunk/qt4/src/YQSelectionBox.h trunk/qt4/src/YQTable.cc trunk/qt4/src/YQTree.cc trunk/qt4/src/YQWizard.cc Modified: trunk/qt4/src/YQSelectionBox.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQSelectionBox.cc?rev=42869&r1=42868&r2=42869&view=diff ============================================================================== --- trunk/qt4/src/YQSelectionBox.cc (original) +++ trunk/qt4/src/YQSelectionBox.cc Sun Dec 9 18:28:12 2007 @@ -70,8 +70,8 @@ //FIXME _qt_listBox->setTopItem(0); _caption->setBuddy( _qt_listBox ); - connect( _qt_listBox, SIGNAL( highlighted ( int ) ), - this, SLOT ( slotSelected( int ) ) ); + connect( _qt_listBox, SIGNAL( itemChanged ( QListWidgetItem * ) ), + this, SLOT ( slotSelected( QListWidgetItem * ) ) ); connect( _qt_listBox, SIGNAL( itemDoubleClicked( QListWidgetItem * ) ), this, SLOT ( slotActivated( QListWidgetItem * ) ) ); @@ -264,9 +264,9 @@ } -void YQSelectionBox::slotSelected( int index ) +void YQSelectionBox::slotSelected( QListWidgetItem *item ) { - selectItem( index ); + selectItem( _qt_listBox->row( item ) ); if ( notify() ) { Modified: trunk/qt4/src/YQSelectionBox.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQSelectionBox.h?rev=42869&r1=42868&r2=42869&view=diff ============================================================================== --- trunk/qt4/src/YQSelectionBox.h (original) +++ trunk/qt4/src/YQSelectionBox.h Sun Dec 9 18:28:12 2007 @@ -130,7 +130,7 @@ * Notification that an item has been selected. * This is only relevant if `opt(`notify ) is set. **/ - void slotSelected( int index ); + void slotSelected( QListWidgetItem * item ); /** * Notification that an item has been activated (double clicked). Modified: trunk/qt4/src/YQTable.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQTable.cc?rev=42869&r1=42868&r2=42869&view=diff ============================================================================== --- trunk/qt4/src/YQTable.cc (original) +++ trunk/qt4/src/YQTable.cc Sun Dec 9 18:28:12 2007 @@ -82,7 +82,7 @@ connect( _qt_listView, SIGNAL( itemDoubleClicked ( QTreeWidgetItem *, int ) ), this, SLOT ( slotActivated ( QTreeWidgetItem * ) ) ); - connect( _qt_listView, SIGNAL( spacePressed ( QTreeWidgetItem * ) ), + connect( _qt_listView, SIGNAL( itemActivated ( QTreeWidgetItem *, int ) ), this, SLOT ( slotActivated ( QTreeWidgetItem * ) ) ); connect( _qt_listView, SIGNAL( currentItemChanged ( QTreeWidgetItem *, QTreeWidgetItem * ) ), Modified: trunk/qt4/src/YQTree.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQTree.cc?rev=42869&r1=42868&r2=42869&view=diff ============================================================================== --- trunk/qt4/src/YQTree.cc (original) +++ trunk/qt4/src/YQTree.cc Sun Dec 9 18:28:12 2007 @@ -74,10 +74,10 @@ connect( _qt_listView, SIGNAL( itemSelectionChanged () ), this, SLOT ( slotSelectionChanged () ) ); - connect( _qt_listView, SIGNAL( spacePressed ( QTreeWidgetItem * ) ), + connect( _qt_listView, SIGNAL( itemActivated ( QTreeWidgetItem * , int ) ), this, SLOT ( slotActivated ( QTreeWidgetItem * ) ) ); - connect( _qt_listView, SIGNAL( itemDoubleClicked ( QTreeWidgetItem *, int) ), + connect( _qt_listView, SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int ) ), this, SLOT ( slotActivated ( QTreeWidgetItem * ) ) ); } Modified: trunk/qt4/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQWizard.cc?rev=42869&r1=42868&r2=42869&view=diff ============================================================================== --- trunk/qt4/src/YQWizard.cc (original) +++ trunk/qt4/src/YQWizard.cc Sun Dec 9 18:28:12 2007 @@ -446,7 +446,7 @@ connect( _tree, SIGNAL( itemSelectionChanged ( void ) ), this, SLOT ( treeSelectionChanged ( void ) ) ); - connect( _tree, SIGNAL( spacePressed ( QTreeWidgetItem * ) ), + connect( _tree, SIGNAL( itemActivated ( QTreeWidgetItem *, int ) ), this, SLOT ( sendTreeEvent ( QTreeWidgetItem * ) ) ); connect( _tree, SIGNAL( itemDoubleClicked ( QTreeWidgetItem *, int ) ), -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
coolo@svn.opensuse.org