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) {
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(")");
}
}
-void QDelimiterDialog::ldelim_clicked(string str)
+void QDelimiterDialog::ldelim_clicked(string const & str)
{
left_ = str;
}
-void QDelimiterDialog::rdelim_clicked(string str)
+void QDelimiterDialog::rdelim_clicked(string const & str)
{
right_ = str;
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);