summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-01-02 12:21:41 (GMT)
committerSwift Review <review@swift.im>2014-01-15 11:05:41 (GMT)
commit09108f5ac3c1a6567730b5bbd0c847f8422ff4a2 (patch)
treeb7054e421da9dd8227b3bbe11b2ea20575b760df /Swift/QtUI/QtHighlightRulesItemModel.cpp
parent9cf1fe4ec5d3729ceb53385aeb245a4a688823e0 (diff)
downloadswift-09108f5ac3c1a6567730b5bbd0c847f8422ff4a2.zip
swift-09108f5ac3c1a6567730b5bbd0c847f8422ff4a2.tar.bz2
Improved plaintext chat view for screen-reader support.
Change-Id: Ib7c10350b56683db95f4c6be49f79f8a9d9e80ec
Diffstat (limited to 'Swift/QtUI/QtHighlightRulesItemModel.cpp')
-rw-r--r--Swift/QtUI/QtHighlightRulesItemModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtHighlightRulesItemModel.cpp b/Swift/QtUI/QtHighlightRulesItemModel.cpp
index 4efa712..fcbaddc 100644
--- a/Swift/QtUI/QtHighlightRulesItemModel.cpp
+++ b/Swift/QtUI/QtHighlightRulesItemModel.cpp
@@ -206,7 +206,7 @@ bool QtHighlightRulesItemModel::setData(const QModelIndex &index, const QVariant
highlightManager_->setRule(index.row(), r);
emit dataChanged(index, index);
foreach (int column, changedColumns) {
- QModelIndex i = createIndex(index.row(), column, (void*) 0);
+ QModelIndex i = createIndex(index.row(), column, static_cast<void*>(0));
emit dataChanged(i, i);
}
}
@@ -227,7 +227,7 @@ int QtHighlightRulesItemModel::rowCount(const QModelIndex& /* parent */) const
QModelIndex QtHighlightRulesItemModel::index(int row, int column, const QModelIndex& /* parent */) const
{
- return createIndex(row, column, (void*) 0);
+ return createIndex(row, column, static_cast<void*>(0));
}
bool QtHighlightRulesItemModel::insertRows(int row, int count, const QModelIndex& /* parent */)