forked from qt-creator/qt-creator
Merge branch '1.0.0'
This commit is contained in:
@@ -724,8 +724,6 @@ void CppModelManager::onDocumentUpdated(Document::Ptr doc)
|
|||||||
continue;
|
continue;
|
||||||
else if (lines.contains(m.line()))
|
else if (lines.contains(m.line()))
|
||||||
continue;
|
continue;
|
||||||
//else if (lines.size() == MAX_SELECTION_COUNT)
|
|
||||||
//break; // we're done.
|
|
||||||
|
|
||||||
lines.insert(m.line());
|
lines.insert(m.line());
|
||||||
|
|
||||||
|
|||||||
@@ -168,10 +168,6 @@ private:
|
|||||||
|
|
||||||
mutable QMutex mutex;
|
mutable QMutex mutex;
|
||||||
|
|
||||||
enum {
|
|
||||||
MAX_SELECTION_COUNT = 5
|
|
||||||
};
|
|
||||||
|
|
||||||
struct Editor {
|
struct Editor {
|
||||||
QPointer<TextEditor::BaseTextEditor> widget;
|
QPointer<TextEditor::BaseTextEditor> widget;
|
||||||
QList<QTextEdit::ExtraSelection> selections;
|
QList<QTextEdit::ExtraSelection> selections;
|
||||||
|
|||||||
@@ -91,10 +91,6 @@ void CppEditorSupport::updateDocument()
|
|||||||
const QList<QTextEdit::ExtraSelection> selections =
|
const QList<QTextEdit::ExtraSelection> selections =
|
||||||
edit->extraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection);
|
edit->extraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection);
|
||||||
|
|
||||||
if (! selections.isEmpty())
|
|
||||||
edit->setExtraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection,
|
|
||||||
QList<QTextEdit::ExtraSelection>());
|
|
||||||
|
|
||||||
_modelManager->stopEditorSelectionsUpdate();
|
_modelManager->stopEditorSelectionsUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -923,7 +923,7 @@ QVariant ProScopeFilter::data(const QModelIndex &index, int role) const
|
|||||||
{
|
{
|
||||||
bool checkable =
|
bool checkable =
|
||||||
m_checkable == ProScopeFilter::Blocks
|
m_checkable == ProScopeFilter::Blocks
|
||||||
|| m_checkable == ProScopeFilter::Variable && sourceVariable(index);
|
|| (m_checkable == ProScopeFilter::Variable && sourceVariable(index));
|
||||||
|
|
||||||
if (checkable && role == Qt::CheckStateRole) {
|
if (checkable && role == Qt::CheckStateRole) {
|
||||||
QModelIndex srcindex = mapToSource(index);
|
QModelIndex srcindex = mapToSource(index);
|
||||||
|
|||||||
Reference in New Issue
Block a user