Commit 80bc682d authored by hjk's avatar hjk
Browse files

fakevim: more selection refactoring

parent a9891347
......@@ -132,13 +132,6 @@ FakeVimSettings *theFakeVimSettings()
item->setValue(false);
instance->insertItem(ConfigReadVimRc, item);
item = new SavedAction(instance);
item->setValue(true);
item->setDefaultValue(true);
item->setSettingsKey(group, _("ExportSelection"));
item->setCheckable(true);
instance->insertItem(ConfigExportSelection, item);
item = new SavedAction(instance);
item->setValue(true);
item->setDefaultValue(true);
......
......@@ -43,7 +43,6 @@ enum FakeVimSettingsCode
{
ConfigUseFakeVim,
ConfigReadVimRc,
ConfigExportSelection,
ConfigStartOfLine,
ConfigHlSearch,
......
This diff is collapsed.
......@@ -73,16 +73,6 @@
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="checkBoxExportSelection">
<property name="text">
<string>Export selected text automatically</string>
</property>
<property name="toolTip">
<string>This might slow down editing</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="checkBoxSmartTab">
<property name="text">
......
......@@ -169,8 +169,6 @@ QWidget *FakeVimOptionPage::createPage(QWidget *parent)
m_ui.spinBoxShiftWidth);
m_group.insert(theFakeVimSetting(ConfigShowMarks),
m_ui.checkBoxShowMarks);
m_group.insert(theFakeVimSetting(ConfigExportSelection),
m_ui.checkBoxExportSelection);
m_group.insert(theFakeVimSetting(ConfigSmartTab),
m_ui.checkBoxSmartTab);
......
......@@ -5792,8 +5792,8 @@ void BaseTextEditor::setBlockSelection(bool on)
d->m_inBlockSelectionMode = on;
if (on)
d->m_blockSelection.fromSelection(tabSettings(), textCursor());
viewport()->update();
}
viewport()->update();
}
bool BaseTextEditor::hasBlockSelection() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment