Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
0c277257
Commit
0c277257
authored
Sep 04, 2015
by
Jarosław Staniek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings -= 6
parent
91016738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
plugins/textshape/TextDocumentStructureModel.cpp
plugins/textshape/TextDocumentStructureModel.cpp
+5
-5
No files found.
plugins/textshape/TextDocumentStructureModel.cpp
View file @
0c277257
...
...
@@ -76,7 +76,7 @@ int TextDocumentStructureModel::rowCount(const QModelIndex &index) const
return
1
;
}
Q_ASSERT
(
index
.
internalId
()
<
m_nodeDataTable
.
count
(
));
Q_ASSERT
(
index
.
internalId
()
<
uint
(
m_nodeDataTable
.
count
()
));
const
NodeData
&
nodeData
=
m_nodeDataTable
.
at
(
index
.
internalId
());
...
...
@@ -101,7 +101,7 @@ QVariant TextDocumentStructureModel::data(const QModelIndex &index, int role) co
return
QVariant
();
}
Q_ASSERT
(
index
.
internalId
()
<
m_nodeDataTable
.
count
(
));
Q_ASSERT
(
index
.
internalId
()
<
uint
(
m_nodeDataTable
.
count
()
));
const
NodeData
&
nodeData
=
m_nodeDataTable
.
at
(
index
.
internalId
());
...
...
@@ -127,7 +127,7 @@ QModelIndex TextDocumentStructureModel::parent(const QModelIndex &index) const
return
QModelIndex
();
}
Q_ASSERT
(
index
.
internalId
()
<
m_nodeDataTable
.
count
(
));
Q_ASSERT
(
index
.
internalId
()
<
uint
(
m_nodeDataTable
.
count
()
));
const
NodeData
&
nodeData
=
m_nodeDataTable
.
at
(
index
.
internalId
());
...
...
@@ -178,7 +178,7 @@ QModelIndex TextDocumentStructureModel::index(int row, int column, const QModelI
return
createIndex
(
row
,
column
,
static_cast
<
quintptr
>
(
0
));
}
Q_ASSERT
(
parentIndex
.
internalId
()
<
m_nodeDataTable
.
count
(
));
Q_ASSERT
(
parentIndex
.
internalId
()
<
uint
(
m_nodeDataTable
.
count
()
));
const
NodeData
&
nodeData
=
m_nodeDataTable
.
at
(
parentIndex
.
internalId
());
// can be only frame for now
...
...
@@ -219,7 +219,7 @@ bool TextDocumentStructureModel::hasChildren(const QModelIndex &parentIndex) con
return
true
;
}
Q_ASSERT
(
parentIndex
.
internalId
()
<
m_nodeDataTable
.
count
(
));
Q_ASSERT
(
parentIndex
.
internalId
()
<
uint
(
m_nodeDataTable
.
count
()
));
const
NodeData
&
nodeData
=
m_nodeDataTable
.
at
(
parentIndex
.
internalId
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment