mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-24 17:58:45 +00:00
Renamed signal.
This commit is contained in:
parent
ddd4f9f82c
commit
e787ab9f75
4 changed files with 8 additions and 8 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue