forked from qt-creator/qt-creator
Fixes spelling of temporaryEditor
This commit is contained in:
@@ -278,7 +278,7 @@ public:
|
|||||||
|
|
||||||
QToolBar *toolBar() { return m_toolBar; }
|
QToolBar *toolBar() { return m_toolBar; }
|
||||||
|
|
||||||
bool temporayEditor() const { return false; }
|
bool temporaryEditor() const { return false; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
|
|||||||
@@ -1010,7 +1010,7 @@ void EditorManager::addEditor(IEditor *editor, bool isDuplicate)
|
|||||||
m_d->m_editorModel->addEditor(editor, isDuplicate);
|
m_d->m_editorModel->addEditor(editor, isDuplicate);
|
||||||
if (!isDuplicate) {
|
if (!isDuplicate) {
|
||||||
m_d->m_core->fileManager()->addFile(editor->file());
|
m_d->m_core->fileManager()->addFile(editor->file());
|
||||||
if (!editor->temporayEditor()) {
|
if (!editor->temporaryEditor()) {
|
||||||
m_d->m_core->fileManager()->addToRecentFiles(editor->file()->fileName());
|
m_d->m_core->fileManager()->addToRecentFiles(editor->file()->fileName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1277,7 +1277,7 @@ bool EditorManager::saveFile(IEditor *editor)
|
|||||||
m_d->m_core->fileManager()->unblockFileChange(file);
|
m_d->m_core->fileManager()->unblockFileChange(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (success && !editor->temporayEditor())
|
if (success && !editor->temporaryEditor())
|
||||||
m_d->m_core->fileManager()->addToRecentFiles(editor->file()->fileName());
|
m_d->m_core->fileManager()->addToRecentFiles(editor->file()->fileName());
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
@@ -1372,7 +1372,7 @@ bool EditorManager::saveFileAs(IEditor *editor)
|
|||||||
m_d->m_core->fileManager()->unblockFileChange(editor->file());
|
m_d->m_core->fileManager()->unblockFileChange(editor->file());
|
||||||
editor->file()->checkPermissions();
|
editor->file()->checkPermissions();
|
||||||
|
|
||||||
if (success && !editor->temporayEditor())
|
if (success && !editor->temporaryEditor())
|
||||||
m_d->m_core->fileManager()->addToRecentFiles(editor->file()->fileName());
|
m_d->m_core->fileManager()->addToRecentFiles(editor->file()->fileName());
|
||||||
|
|
||||||
updateActions();
|
updateActions();
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public:
|
|||||||
virtual int currentLine() const { return 0; }
|
virtual int currentLine() const { return 0; }
|
||||||
virtual int currentColumn() const { return 0; }
|
virtual int currentColumn() const { return 0; }
|
||||||
|
|
||||||
virtual bool temporayEditor() const = 0;
|
virtual bool temporaryEditor() const = 0;
|
||||||
|
|
||||||
virtual QToolBar *toolBar() = 0;
|
virtual QToolBar *toolBar() = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public:
|
|||||||
Core::IEditor *duplicate(QWidget *parent);
|
Core::IEditor *duplicate(QWidget *parent);
|
||||||
const char *kind() const;
|
const char *kind() const;
|
||||||
|
|
||||||
bool temporayEditor() const { return false; }
|
bool temporaryEditor() const { return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QList<int> m_context;
|
QList<int> m_context;
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public:
|
|||||||
QToolBar *toolBar();
|
QToolBar *toolBar();
|
||||||
QByteArray saveState() const;
|
QByteArray saveState() const;
|
||||||
bool restoreState(const QByteArray &state);
|
bool restoreState(const QByteArray &state);
|
||||||
virtual bool temporayEditor() const { return false; }
|
virtual bool temporaryEditor() const { return false; }
|
||||||
|
|
||||||
// ContextInterface
|
// ContextInterface
|
||||||
virtual QList<int> context() const;
|
virtual QList<int> context() const;
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public:
|
|||||||
virtual bool duplicateSupported() const;
|
virtual bool duplicateSupported() const;
|
||||||
virtual Core::IEditor *duplicate(QWidget *parent);
|
virtual Core::IEditor *duplicate(QWidget *parent);
|
||||||
|
|
||||||
virtual bool temporayEditor() const { return false; }
|
virtual bool temporaryEditor() const { return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QList<int> m_context;
|
QList<int> m_context;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public:
|
|||||||
bool duplicateSupported() const { return true; }
|
bool duplicateSupported() const { return true; }
|
||||||
Core::IEditor *duplicate(QWidget *parent);
|
Core::IEditor *duplicate(QWidget *parent);
|
||||||
const char *kind() const;
|
const char *kind() const;
|
||||||
bool temporayEditor() const { return false; }
|
bool temporaryEditor() const { return false; }
|
||||||
private:
|
private:
|
||||||
QList<int> m_context;
|
QList<int> m_context;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public:
|
|||||||
Core::IEditor *duplicate(QWidget *parent);
|
Core::IEditor *duplicate(QWidget *parent);
|
||||||
const char *kind() const;
|
const char *kind() const;
|
||||||
|
|
||||||
bool temporayEditor() const { return false; }
|
bool temporaryEditor() const { return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QList<int> m_context;
|
QList<int> m_context;
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public:
|
|||||||
QWidget *widget();
|
QWidget *widget();
|
||||||
|
|
||||||
void setSuggestedFileName(const QString &fileName);
|
void setSuggestedFileName(const QString &fileName);
|
||||||
bool temporayEditor() const { return false; }
|
bool temporaryEditor() const { return false; }
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void dirtyChanged(bool);
|
void dirtyChanged(bool);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public:
|
|||||||
bool duplicateSupported() const { return true; }
|
bool duplicateSupported() const { return true; }
|
||||||
Core::IEditor *duplicate(QWidget *parent);
|
Core::IEditor *duplicate(QWidget *parent);
|
||||||
const char *kind() const;
|
const char *kind() const;
|
||||||
bool temporayEditor() const { return false; }
|
bool temporaryEditor() const { return false; }
|
||||||
private:
|
private:
|
||||||
QList<int> m_context;
|
QList<int> m_context;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public:
|
|||||||
Core::IEditor *duplicate(QWidget * /*parent*/) { return 0; }
|
Core::IEditor *duplicate(QWidget * /*parent*/) { return 0; }
|
||||||
const char *kind() const { return m_kind; }
|
const char *kind() const { return m_kind; }
|
||||||
|
|
||||||
bool temporayEditor() const { return true; }
|
bool temporaryEditor() const { return true; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const char *m_kind;
|
const char *m_kind;
|
||||||
@@ -106,7 +106,7 @@ public:
|
|||||||
virtual QToolBar *toolBar() { return m_toolBar; }
|
virtual QToolBar *toolBar() { return m_toolBar; }
|
||||||
QComboBox *diffFileBrowseComboBox() const { return m_diffFileBrowseComboBox; }
|
QComboBox *diffFileBrowseComboBox() const { return m_diffFileBrowseComboBox; }
|
||||||
|
|
||||||
bool temporayEditor() const { return true; }
|
bool temporaryEditor() const { return true; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QComboBox *m_diffFileBrowseComboBox;
|
QComboBox *m_diffFileBrowseComboBox;
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ public:
|
|||||||
// be restricted to them
|
// be restricted to them
|
||||||
static QStringList currentProjectFiles(bool nativeSeparators, QString *name = 0);
|
static QStringList currentProjectFiles(bool nativeSeparators, QString *name = 0);
|
||||||
|
|
||||||
bool temporayEditor() const { return true; }
|
bool temporaryEditor() const { return true; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void diffSelectedFiles(const QStringList &files);
|
void diffSelectedFiles(const QStringList &files);
|
||||||
|
|||||||
Reference in New Issue
Block a user