Renamed signal.

This commit is contained in:
dfighter1985 2014-08-30 21:32:28 +02:00
parent 8d99120409
commit b11474e6be
4 changed files with 8 additions and 8 deletions

View file

@ -74,7 +74,7 @@ void CGeorgesDirTreeDialog::fileSelected(QModelIndex index)
{
if (index.isValid() && !m_dirModel->isDir(index))
{
Q_EMIT selectedForm(m_dirModel->fileName(index));
Q_EMIT fileSelected(m_dirModel->fileName(index));
}
}

View file

@ -49,7 +49,7 @@ private:
QString m_ldPath;
Q_SIGNALS:
void selectedForm(const QString);
void fileSelected(const QString&);
private Q_SLOTS:
void fileSelected(QModelIndex index);

View file

@ -103,8 +103,8 @@ namespace GeorgesQt
connect(Core::ICore::instance(), SIGNAL(changeSettings()),
this, SLOT(settingsChanged()));
connect(m_georgesDirTreeDialog, SIGNAL(selectedForm(const QString)),
this, SLOT(loadFile(const QString)));
connect(m_georgesDirTreeDialog, SIGNAL(fileSelected(const QString&)),
this, SLOT(loadFile(const QString&)));
connect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)),
this, SLOT(focusChanged(QWidget*, QWidget*)));
}
@ -194,12 +194,12 @@ namespace GeorgesQt
}
}
void GeorgesEditorForm::loadFile(const QString fileName)
void GeorgesEditorForm::loadFile(const QString &fileName)
{
loadFile(fileName, false);
}
void GeorgesEditorForm::loadFile(const QString fileName, bool loadFromDfn)
void GeorgesEditorForm::loadFile(const QString &fileName, bool loadFromDfn)
{
QFileInfo info(fileName);

View file

@ -42,8 +42,8 @@ public:
public Q_SLOTS:
void open();
void loadFile(const QString fileName);
void loadFile(const QString fileName, bool loadFromDfn);
void loadFile(const QString &fileName);
void loadFile(const QString &fileName, bool loadFromDfn);
void newFile();
void save();
void settingsChanged();