Next camel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29810 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-05-23 09:40:44 +00:00
parent db0d8a1131
commit 079ef62651
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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