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
openpagesswitcher.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 OPENPAGESSWITCHER_H
5#define OPENPAGESSWITCHER_H
6
7#include <QtWidgets/QFrame>
8
10
11class OpenPagesModel;
12class OpenPagesWidget;
13class QModelIndex;
14
16{
18
19public:
22
23 void gotoNextPage();
24 void gotoPreviousPage();
25
26 void selectAndHide();
27 void selectCurrentPage();
28
29 void setVisible(bool visible) override;
30 void focusInEvent(QFocusEvent *event) override;
31 bool eventFilter(QObject *object, QEvent *event) override;
32
35 void setCurrentPage(const QModelIndex &index);
36
37private:
38 void selectPageUpDown(int summand);
39
40private:
41 OpenPagesModel *m_openPagesModel;
42 OpenPagesWidget *m_openPagesWidget;
43};
44
45QT_END_NAMESPACE
46
47#endif // OPENPAGESSWITCHER_H
int currentIndex() const
static CentralWidget * instance()
static HelpEngineWrapper & instance()
void reload()
QUrl source() const
QAbstractItemView * openPagesWidget() const
void setCurrentPage(HelpViewer *page)
bool pagesOpenForNamespace(const QString &nameSpace) const
HelpViewer * createNewPageFromSearch(const QUrl &url)
void closePage(HelpViewer *page)
void reloadPages(const QString &nameSpace)
HelpViewer * createBlankPage()
static OpenPagesManager * instance()
void setCurrentPage(int index)
void closePages(const QString &nameSpace)
HelpViewer * addPage(const QUrl &url, qreal zoom=0)
void removePage(int index)
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of columns for the children of the given parent.
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of rows under the given parent.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Returns the data stored under the given role for the item referred to by the index.
HelpViewer * pageAt(int index) const
void focusInEvent(QFocusEvent *event) override
This event handler can be reimplemented in a subclass to receive keyboard focus events (focus receive...
void setVisible(bool visible) override
bool eventFilter(QObject *object, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void setCurrentPage(const QModelIndex &index)
void closePagesExcept(const QModelIndex &index)
\inmodule QtCore
@ ShowLastPages
@ ShowHomePage
Combined button and popup list for selecting options.
#define TRACE_OBJ
Definition tracer.h:34