makeDocBookFile(FileName(filename), runparams);
}
// LaTeX backend
- else if (!put_in_tempdir) {
+ else if (backend_format == format) {
runparams.nice = true;
if (!makeLaTeXFile(FileName(filename), string(), runparams))
return false;
tmpkey += Qt::AltModifier;
QKeySequence seq(tmpkey);
+ QString str;
+
+ if (forgui)
+ str = seq.toString(QKeySequence::NativeText);
+ else {
+#ifdef Q_WS_MACX
+ // Qt/Mac does not use Command and friends in the
+ // portable case, but the windows-like Control+x (bug 5421).
+ str = seq.toString(QKeySequence::NativeText);
+ str.replace(QChar(0x21E7), qt_("Shift-"));
+ str.replace(QChar(0x2303), qt_("Control-"));
+ str.replace(QChar(0x2325), qt_("Option-"));
+ str.replace(QChar(0x2318), qt_("Command-"));
+#else
+ str = seq.toString(QKeySequence::PortableText);
+#endif
+ }
- return qstring_to_ucs4(seq.toString(forgui ? QKeySequence::NativeText
- : QKeySequence::PortableText));
+ return qstring_to_ucs4(str);
}
}
+docstring InsetFloat::name() const
+{
+ return "Float:" + name_;
+}
+
+
docstring InsetFloat::toolTip(BufferView const & bv, int x, int y) const
{
if (InsetCollapsable::toolTip(bv, x, y).empty() || isOpen())
InsetFloatParams const & params() const { return params_; }
private:
///
- docstring name() const { return name_; }
+ docstring name() const;
///
docstring toolTip(BufferView const & bv, int x, int y) const;
///