Re: models & editors in PyQt4

2006-08-30 Thread David Boddie
Skink wrote: > David Boddie wrote: > > I find it strange that you have to triple-click to edit any of the > > items in your example. Do you see the same behaviour? > oh, this is default Qt behavoiur: first click selects row, second select > editor (for ColorProperty, IntProperty & StringProperty

Re: models & editors in PyQt4

2006-08-30 Thread Skink
David Boddie wrote: > > It should be OK - it shouldn't crash, anyway. It depends on the view > doing the right thing when it finds that it hasn't received an editor > widget. > > You could create an empty placeholder widget in the createEditor() > method, call QColorDialog.getColor() with the exi

Re: models & editors in PyQt4

2006-08-30 Thread David Boddie
Skink wrote: > I created simple property classes with editing option, but since i'm not > too much experienced in PyQt4 i'd like to ask if i handle ColorProperty > changing right. Any other Property has its own editor and their control > flow is imho ok. Hovewer i'm not sure about ColorProperty. >

models & editors in PyQt4

2006-08-30 Thread Skink
Hi, I created simple property classes with editing option, but since i'm not too much experienced in PyQt4 i'd like to ask if i handle ColorProperty changing right. Any other Property has its own editor and their control flow is imho ok. Hovewer i'm not sure about ColorProperty. What i do is: