pqWidgetUtilities.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqWidgetUtilities_h
6 #define pqWidgetUtilities_h
7 
8 #include "pqWidgetsModule.h"
9 
10 #include <QString>
11 #include <QWidget>
12 
17 class PQWIDGETS_EXPORT pqWidgetUtilities
18 {
19 public:
23  static QString formatTooltip(const QString& rawText);
24 
31  static QString formatMarkdownTooltip(const QString& markdown);
32 
34 
37  static std::string rstToHtml(const char* rstStr);
38  static QString rstToHtml(const QString& rstStr);
40 
41  static void formatChildTooltips(QWidget* parentObject);
42 };
43 
44 #endif // pqWidgetUtilities_h
Set of utility functions designed to create wider tooltips, since Qt does not allow us to set this di...