mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* QToc.C
(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:
parent
ba7ba1b813
commit
ce1170d887
@ -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()));
|
||||
}
|
||||
|
@ -168,7 +168,7 @@
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Update</string>
|
||||
<string>U&pdate</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget>
|
||||
@ -179,7 +179,7 @@
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Up</string>
|
||||
<string>&Up</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget>
|
||||
@ -190,7 +190,7 @@
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Dn</string>
|
||||
<string>&Down</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget>
|
||||
@ -201,7 +201,7 @@
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>In</string>
|
||||
<string>&In</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget>
|
||||
@ -212,7 +212,7 @@
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Out</string>
|
||||
<string>&Out</string>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer>
|
||||
|
Loading…
Reference in New Issue
Block a user