]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.h
Initialize class members to please coverity
[lyx.git] / src / frontends / qt4 / qt_helpers.h
index 5574212c26382cfba5f965e7a1b5677c8cc56e25..f59b22ee76c28a46a9142d03ca5e19a8a0d2a374 100644 (file)
@@ -80,6 +80,9 @@ bool ColorSorter(ColorCode lhs, ColorCode rhs);
 /// colors a widget red if invalid
 void setValid(QWidget * widget, bool valid);
 
+// set focus and highlight the current item if there is no selection already
+void focusAndHighlight(QAbstractItemView * w);
+
 /// Qt5 changed setSectionMode to setSectionResizeMode
 /// These wrappers work for Qt4 and Qt5
 void setSectionResizeMode(QHeaderView * view,
@@ -191,10 +194,6 @@ QString getExtension(QString const & name);
 QString makeAbsPath(QString const & relpath, QString const & base);
 QString changeExtension(QString const & oldname, QString const & ext);
 
-/// \return the display string associated with given type and buffer
-/// parameter.
-QString guiName(std::string const & type, BufferParams const & bp);
-
 /// Format \param text for display as a ToolTip, breaking at lines of \param
 /// width ems. Note: this function is expensive. Better call it in a delayed
 /// manner, i.e. not to fill in a model (see for instance the function
@@ -231,6 +230,11 @@ private:
 #endif
 
 
+// Check if qstr is understood as rich text (Qt HTML) and if so, produce a
+// rendering in plain text.
+QString qtHtmlToPlainText(QString const & qstr);
+
+
 } // namespace lyx
 
 #endif // QTHELPERS_H