(QToc::updateToc): Better scroll behaviour

	* ui/QTocDialogBase.ui: Keyboard shortcuts, Dn -> Down



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13534 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2006-03-30 12:34:49 +00:00
parent ba7ba1b813
commit ce1170d887
2 changed files with 7 additions and 7 deletions

View File

@ -173,9 +173,9 @@ void QToc::updateToc(int newdepth)
dialog_->tocLV->setUpdatesEnabled(true);
dialog_->tocLV->update();
if (!multiple) {
dialog_->tocLV->ensureItemVisible(selected_item);
dialog_->tocLV->scrollBy(0, selected_item->itemPos()
- dialog_->tocLV->height() / 2);
dialog_->tocLV->setSelected(selected_item, true);
dialog_->tocLV->scrollBy(0, dialog_->tocLV->height() / 2);
}
setTitle(fromqstr(dialog_->typeCO->currentText()));
}

View File

@ -168,7 +168,7 @@
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Update</string>
<string>U&amp;pdate</string>
</property>
</widget>
<widget>
@ -179,7 +179,7 @@
</property>
<property stdset="1">
<name>text</name>
<string>Up</string>
<string>&amp;Up</string>
</property>
</widget>
<widget>
@ -190,7 +190,7 @@
</property>
<property stdset="1">
<name>text</name>
<string>Dn</string>
<string>&amp;Down</string>
</property>
</widget>
<widget>
@ -201,7 +201,7 @@
</property>
<property stdset="1">
<name>text</name>
<string>In</string>
<string>&amp;In</string>
</property>
</widget>
<widget>
@ -212,7 +212,7 @@
</property>
<property stdset="1">
<name>text</name>
<string>Out</string>
<string>&amp;Out</string>
</property>
</widget>
<spacer>