[scribus-dev] r17722 by gpittman - trial of augmented tooltips with shortcuts -- feedback?

Craig Bradney cbradney at scribus.info
Mon Jul 16 16:32:09 UTC 2012


On 7/16/12 6:03 PM, scribus-commit wrote:
>  	(*scrActions)["toolsInsertFreehandLine"]->setText( tr("Insert &Freehand Line"));
> +	(*scrActions)["toolsInsertFreehandLine"]->setToolTip( tr("Insert Freehand Line")+" <b>"+QString(defaultKey("toolsInsertFreehandLine"))+"</b>");


Hi

If we are going to need two lines, then we would do it like this:

	(*scrActions)["toolsInsertFreehandLine"]->setText( tr("Insert &Freehand Line"));
+	(*scrActions)["toolsInsertFreehandLine"]->setToolTip(
(*scrActions)["toolsInsertFreehandLine"]->text() + "
<b>"+QString(defaultKey("toolsInsertFreehandLine"))+"</b>");

to avoid 2x the translation requirement.

However, I was thinking of doing this in the scraction code itself and avoid this altogether.

Craig



More information about the scribus-dev mailing list