forked from qt-creator/qt-creator
Locator: Cleanup and modernize Locator and filters
* Omit QLatin1{Char|String}
* Use member initialization
* Use range-based-for
(and fixed the cases with non-const Qt container)
* Sort includes to common style
Change-Id: Ibc33a732bb153862efd6d5febfac758229cb61d4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
André Hartmann
parent
ccc0bebcf4
commit
b2aa1b9845
@@ -24,12 +24,13 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "macrolocatorfilter.h"
|
||||
#include "macromanager.h"
|
||||
#include "macro.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include "macro.h"
|
||||
#include "macromanager.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <QPixmap>
|
||||
|
||||
@@ -37,11 +38,11 @@ using namespace Macros;
|
||||
using namespace Macros::Internal;
|
||||
|
||||
MacroLocatorFilter::MacroLocatorFilter():
|
||||
m_icon(QPixmap(QLatin1String(":/macros/images/macro.png")))
|
||||
m_icon(QPixmap(":/macros/images/macro.png"))
|
||||
{
|
||||
setId("Macros");
|
||||
setDisplayName(tr("Text Editing Macros"));
|
||||
setShortcutString(QLatin1String("rm"));
|
||||
setShortcutString("rm");
|
||||
}
|
||||
|
||||
MacroLocatorFilter::~MacroLocatorFilter()
|
||||
|
||||
Reference in New Issue
Block a user