mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Next camel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29810 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
db0d8a1131
commit
079ef62651
@ -208,16 +208,16 @@ void GuiCommandBuffer::showList(vector<string> const & list,
|
|||||||
listBox->move(pos.x(), y);
|
listBox->move(pos.x(), y);
|
||||||
|
|
||||||
connect(listBox, SIGNAL(itemClicked(QListWidgetItem *)),
|
connect(listBox, SIGNAL(itemClicked(QListWidgetItem *)),
|
||||||
this, SLOT(item_selected(QListWidgetItem *)));
|
this, SLOT(itemSelected(QListWidgetItem *)));
|
||||||
connect(listBox, SIGNAL(itemActivated(QListWidgetItem *)),
|
connect(listBox, SIGNAL(itemActivated(QListWidgetItem *)),
|
||||||
this, SLOT(item_selected(QListWidgetItem *)));
|
this, SLOT(itemSelected(QListWidgetItem *)));
|
||||||
|
|
||||||
listBox->show();
|
listBox->show();
|
||||||
listBox->setFocus();
|
listBox->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GuiCommandBuffer::item_selected(QListWidgetItem * item)
|
void GuiCommandBuffer::itemSelected(QListWidgetItem * item)
|
||||||
{
|
{
|
||||||
QWidget const * widget = static_cast<QWidget const *>(sender());
|
QWidget const * widget = static_cast<QWidget const *>(sender());
|
||||||
const_cast<QWidget *>(widget)->hide();
|
const_cast<QWidget *>(widget)->hide();
|
||||||
|
@ -46,7 +46,7 @@ public Q_SLOTS:
|
|||||||
/// show history
|
/// show history
|
||||||
void listHistoryUp();
|
void listHistoryUp();
|
||||||
/// called when an item in a list is selected
|
/// called when an item in a list is selected
|
||||||
void item_selected(QListWidgetItem *);
|
void itemSelected(QListWidgetItem *);
|
||||||
/// up
|
/// up
|
||||||
void up();
|
void up();
|
||||||
/// down
|
/// down
|
||||||
|
Loading…
Reference in New Issue
Block a user