fix connect() bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5675 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-20 15:21:07 +00:00
parent d6a21f8bd3
commit 8b817af6f6
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2002-11-20 John Levon <levon@movementarian.org>
* QDelimiterDialog.h:
* QDelimiterDialog.C: fix delimiter connect()
2002-11-20 John Levon <levon@movementarian.org>
* QDocument.C:

View File

@ -84,7 +84,7 @@ QDelimiterDialog::QDelimiterDialog(QMath * form)
leftIP->add(QPixmap(xpm_name.c_str()), delim[i], delim[i]);
}
leftIP->add(QPixmap(LibFileSearch("images/math/", "empty", "xpm").c_str()), "empty", "empty");
connect(leftIP, SIGNAL(button_clicked(string)), this, SLOT(ldelim_clicked(string)));
connect(leftIP, SIGNAL(button_clicked(string const &)), this, SLOT(ldelim_clicked(string const &)));
ldelim_clicked("(");
for (int i = 0; *delim[i]; ++i) {
@ -92,7 +92,7 @@ QDelimiterDialog::QDelimiterDialog(QMath * form)
rightIP->add(QPixmap(xpm_name.c_str()), delim[i], delim[i]);
}
rightIP->add(QPixmap(LibFileSearch("images/math/", "empty", "xpm").c_str()), "empty", "empty");
connect(rightIP, SIGNAL(button_clicked(string)), this, SLOT(rdelim_clicked(string)));
connect(rightIP, SIGNAL(button_clicked(string const &)), this, SLOT(rdelim_clicked(string const &)));
rdelim_clicked(")");
}
@ -113,7 +113,7 @@ void QDelimiterDialog::set_label(QLabel * label, string const & str)
}
void QDelimiterDialog::ldelim_clicked(string str)
void QDelimiterDialog::ldelim_clicked(string const & str)
{
left_ = str;
@ -125,7 +125,7 @@ void QDelimiterDialog::ldelim_clicked(string str)
}
void QDelimiterDialog::rdelim_clicked(string str)
void QDelimiterDialog::rdelim_clicked(string const & str)
{
right_ = str;

View File

@ -28,8 +28,8 @@ class QDelimiterDialog : public QDelimiterDialogBase {
public:
QDelimiterDialog(QMath * form);
public slots:
void ldelim_clicked(string str);
void rdelim_clicked(string str);
void ldelim_clicked(string const & str);
void rdelim_clicked(string const & str);
void insertClicked();
protected:
//needed ? virtual void closeEvent(QCloseEvent * e);