diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-03-13 19:26:14 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-03-14 09:43:27 +0000 |
commit | b427ac706b0d244597ccb038789f30bd56e7be85 (patch) | |
tree | 7157c7ceded7edc6b16e0c1a8e2e6d71f5f71131 /src/plugins/coreplugin/find/findtoolbar.cpp | |
parent | 3044d0f7cb4f44d3a34cba94a63f38579394198e (diff) | |
download | qt-creator-b427ac706b0d244597ccb038789f30bd56e7be85.tar.gz |
Core: Initialize all members in FindToolbar
Use C++11 member initialization.
Change-Id: Ib4db2fc9354658a0a4969c18f2857678cb49bdae
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/find/findtoolbar.cpp')
-rw-r--r-- | src/plugins/coreplugin/find/findtoolbar.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/coreplugin/find/findtoolbar.cpp b/src/plugins/coreplugin/find/findtoolbar.cpp index 33e87ebe4a..5d5cda35fe 100644 --- a/src/plugins/coreplugin/find/findtoolbar.cpp +++ b/src/plugins/coreplugin/find/findtoolbar.cpp @@ -68,15 +68,8 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen m_currentDocumentFind(currentDocumentFind), m_findCompleter(new QCompleter(this)), m_replaceCompleter(new QCompleter(this)), - m_enterFindStringAction(0), - m_findNextAction(0), - m_findPreviousAction(0), - m_replaceAction(0), - m_replaceNextAction(0), - m_replacePreviousAction(0), - m_findIncrementalTimer(this), m_findStepTimer(this), - m_useFakeVim(false), - m_eventFiltersInstalled(false) + m_findIncrementalTimer(this), + m_findStepTimer(this) { //setup ui m_ui.setupUi(this); @@ -393,7 +386,7 @@ void FindToolBar::updateGlobalActions() m_findInDocumentAction->setEnabled(enabled || (toolBarHasFocus() && isEnabled())); m_findNextSelectedAction->setEnabled(enabled); m_findPreviousSelectedAction->setEnabled(enabled); - if (QApplication::clipboard()->supportsFindBuffer()) + if (m_enterFindStringAction) m_enterFindStringAction->setEnabled(enabled); m_findNextAction->setEnabled(enabled); m_findPreviousAction->setEnabled(enabled); |