TextEditor: adjust ITextMark getters to coding style

bool getters should have an 'is' prefix.

Change-Id: I6d8b0a680e7985fa454b5e7df1b85ace6da264e6
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2012-10-09 14:02:52 +02:00
parent 587adf5084
commit 2e361d20ab
5 changed files with 13 additions and 13 deletions

View File

@@ -3796,7 +3796,7 @@ void BaseTextEditorWidget::extraAreaPaintEvent(QPaintEvent *e)
int count = 0;
it = marks.constEnd() - 1;
while (it != marks.constBegin()) {
if ((*it)->visible())
if ((*it)->isVisible())
++count;
if (count == 3)
break;
@@ -3806,7 +3806,7 @@ void BaseTextEditorWidget::extraAreaPaintEvent(QPaintEvent *e)
TextMarks::const_iterator end = marks.constEnd();
for ( ; it != end; ++it) {
ITextMark *mark = *it;
if (!mark->visible())
if (!mark->isVisible())
continue;
const int height = fmLineSpacing - 1;
const int width = int(.5 + height * mark->widthFactor());
@@ -4454,7 +4454,7 @@ void BaseTextEditorWidget::extraAreaMouseEvent(QMouseEvent *e)
if (cursor.blockNumber() == n) {
if (TextBlockUserData *data = static_cast<TextBlockUserData *>(cursor.block().userData())) {
foreach (ITextMark *mark, data->marks()) {
if (mark->clickable()) {
if (mark->isClickable()) {
mark->clicked();
return;
}