Renamed signal.

--HG--
branch : dfighter-tools
This commit is contained in:
dfighter1985 2014-08-30 21:32:28 +02:00
parent 58b50e7d7e
commit 0d530f15f6
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)) 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; QString m_ldPath;
Q_SIGNALS: Q_SIGNALS:
void selectedForm(const QString); void fileSelected(const QString&);
private Q_SLOTS: private Q_SLOTS:
void fileSelected(QModelIndex index); void fileSelected(QModelIndex index);

View file

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

View file

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