|
|
|
@ -32,13 +32,15 @@ AuthorizeDialog::AuthorizeDialog(const TQString &addr, const TQString &devName,
|
|
|
|
|
KGuiItem(i18n("Accept"), "accept"),
|
|
|
|
|
KGuiItem(i18n("Reject"), "reject"))
|
|
|
|
|
{
|
|
|
|
|
TQString action(i18n("wants to act as Input Device"));
|
|
|
|
|
TQString action;
|
|
|
|
|
|
|
|
|
|
if (!service.isEmpty())
|
|
|
|
|
action.append(" for " + service);
|
|
|
|
|
action = (service.isEmpty()
|
|
|
|
|
? i18n("<b>%1</b> (device address <b>%2</b>) wants to act as Input Device.")
|
|
|
|
|
: i18n("<b>%1</b> (device address <b>%2</b>) wants to act as Input Device for %3.")).
|
|
|
|
|
arg(devName).arg(addr).arg(service);
|
|
|
|
|
|
|
|
|
|
authDlg = new AuthDialog(this);
|
|
|
|
|
authDlg->messageLabel->setText(authDlg->messageLabel->text().arg(devName).arg(addr).arg(action));
|
|
|
|
|
authDlg->messageLabel->setText(authDlg->messageLabel->text().arg(action));
|
|
|
|
|
connect(this, SIGNAL(okClicked()), SLOT(close()));
|
|
|
|
|
|
|
|
|
|
setMainWidget(authDlg);
|
|
|
|
|