[rkward-cvs] rkward/rkward robjectbrowser.cpp,1.17,1.18 robjectbrowser.h,1.10,1.11

Thomas Friedrichsmeier tfry at users.sourceforge.net
Mon Apr 17 21:30:45 UTC 2006


Update of /cvsroot/rkward/rkward/rkward
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28985/rkward

Modified Files:
	robjectbrowser.cpp robjectbrowser.h 
Log Message:
Saner column width for RKObjectListView

Index: robjectbrowser.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/robjectbrowser.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** robjectbrowser.cpp	25 Sep 2005 18:45:44 -0000	1.17
--- robjectbrowser.cpp	17 Apr 2006 21:30:42 -0000	1.18
***************
*** 56,62 ****
  	list_view->contextMenu ()->insertItem (i18n ("Delete"), this, SLOT (popupDelete ()), 0, Delete, 3);
  	list_view->contextMenu ()->insertSeparator (4);
! 	connect (list_view, SIGNAL (aboutToShowContextMenu (QListViewItem*, bool*)), this, SLOT (contextMenuCallback (QListViewItem*, bool*)));
  	
! 	connect (list_view, SIGNAL (doubleClicked ( QListViewItem *, const QPoint &, int )), this, SLOT (slotListDoubleClicked (QListViewItem *, const QPoint &, int)));
  	
  	resize (minimumSizeHint ().expandedTo (QSize (400, 480)));
--- 56,62 ----
  	list_view->contextMenu ()->insertItem (i18n ("Delete"), this, SLOT (popupDelete ()), 0, Delete, 3);
  	list_view->contextMenu ()->insertSeparator (4);
! 	connect (list_view, SIGNAL (aboutToShowContextMenu (RKListViewItem*, bool*)), this, SLOT (contextMenuCallback (RKListViewItem*, bool*)));
  	
! 	connect (list_view, SIGNAL (doubleClicked (QListViewItem *, const QPoint &, int )), this, SLOT (slotListDoubleClicked (QListViewItem *, const QPoint &, int)));
  	
  	resize (minimumSizeHint ().expandedTo (QSize (400, 480)));
***************
*** 100,104 ****
  }
  
! void RObjectBrowser::contextMenuCallback (QListViewItem *, bool *) {
  	RObject *object = list_view->menuObject ();
  	QPopupMenu *menu = list_view->contextMenu ();
--- 100,104 ----
  }
  
! void RObjectBrowser::contextMenuCallback (RKListViewItem *, bool *) {
  	RObject *object = list_view->menuObject ();
  	QPopupMenu *menu = list_view->contextMenu ();
***************
*** 122,126 ****
  void RObjectBrowser::slotListDoubleClicked (QListViewItem *item, const QPoint &, int)
  {
! 	RObject *object = list_view->findItemObject (item);
  	
  	if (!object) return;
--- 122,126 ----
  void RObjectBrowser::slotListDoubleClicked (QListViewItem *item, const QPoint &, int)
  {
! 	RObject *object = list_view->findItemObject (static_cast<RKListViewItem*> (item));
  	
  	if (!object) return;

Index: robjectbrowser.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/robjectbrowser.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** robjectbrowser.h	25 Sep 2005 18:45:44 -0000	1.10
--- robjectbrowser.h	17 Apr 2006 21:30:42 -0000	1.11
***************
*** 21,24 ****
--- 21,25 ----
  
  class RKObjectListView;
+ class RKListViewItem;
  class QListViewItem;
  class QPushButton;
***************
*** 44,48 ****
  public slots:
  	void updateButtonClicked ();
! 	void contextMenuCallback (QListViewItem *item, bool *suppress);
  	
  	void popupEdit ();
--- 45,49 ----
  public slots:
  	void updateButtonClicked ();
! 	void contextMenuCallback (RKListViewItem *item, bool *suppress);
  	
  	void popupEdit ();
***************
*** 50,55 ****
  	void popupDelete ();
  	void popupRename ();
! /** when an object in the list is double clicked, insert its name in the current RKCommandEditor windo */
!     void slotListDoubleClicked(QListViewItem *item, const QPoint &pos, int);
  private:
  	friend class RKwardApp;
--- 51,56 ----
  	void popupDelete ();
  	void popupRename ();
! /** when an object in the list is double clicked, insert its name in the current RKCommandEditor window */
!     void slotListDoubleClicked (QListViewItem *item, const QPoint &pos, int);
  private:
  	friend class RKwardApp;





More information about the rkward-tracker mailing list