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
aboutdialog.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef ABOUTDIALOG_H
5#define ABOUTDIALOG_H
6
7#include <QtWidgets/QTextBrowser>
8#include <QtWidgets/QDialog>
9#include <QtCore/QMap>
10
11#include <QtCore/QMap>
12
14
15class QLabel;
16class QPushButton;
17class QGridLayout;
18
20{
22
23public:
24 AboutLabel(QWidget *parent = nullptr);
25 void setText(const QString &text, const QByteArray &resources);
26 QSize minimumSizeHint() const override;
27
28private:
29 QVariant loadResource(int type, const QUrl &name) override;
30
31 void doSetSource(const QUrl &name, QTextDocument::ResourceType type) override;
32
33 QMap<QString, QByteArray> m_resourceMap;
34};
35
36class AboutDialog : public QDialog
37{
39
40public:
41 AboutDialog(QWidget *parent = nullptr);
42 void setText(const QString &text, const QByteArray &resources);
43 void setPixmap(const QPixmap &pixmap);
44 QString documentTitle() const;
45
46private:
47 void updateSize();
48
49 QLabel *m_pixmapLabel;
50 AboutLabel *m_aboutLabel;
51 QPushButton *m_closeButton;
52 QGridLayout *m_layout;
53};
54
55QT_END_NAMESPACE
56
57#endif
QString documentTitle() const
void setText(const QString &text, const QByteArray &resources)
void setPixmap(const QPixmap &pixmap)
QSize minimumSizeHint() const override
QVariant loadResource(int type, const QUrl &name) override
This function is called when the document is loaded and for each image in the document.
void doSetSource(const QUrl &name, QTextDocument::ResourceType type) override
Attempts to load the document at the given url with the specified type.
void setText(const QString &text, const QByteArray &resources)
void setBookmarksToolbar(QToolBar *toolBar)
static void destroy()
static CentralWidget * instance()
HelpViewer * currentHelpViewer() const
void updateUserInterface()
ShowState index() const
ShowState contents() const
ShowState bookmarks() const
bool enableRemoteControl() const
bool collectionFileGiven() const
ShowState search() const
void escapePressed()
void expandToDepth(int depth)
QAction * findAction() const
QAction * zoomInAction() const
QAction * nextAction() const
QAction * homeAction() const
QAction * backAction() const
QAction * printAction() const
QAction * zoomOutAction() const
QHelpFilterEngine * filterEngine() const
QHelpSearchEngine * searchEngine() const
static HelpEngineWrapper & instance()
bool addressBarEnabled() const
bool addressBarVisible() const
void setUseBrowserFont(bool useBrowserFont)
QHelpIndexModel * indexModel() const
bool filterFunctionalityEnabled() const
bool filterToolbarVisible() const
void setUseAppFont(bool useAppFont)
QHelpContentModel * contentModel() const
void escapePressed()
void closeEvent(QCloseEvent *event) override
[21]
void setIndexString(const QString &str)
~MainWindow() override
void syncContents()
void setBookmarksVisible(bool visible)
static void activateCurrentBrowser()
void activateCurrentCentralWidgetTab()
void expandTOC(int depth)
void setIndexVisible(bool visible)
void setSearchVisible(bool visible)
void currentFilterChanged(const QString &filter)
bool usesDefaultCollection() const
QAbstractItemView * openPagesWidget() const
HelpViewer * createNewPageFromSearch(const QUrl &url)
void pageAdded(int index)
HelpViewer * createBlankPage()
static OpenPagesManager * instance()
void updateApplicationFont()
void updateUserInterface()
void docsInstalled(bool newDocsInstalled)
QUrl link() const
Combined button and popup list for selecting options.
static const char * docs[]
static QStringList newQtDocumentation()
@ warnAboutMissingModules
#define TRACE_OBJ
Definition tracer.h:34