forked from qt-creator/qt-creator
HelpWidget: Use member initialization
Change-Id: I734fa9bb1bd5a0518a6051b9001f61f722c90691 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -69,21 +69,7 @@ namespace Internal {
|
|||||||
|
|
||||||
HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget *parent) :
|
HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
m_style(style),
|
m_style(style)
|
||||||
m_toggleSideBarAction(0),
|
|
||||||
m_switchToHelp(0),
|
|
||||||
m_filterComboBox(0),
|
|
||||||
m_closeAction(0),
|
|
||||||
m_scaleUp(0),
|
|
||||||
m_scaleDown(0),
|
|
||||||
m_resetScale(0),
|
|
||||||
m_printer(0),
|
|
||||||
m_sideBar(0),
|
|
||||||
m_contentsAction(0),
|
|
||||||
m_indexAction(0),
|
|
||||||
m_bookmarkAction(0),
|
|
||||||
m_searchAction(0),
|
|
||||||
m_openPagesAction(0)
|
|
||||||
{
|
{
|
||||||
m_viewerStack = new QStackedWidget;
|
m_viewerStack = new QStackedWidget;
|
||||||
|
|
||||||
|
|||||||
@@ -111,34 +111,34 @@ private:
|
|||||||
void addSideBar();
|
void addSideBar();
|
||||||
QString sideBarSettingsKey() const;
|
QString sideBarSettingsKey() const;
|
||||||
|
|
||||||
Core::IContext *m_context;
|
Core::IContext *m_context = nullptr;
|
||||||
WidgetStyle m_style;
|
WidgetStyle m_style;
|
||||||
QAction *m_toggleSideBarAction;
|
QAction *m_toggleSideBarAction = nullptr;
|
||||||
QAction *m_switchToHelp;
|
QAction *m_switchToHelp = nullptr;
|
||||||
QAction *m_homeAction;
|
QAction *m_homeAction = nullptr;
|
||||||
QMenu *m_backMenu;
|
QMenu *m_backMenu = nullptr;
|
||||||
QMenu *m_forwardMenu;
|
QMenu *m_forwardMenu = nullptr;
|
||||||
QAction *m_backAction;
|
QAction *m_backAction = nullptr;
|
||||||
QAction *m_forwardAction;
|
QAction *m_forwardAction = nullptr;
|
||||||
QAction *m_addBookmarkAction;
|
QAction *m_addBookmarkAction = nullptr;
|
||||||
QComboBox *m_filterComboBox;
|
QComboBox *m_filterComboBox = nullptr;
|
||||||
QAction *m_closeAction;
|
QAction *m_closeAction = nullptr;
|
||||||
QAction *m_scaleUp;
|
QAction *m_scaleUp = nullptr;
|
||||||
QAction *m_scaleDown;
|
QAction *m_scaleDown = nullptr;
|
||||||
QAction *m_resetScale;
|
QAction *m_resetScale = nullptr;
|
||||||
QAction *m_printAction;
|
QAction *m_printAction = nullptr;
|
||||||
QAction *m_copy;
|
QAction *m_copy = nullptr;
|
||||||
|
|
||||||
QStackedWidget *m_viewerStack;
|
QStackedWidget *m_viewerStack = nullptr;
|
||||||
QPrinter *m_printer;
|
QPrinter *m_printer = nullptr;
|
||||||
|
|
||||||
Core::MiniSplitter *m_sideBarSplitter;
|
Core::MiniSplitter *m_sideBarSplitter = nullptr;
|
||||||
Core::SideBar *m_sideBar;
|
Core::SideBar *m_sideBar = nullptr;
|
||||||
QAction *m_contentsAction;
|
QAction *m_contentsAction = nullptr;
|
||||||
QAction *m_indexAction;
|
QAction *m_indexAction = nullptr;
|
||||||
QAction *m_bookmarkAction;
|
QAction *m_bookmarkAction = nullptr;
|
||||||
QAction *m_searchAction;
|
QAction *m_searchAction = nullptr;
|
||||||
QAction *m_openPagesAction;
|
QAction *m_openPagesAction = nullptr;
|
||||||
|
|
||||||
QStringList m_searchTerms;
|
QStringList m_searchTerms;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user