Commit c56aca51 authored by Laurent Montel's avatar Laurent Montel 😁

Fix signal/slot

svn path=/trunk/KDE/kdemultimedia/juk/; revision=570334
parent e94af3cf
......@@ -61,12 +61,17 @@ ExampleOptionsDialog::ExampleOptionsDialog(QWidget *parent) :
connect(m_options, SIGNAL(fileChanged()), SLOT(fileModeSelected()));
connect(m_options, SIGNAL(dataChanged()), SIGNAL(dataChanged()));
connect(m_options->m_exampleFile, SIGNAL(urlSelected(const QString &)),
this, SIGNAL(fileChanged(const QString &)));
connect(m_options->m_exampleFile, SIGNAL(returnPressed(const QString &)),
connect(m_options->m_exampleFile, SIGNAL(urlSelected(const KUrl &)),
this, SLOT(fileChanged(const KUrl &)));
connect(m_options->m_exampleFile, SIGNAL(returnPressed(const KUrl &)),
this, SIGNAL(fileChanged(const QString &)));
}
void ExampleOptionsDialog::fileChanged(const KUrl &url)
{
emit fileChanged(url.path());
}
void ExampleOptionsDialog::hideEvent(QHideEvent *)
{
emit signalHidden();
......
......@@ -50,7 +50,7 @@ public:
protected slots:
void fileModeSelected();
void fileChanged(const KUrl &);
signals:
void fileChanged(const QString &);
void dataChanged();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment