Commit 0768ef73 authored by Eike Ziller's avatar Eike Ziller
Browse files

HelpWidget: Use member initialization



Change-Id: I734fa9bb1bd5a0518a6051b9001f61f722c90691
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent b88de51c
......@@ -69,21 +69,7 @@ namespace Internal {
HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget *parent) :
QWidget(parent),
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_style(style)
{
m_viewerStack = new QStackedWidget;
......
......@@ -111,34 +111,34 @@ private:
void addSideBar();
QString sideBarSettingsKey() const;
Core::IContext *m_context;
Core::IContext *m_context = nullptr;
WidgetStyle m_style;
QAction *m_toggleSideBarAction;
QAction *m_switchToHelp;
QAction *m_homeAction;
QMenu *m_backMenu;
QMenu *m_forwardMenu;
QAction *m_backAction;
QAction *m_forwardAction;
QAction *m_addBookmarkAction;
QComboBox *m_filterComboBox;
QAction *m_closeAction;
QAction *m_scaleUp;
QAction *m_scaleDown;
QAction *m_resetScale;
QAction *m_printAction;
QAction *m_copy;
QStackedWidget *m_viewerStack;
QPrinter *m_printer;
Core::MiniSplitter *m_sideBarSplitter;
Core::SideBar *m_sideBar;
QAction *m_contentsAction;
QAction *m_indexAction;
QAction *m_bookmarkAction;
QAction *m_searchAction;
QAction *m_openPagesAction;
QAction *m_toggleSideBarAction = nullptr;
QAction *m_switchToHelp = nullptr;
QAction *m_homeAction = nullptr;
QMenu *m_backMenu = nullptr;
QMenu *m_forwardMenu = nullptr;
QAction *m_backAction = nullptr;
QAction *m_forwardAction = nullptr;
QAction *m_addBookmarkAction = nullptr;
QComboBox *m_filterComboBox = nullptr;
QAction *m_closeAction = nullptr;
QAction *m_scaleUp = nullptr;
QAction *m_scaleDown = nullptr;
QAction *m_resetScale = nullptr;
QAction *m_printAction = nullptr;
QAction *m_copy = nullptr;
QStackedWidget *m_viewerStack = nullptr;
QPrinter *m_printer = nullptr;
Core::MiniSplitter *m_sideBarSplitter = nullptr;
Core::SideBar *m_sideBar = nullptr;
QAction *m_contentsAction = nullptr;
QAction *m_indexAction = nullptr;
QAction *m_bookmarkAction = nullptr;
QAction *m_searchAction = nullptr;
QAction *m_openPagesAction = nullptr;
QStringList m_searchTerms;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment