Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
helpviewer.cpp File Reference

(6a24388e434a313b3542c571fe22a9a11ff0ffd4)

#include "helpviewer.h"
#include "helpviewerimpl.h"
#include "helpenginewrapper.h"
#include "tracer.h"
#include <QtCore/QFileInfo>
#include <QtCore/QStringBuilder>
#include <QtCore/QTemporaryFile>
#include <QtGui/QDesktopServices>
#include <QtGui/QGuiApplication>
#include <QtGui/QStyleHints>
#include <QtGui/QWheelEvent>
#include <QtWidgets/QScrollBar>
#include <QtWidgets/QVBoxLayout>
#include <QtHelp/QHelpEngineCore>
#include <qlitehtmlwidget.h>
Include dependency graph for helpviewer.cpp:

Go to the source code of this file.

Classes

struct  ExtensionMap
class  HelpViewerPrivate
struct  HelpViewerPrivate::HistoryItem

Functions

static void setLight (QWidget *widget)
static bool isDarkTheme ()
static void setPaletteFromApp (QWidget *widget)
static QByteArray getData (const QUrl &url, QWidget *widget)
static QTextDocument::FindFlags textDocumentFlagsForFindFlags (HelpViewer::FindFlags flags)

Variables

const int kMaxHistoryItems = 20
const struct ExtensionMap extensionMap []

Function Documentation

◆ getData()

QByteArray getData ( const QUrl & url,
QWidget * widget )
static

Definition at line 107 of file helpviewer.cpp.

References HelpEngineWrapper::instance(), and isDarkTheme().

Here is the call graph for this function:

◆ isDarkTheme()

bool isDarkTheme ( )
static

Definition at line 85 of file helpviewer.cpp.

Referenced by getData().

Here is the caller graph for this function:

◆ setLight()

void setLight ( QWidget * widget)
static

Definition at line 72 of file helpviewer.cpp.

◆ setPaletteFromApp()

void setPaletteFromApp ( QWidget * widget)
static

Definition at line 94 of file helpviewer.cpp.

◆ textDocumentFlagsForFindFlags()

QTextDocument::FindFlags textDocumentFlagsForFindFlags ( HelpViewer::FindFlags flags)
static

Definition at line 343 of file helpviewer.cpp.

Variable Documentation

◆ extensionMap

const struct ExtensionMap extensionMap

◆ kMaxHistoryItems

const int kMaxHistoryItems = 20

Definition at line 33 of file helpviewer.cpp.