forked from qt-creator/qt-creator
CppEditor: small fixes
It's better to initialize m_isSortingAllowed by true in both constructors (patch to commit where m_isSortingAllowed appears) Change-Id: I3d04d4dcd5afdd45a7bc7e05b2de6799d3f5c82d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
cd581ecd0b
commit
6d65de24b6
@@ -1111,7 +1111,7 @@ void BaseTextEditorWidget::moveLineUpDown(bool up)
|
||||
|
||||
bool hasSelection = cursor.hasSelection();
|
||||
|
||||
if (cursor.hasSelection()) {
|
||||
if (hasSelection) {
|
||||
move.setPosition(cursor.selectionStart());
|
||||
move.movePosition(QTextCursor::StartOfBlock);
|
||||
move.setPosition(cursor.selectionEnd(), QTextCursor::KeepAnchor);
|
||||
|
@@ -118,7 +118,7 @@ struct ContentLessThan
|
||||
} // Anonymous
|
||||
|
||||
BasicProposalItemListModel::BasicProposalItemListModel()
|
||||
: m_isSortingAllowed(false)
|
||||
: m_isSortingAllowed(true)
|
||||
{}
|
||||
|
||||
BasicProposalItemListModel::BasicProposalItemListModel(const QList<BasicProposalItem *> &items)
|
||||
|
Reference in New Issue
Block a user