本文整理汇总了C++中ktexteditor::MarkInterface::removeMark方法的典型用法代码示例。如果您正苦于以下问题:C++ MarkInterface::removeMark方法的具体用法?C++ MarkInterface::removeMark怎么用?C++ MarkInterface::removeMark使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ktexteditor::MarkInterface
的用法示例。
在下文中一共展示了MarkInterface::removeMark方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unmarkExecutionPoint
void EditorTabWidget::unmarkExecutionPoint(const QString& filePath, int line)
{
KTextEditor::MarkInterface* imark = documentMarkIf(filePath);
if(!imark) return;
#if (KDE_VERSION_MAJOR >= 3) && (KDE_VERSION_MINOR >= 3)
imark->removeMark(line-1, KTextEditor::MarkInterface::Execution);
#else
imark->removeMark(line-1, KTextEditor::MarkInterface::markType05);
#endif
}
示例2: unmarkActiveBreakpoint
void EditorTabWidget::unmarkActiveBreakpoint(const QString& filePath, int line)
{
KTextEditor::MarkInterface* imark = documentMarkIf(filePath);
m_markGuard = true;
if(!imark) return;
#if (KDE_VERSION_MAJOR >= 3) && (KDE_VERSION_MINOR >= 3)
imark->removeMark(line-1, KTextEditor::MarkInterface::BreakpointActive);
#else
imark->removeMark(line-1, KTextEditor::MarkInterface::markType02);
#endif
m_markGuard = false;
}
示例3: setMark
// Set/clear a mark in a document
void DebuggerManager::setMark(const QString& filename, long line, bool set, int mark)
{
if((!filename.isEmpty()) && ViewManager::ref()->isOpened(filename))
{
::Document* qdoc = ViewManager::ref()->isOpened(filename)->document();
if(qdoc)
{
disconnectBreakpointSignals(qdoc);
KTextEditor::Document* doc = qdoc->doc();
if(doc)
{
KTextEditor::MarkInterface *markIf = dynamic_cast<KTextEditor::MarkInterface*>(doc);
if(markIf)
{
if(set)
markIf->addMark(line, mark);
else
markIf->removeMark(line, mark);
}
}
connectBreakpointSignals(qdoc);
}
}
}
示例4: clearMarks
void QXsldbgDoc::clearMarks(bool allMarkTypes)
{
if (locked)
return;
KTextEditor::MarkInterface *markIf = KTextEditor::markInterface(kDoc);
if (markIf){
if (!allMarkTypes){
QPtrList<KTextEditor::Mark> marks = markIf->marks();
while ( marks.current()) {
markIf->removeMark(marks.current()->line, KTextEditor::MarkInterface::Execution);
markIf->removeMark(marks.current()->line, KTextEditor::MarkInterface::BreakpointReached);
marks.next();
}
}else {
markIf->clearMarks();
}
}
}
示例5: enableBreakPoint
void QXsldbgDoc::enableBreakPoint(uint lineNumber, bool state)
{
if (locked)
return;
KTextEditor::MarkInterface *markIf = KTextEditor::markInterface(kDoc);
if (markIf){
if (state){
markIf->setMark(lineNumber, KTextEditor::MarkInterface::BreakpointActive);
}else{
markIf->removeMark(lineNumber, KTextEditor::MarkInterface::BreakpointDisabled);
}
}
}
示例6: unmarkPreExecutionPoint
void EditorTabWidget::unmarkPreExecutionPoint(const QString& filePath, int line)
{
KTextEditor::MarkInterface* imark = documentMarkIf(filePath);
if(!imark) return;
imark->removeMark(line-1, KTextEditor::MarkInterface::markType08);
}