Sune Foldager
2011-11-21 15:27:02 UTC
Another small thing, namely QNew/QRefresh in thg commit. In hgtk it was
there, but in thg it's only there in the embedded version. Why is that?
I managed to crudely hack it in like this:
- add self.buttonHBox.addWidget(self.mqSetupButton()) to the bottom of
__init__ in CommitWidget (this is normally done from the embedder).
- make sure QRefresh is the default button for the non-embedded case
(which requires remembering if we're embedded or not, and using that in
_getPreferredActionName).
Haven't tested it much, but it seems to work. It seems so simple, in
fact, that I'm sure there is a design decision behind this. It's not a
showstopper, but a nice feature, IMO.
Currently, when you have an MQ patch, thg commit still opens up, but you
can't do anything in it (the Commit button is disabled). That's, at
least, not optimal either.
Again, I'll be happy to do the coding for any changes :)
-Sune
there, but in thg it's only there in the embedded version. Why is that?
I managed to crudely hack it in like this:
- add self.buttonHBox.addWidget(self.mqSetupButton()) to the bottom of
__init__ in CommitWidget (this is normally done from the embedder).
- make sure QRefresh is the default button for the non-embedded case
(which requires remembering if we're embedded or not, and using that in
_getPreferredActionName).
Haven't tested it much, but it seems to work. It seems so simple, in
fact, that I'm sure there is a design decision behind this. It's not a
showstopper, but a nice feature, IMO.
Currently, when you have an MQ patch, thg commit still opens up, but you
can't do anything in it (the Commit button is disabled). That's, at
least, not optimal either.
Again, I'll be happy to do the coding for any changes :)
-Sune