forked from qt-creator/qt-creator
Optimize BaseTextMark
Instead of each BaseTextMark being a QObject and being connected to editorOpened, centralize that and distribute the signal to only the BaseTextMarks that need it. Change-Id: I3f2783c34a25d78aa335418236850436028bfdf3 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -47,9 +47,8 @@ using namespace Valgrind::Callgrind;
|
||||
|
||||
CallgrindTextMark::CallgrindTextMark(const QPersistentModelIndex &index,
|
||||
const QString &fileName, int lineNumber)
|
||||
: m_modelIndex(index)
|
||||
: TextEditor::BaseTextMark(fileName, lineNumber), m_modelIndex(index)
|
||||
{
|
||||
setLocation(fileName, lineNumber);
|
||||
setPriority(TextEditor::ITextMark::HighPriority);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,8 +47,6 @@ namespace Internal {
|
||||
|
||||
class CallgrindTextMark : public TextEditor::BaseTextMark
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/**
|
||||
* This creates a callgrind text mark for a specific Function
|
||||
|
||||
Reference in New Issue
Block a user