When using the math panel, the following run time error appears:
--------------------------------------------------------------------------
QObject::connect: No such signal IconPalette::button_clicked(string const&)
QObject::connect: (sender name: 'unnamed')
QObject::connect: (receiver name: 'QMathDialogBase')
--------------------------------------------------------------------------
And inserting symbols and delimiters from the panel just does nothing.
Following indications found in lyx-devel/src/frontends/qt2/README, I've
changed "something const &" to "const something &" while using SLOT and
SIGNAL on two different files, and now works ok for me.
Trivial patch attached. Btw, is it my particular setup that gives these
problems, or is it general?
Bye, Alfredo
Index: src/frontends/qt2/QDelimiterDialog.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QDelimiterDialog.C,v
retrieving revision 1.7
diff -u -r1.7 QDelimiterDialog.C
--- src/frontends/qt2/QDelimiterDialog.C 2002/11/27 10:30:23 1.7
+++ src/frontends/qt2/QDelimiterDialog.C 2002/12/07 16:18:19
@@ -90,8 +90,8 @@
leftIP->add(QPixmap(empty_xpm.c_str()), "empty", "empty");
rightIP->add(QPixmap(empty_xpm.c_str()), "empty", "empty");
- connect(leftIP, SIGNAL(button_clicked(string const &)), this, SLOT(ldelim_clicked(string const &)));
- connect(rightIP, SIGNAL(button_clicked(string const &)), this, SLOT(rdelim_clicked(string const &)));
+ connect(leftIP, SIGNAL(button_clicked(const string &)), this, SLOT(ldelim_clicked(const string &)));
+ connect(rightIP, SIGNAL(button_clicked(const string &)), this, SLOT(rdelim_clicked(const string &)));
ldelim_clicked("(");
rdelim_clicked(")");
}
Index: src/frontends/qt2/QMathDialog.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QMathDialog.C,v
retrieving revision 1.22
diff -u -r1.22 QMathDialog.C
--- src/frontends/qt2/QMathDialog.C 2002/12/01 22:59:19 1.22
+++ src/frontends/qt2/QMathDialog.C 2002/12/07 16:18:19
@@ -183,7 +183,7 @@
for (int i = 0; *entries[i]; ++i) {
p->add(QPixmap(find_xpm(entries[i]).c_str()), entries[i], string("\\") + entries[i]);
}
- connect(p, SIGNAL(button_clicked(string const &)), this, SLOT(symbol_clicked(string const &)));
+ connect(p, SIGNAL(button_clicked(const string &)), this, SLOT(symbol_clicked(const string &)));
return p;
}