TOC context menu (part 3)

* TocWidget: Deconstify cur in doDispatch because I need a non-const Cursor when dispatching to Insets.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29162 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-04-09 18:24:28 +00:00
parent f227016f3d
commit 49fb2980eb
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ void TocWidget::showContextMenu(const QPoint & pos)
} }
void TocWidget::doDispatch(Cursor const & cur, FuncRequest const & cmd) void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
{ {
switch(cmd.action) { switch(cmd.action) {

View File

@ -37,7 +37,7 @@ public:
/// Initialise GUI. /// Initialise GUI.
void init(QString const & str); void init(QString const & str);
void doDispatch(Cursor const & cur, FuncRequest const & fr); void doDispatch(Cursor & cur, FuncRequest const & fr);
public Q_SLOTS: public Q_SLOTS:
/// Update the display of the dialog whilst it is still visible. /// Update the display of the dialog whilst it is still visible.