On Tuesday 15 December 2015 11:05:24 Yves Guillemot wrote: > Le mardi 15 décembre 2015, 10:53:23 David Faure a écrit : > > On Tuesday 15 December 2015 04:47:16 D. Michael McIntyre wrote: > > > It's pretty easy to hit the clear button by accident, and you can't undo > > > if you wipe out the text you typed. It could have an "are you sure" > > > dialog or it would be just as good to push some command onto the undo > > > stack. Either one of those is just enough trouble to be more than I'm > > > going to code today. The undo stack is probably the superior choice, > > > although I imagine it could get complicated, > > > > QTextEdit has builtin undo/redo support... is this not a QTextEdit? > > Yes, it is a a QtextEdit and yes, undo is working (Ctrl-Z). > I don't know exactly what the redo shortcut is but I presume it should exist.
Should be Ctrl+Shift+Z on the usual platforms. > That said, the clear button is probably not very useful as Ctrl-A Ctrl-X does > the same job. Ah so it's just clear() that doesn't lead to an undo command, I see. Maybe setPlainText(QString()) does? Untested. -- David Faure, fa...@kde.org, http://www.davidfaure.fr Working on KDE Frameworks 5 ------------------------------------------------------------------------------ _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel