Commit 5646480f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Core: Use Qt5-style connects

The heavy lifting was done by clazy.

Change-Id: I2dde14919d917816d02117338205f8f861d8af0a
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 7a9cc349
......@@ -239,8 +239,8 @@ void ActionContainerPrivate::addAction(Command *command, Id groupId)
QAction *beforeAction = insertLocation(groupIt);
m_groups[groupIt-m_groups.constBegin()].items.append(command);
connect(command, SIGNAL(activeStateChanged()), this, SLOT(scheduleUpdate()));
connect(command, SIGNAL(destroyed()), this, SLOT(itemDestroyed()));
connect(command, &Command::activeStateChanged, this, &ActionContainerPrivate::scheduleUpdate);
connect(command, &QObject::destroyed, this, &ActionContainerPrivate::itemDestroyed);
insertAction(beforeAction, command->action());
scheduleUpdate();
}
......@@ -258,7 +258,7 @@ void ActionContainerPrivate::addMenu(ActionContainer *menu, Id groupId)
QAction *beforeAction = insertLocation(groupIt);
m_groups[groupIt-m_groups.constBegin()].items.append(menu);
connect(menu, SIGNAL(destroyed()), this, SLOT(itemDestroyed()));
connect(menu, &QObject::destroyed, this, &ActionContainerPrivate::itemDestroyed);
insertMenu(beforeAction, container->menu());
scheduleUpdate();
}
......@@ -276,7 +276,7 @@ void ActionContainerPrivate::addMenu(ActionContainer *before, ActionContainer *m
QAction *beforeAction = before->menu()->menuAction();
m_groups[groupIt-m_groups.constBegin()].items.append(menu);
connect(menu, SIGNAL(destroyed()), this, SLOT(itemDestroyed()));
connect(menu, &QObject::destroyed, this, &ActionContainerPrivate::itemDestroyed);
insertMenu(beforeAction, container->menu());
scheduleUpdate();
}
......@@ -311,11 +311,13 @@ void ActionContainerPrivate::clear()
foreach (QObject *item, group.items) {
if (Command *command = qobject_cast<Command *>(item)) {
removeAction(command->action());
disconnect(command, SIGNAL(activeStateChanged()), this, SLOT(scheduleUpdate()));
disconnect(command, SIGNAL(destroyed()), this, SLOT(itemDestroyed()));
disconnect(command, &Command::activeStateChanged,
this, &ActionContainerPrivate::scheduleUpdate);
disconnect(command, &QObject::destroyed, this, &ActionContainerPrivate::itemDestroyed);
} else if (ActionContainer *container = qobject_cast<ActionContainer *>(item)) {
container->clear();
disconnect(container, SIGNAL(destroyed()), this, SLOT(itemDestroyed()));
disconnect(container, &QObject::destroyed,
this, &ActionContainerPrivate::itemDestroyed);
removeMenu(container->menu());
}
}
......@@ -360,7 +362,7 @@ void ActionContainerPrivate::scheduleUpdate()
if (m_updateRequested)
return;
m_updateRequested = true;
QTimer::singleShot(0, this, SLOT(update()));
QTimer::singleShot(0, this, &ActionContainerPrivate::update);
}
void ActionContainerPrivate::update()
......
......@@ -82,12 +82,11 @@ protected:
// groupId --> list of Command* and ActionContainer*
QList<Group> m_groups;
private slots:
private:
void scheduleUpdate();
void update();
void itemDestroyed();
private:
QList<Group>::const_iterator findGroup(Id groupId) const;
QAction *insertLocation(QList<Group>::const_iterator group) const;
......
......@@ -99,7 +99,7 @@ using namespace Core::Internal;
"myplugin.myaction",
Context(C_GLOBAL));
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+u")));
connect(myAction, SIGNAL(triggered()), this, SLOT(performMyAction()));
connect(myAction, &QAction::triggered, this, &MyPlugin::performMyAction);
\endcode
So the \c connect is done to your own QAction instance. If you create e.g.
......
......@@ -206,7 +206,7 @@ Action::Action(Id id)
m_contextInitialized(false)
{
m_action->setShortcutVisibleInToolTip(true);
connect(m_action, SIGNAL(changed()), this, SLOT(updateActiveState()));
connect(m_action, &QAction::changed, this, &Action::updateActiveState);
}
Id Action::id() const
......
......@@ -78,10 +78,8 @@ public:
void removeAttribute(CommandAttribute attr);
bool hasAttribute(CommandAttribute attr) const;
private slots:
void updateActiveState();
private:
void updateActiveState();
void setActive(bool state);
Context m_context;
......
......@@ -58,7 +58,7 @@ CommandButton::CommandButton(Id id, QWidget *parent)
void CommandButton::setCommandId(Id id)
{
if (m_command)
disconnect(m_command, SIGNAL(keySequenceChanged()), this, SLOT(updateToolTip()));
disconnect(m_command.data(), &Command::keySequenceChanged, this, &CommandButton::updateToolTip);
m_command = ActionManager::command(id);
......@@ -66,7 +66,7 @@ void CommandButton::setCommandId(Id id)
m_toolTipBase = m_command->description();
updateToolTip();
connect(m_command, SIGNAL(keySequenceChanged()), this, SLOT(updateToolTip()));
connect(m_command.data(), &Command::keySequenceChanged, this, &CommandButton::updateToolTip);
}
QString CommandButton::toolTipBase() const
......
......@@ -48,10 +48,9 @@ public:
QString toolTipBase() const;
void setToolTipBase(const QString &toolTipBase);
private slots:
private:
void updateToolTip();
private:
QPointer<Command> m_command;
QString m_toolTipBase;
};
......
......@@ -187,7 +187,7 @@ void DesignMode::currentEditorChanged(IEditor *editor)
}
}
if (d->m_currentEditor)
disconnect(d->m_currentEditor.data()->document(), SIGNAL(changed()), this, SLOT(updateActions()));
disconnect(d->m_currentEditor.data()->document(), &IDocument::changed, this, &DesignMode::updateActions);
if (!mimeEditorAvailable) {
setActiveContext(Context());
......@@ -200,7 +200,7 @@ void DesignMode::currentEditorChanged(IEditor *editor)
d->m_currentEditor = editor;
if (d->m_currentEditor)
connect(d->m_currentEditor.data()->document(), SIGNAL(changed()), this, SLOT(updateActions()));
connect(d->m_currentEditor.data()->document(), &IDocument::changed, this, &DesignMode::updateActions);
emit actionsUpdated(d->m_currentEditor.data());
}
......
......@@ -65,10 +65,9 @@ public:
signals:
void actionsUpdated(Core::IEditor *editor);
private slots:
private:
void updateActions();
private:
void currentEditorChanged(IEditor *editor);
void updateContext(IMode *newMode, IMode *oldMode);
void setActiveContext(const Context &context);
......
......@@ -442,8 +442,8 @@ ExternalToolConfig::ExternalToolConfig(QWidget *parent) :
ui->toolTree->setModel(m_model);
ui->toolTree->setEditTriggers(QAbstractItemView::DoubleClicked | QAbstractItemView::EditKeyPressed);
connect(ui->toolTree->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, SLOT(handleCurrentChanged(QModelIndex,QModelIndex)));
connect(ui->toolTree->selectionModel(), &QItemSelectionModel::currentChanged,
this, &ExternalToolConfig::handleCurrentChanged);
auto chooser = new VariableChooser(this);
chooser->addSupportedWidget(ui->executable->lineEdit());
......@@ -451,30 +451,40 @@ ExternalToolConfig::ExternalToolConfig(QWidget *parent) :
chooser->addSupportedWidget(ui->workingDirectory->lineEdit());
chooser->addSupportedWidget(ui->inputText);
connect(ui->description, SIGNAL(editingFinished()), this, SLOT(updateCurrentItem()));
connect(ui->executable, SIGNAL(editingFinished()), this, SLOT(updateCurrentItem()));
connect(ui->executable, SIGNAL(browsingFinished()), this, SLOT(updateCurrentItem()));
connect(ui->arguments, SIGNAL(editingFinished()), this, SLOT(updateCurrentItem()));
connect(ui->arguments, SIGNAL(editingFinished()), this, SLOT(updateEffectiveArguments()));
connect(ui->workingDirectory, SIGNAL(editingFinished()), this, SLOT(updateCurrentItem()));
connect(ui->workingDirectory, SIGNAL(browsingFinished()), this, SLOT(updateCurrentItem()));
connect(ui->environmentButton, SIGNAL(clicked()), this, SLOT(editEnvironmentChanges()));
connect(ui->outputBehavior, SIGNAL(activated(int)), this, SLOT(updateCurrentItem()));
connect(ui->errorOutputBehavior, SIGNAL(activated(int)), this, SLOT(updateCurrentItem()));
connect(ui->modifiesDocumentCheckbox, SIGNAL(clicked()), this, SLOT(updateCurrentItem()));
connect(ui->inputText, SIGNAL(textChanged()), this, SLOT(updateCurrentItem()));
connect(ui->revertButton, SIGNAL(clicked()), this, SLOT(revertCurrentItem()));
connect(ui->removeButton, SIGNAL(clicked()), this, SLOT(removeTool()));
connect(ui->description, &QLineEdit::editingFinished,
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->executable, &Utils::PathChooser::editingFinished,
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->executable, &Utils::PathChooser::browsingFinished,
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->arguments, &QLineEdit::editingFinished, this, &ExternalToolConfig::updateCurrentItem);
connect(ui->arguments, &QLineEdit::editingFinished,
this, &ExternalToolConfig::updateEffectiveArguments);
connect(ui->workingDirectory, &Utils::PathChooser::editingFinished,
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->workingDirectory, &Utils::PathChooser::browsingFinished,
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->environmentButton, &QAbstractButton::clicked,
this, &ExternalToolConfig::editEnvironmentChanges);
connect(ui->outputBehavior, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated),
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->errorOutputBehavior, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated),
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->modifiesDocumentCheckbox, &QAbstractButton::clicked,
this, &ExternalToolConfig::updateCurrentItem);
connect(ui->inputText, &QPlainTextEdit::textChanged, this, &ExternalToolConfig::updateCurrentItem);
connect(ui->revertButton, &QAbstractButton::clicked, this, &ExternalToolConfig::revertCurrentItem);
connect(ui->removeButton, &QAbstractButton::clicked, this, &ExternalToolConfig::removeTool);
QMenu *menu = new QMenu(ui->addButton);
ui->addButton->setMenu(menu);
QAction *addTool = new QAction(tr("Add Tool"), this);
menu->addAction(addTool);
connect(addTool, SIGNAL(triggered()), this, SLOT(addTool()));
connect(addTool, &QAction::triggered, this, &ExternalToolConfig::addTool);
QAction *addCategory = new QAction(tr("Add Category"), this);
menu->addAction(addCategory);
connect(addCategory, SIGNAL(triggered()), this, SLOT(addCategory()));
connect(addCategory, &QAction::triggered, this, &ExternalToolConfig::addCategory);
showInfoForItem(QModelIndex());
......
......@@ -104,7 +104,7 @@ public:
QMap<QString, QList<ExternalTool *> > tools() const;
void apply();
private slots:
private:
void handleCurrentChanged(const QModelIndex &now, const QModelIndex &previous);
void showInfoForItem(const QModelIndex &index);
void updateItem(const QModelIndex &index);
......@@ -118,7 +118,6 @@ private slots:
void editEnvironmentChanges();
void updateEnvironmentLabel();
private:
Ui::ExternalToolConfig *ui;
QStringList m_environment;
ExternalToolModel *m_model;
......
......@@ -231,7 +231,9 @@ NewDialog::NewDialog(QWidget *parent) :
connect(m_ui->buttonBox, &QDialogButtonBox::accepted, this, &NewDialog::accept);
connect(m_ui->buttonBox, &QDialogButtonBox::rejected, this, &NewDialog::reject);
connect(m_ui->comboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(setSelectedPlatform(QString)));
connect(m_ui->comboBox,
static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),
this, &NewDialog::setSelectedPlatform);
}
// Sort by category. id
......
......@@ -67,7 +67,7 @@ public:
protected:
bool event(QEvent *);
private slots:
private:
void currentCategoryChanged(const QModelIndex &);
void currentItemChanged(const QModelIndex &);
void accept();
......@@ -75,7 +75,6 @@ private slots:
void updateOkButton();
void setSelectedPlatform(const QString &platform);
private:
Core::IWizardFactory *currentWizardFactory() const;
void addItem(QStandardItem *topLevelCategoryItem, IWizardFactory *factory);
void saveState();
......
......@@ -40,14 +40,14 @@ OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent)
label->setText(tr("Open file \"%1\" with:").arg(Utils::FileName::fromString(fileName).fileName()));
buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
this, SLOT(accept()));
connect(buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
this, SLOT(reject()));
connect(editorListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
this, SLOT(accept()));
connect(editorListWidget, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
this, SLOT(currentItemChanged(QListWidgetItem*,QListWidgetItem*)));
connect(buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked,
this, &QDialog::accept);
connect(buttonBox->button(QDialogButtonBox::Cancel), &QAbstractButton::clicked,
this, &QDialog::reject);
connect(editorListWidget, &QListWidget::itemDoubleClicked,
this, &QDialog::accept);
connect(editorListWidget, &QListWidget::currentItemChanged,
this, &OpenWithDialog::currentItemChanged);
setOkButtonEnabled(false);
}
......
......@@ -49,10 +49,8 @@ public:
void setCurrentEditor(int index);
private slots:
void currentItemChanged(QListWidgetItem *, QListWidgetItem *);
private:
void currentItemChanged(QListWidgetItem *, QListWidgetItem *);
void setOkButtonEnabled(bool);
};
......
......@@ -72,8 +72,8 @@ PromptOverwriteDialog::PromptOverwriteDialog(QWidget *parent) :
m_view->setModel(m_model);
mainLayout->addWidget(m_view);
QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
connect(bb, SIGNAL(accepted()), this, SLOT(accept()));
connect(bb, SIGNAL(rejected()), this, SLOT(reject()));
connect(bb, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(bb, &QDialogButtonBox::rejected, this, &QDialog::reject);
mainLayout->addWidget(bb);
}
......
......@@ -82,10 +82,11 @@ SaveItemsDialog::SaveItemsDialog(QWidget *parent,
adjustButtonWidths();
updateSaveButton();
connect(m_ui.buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()),
this, SLOT(collectItemsToSave()));
connect(discardButton, SIGNAL(clicked()), this, SLOT(discardAll()));
connect(m_ui.treeWidget, SIGNAL(itemSelectionChanged()), this, SLOT(updateSaveButton()));
connect(m_ui.buttonBox->button(QDialogButtonBox::Save), &QAbstractButton::clicked,
this, &SaveItemsDialog::collectItemsToSave);
connect(discardButton, &QAbstractButton::clicked, this, &SaveItemsDialog::discardAll);
connect(m_ui.treeWidget, &QTreeWidget::itemSelectionChanged,
this, &SaveItemsDialog::updateSaveButton);
}
void SaveItemsDialog::setMessage(const QString &msg)
......
......@@ -56,12 +56,10 @@ public:
bool alwaysSaveChecked();
QList<IDocument *> itemsToSave() const;
private slots:
private:
void collectItemsToSave();
void discardAll();
void updateSaveButton();
private:
void adjustButtonWidths();
Ui::SaveItemsDialog m_ui;
......
......@@ -126,8 +126,9 @@ struct FileState
};
struct DocumentManagerPrivate
class DocumentManagerPrivate
{
public:
DocumentManagerPrivate();
QFileSystemWatcher *fileWatcher();
QFileSystemWatcher *linkWatcher();
......@@ -163,8 +164,8 @@ QFileSystemWatcher *DocumentManagerPrivate::fileWatcher()
{
if (!m_fileWatcher) {
m_fileWatcher= new QFileSystemWatcher(m_instance);
QObject::connect(m_fileWatcher, SIGNAL(fileChanged(QString)),
m_instance, SLOT(changedFile(QString)));
QObject::connect(m_fileWatcher, &QFileSystemWatcher::fileChanged,
m_instance, &DocumentManager::changedFile);
}
return m_fileWatcher;
}
......@@ -175,8 +176,8 @@ QFileSystemWatcher *DocumentManagerPrivate::linkWatcher()
if (!m_linkWatcher) {
m_linkWatcher = new QFileSystemWatcher(m_instance);
m_linkWatcher->setObjectName(QLatin1String("_qt_autotest_force_engine_poller"));
QObject::connect(m_linkWatcher, SIGNAL(fileChanged(QString)),
m_instance, SLOT(changedFile(QString)));
QObject::connect(m_linkWatcher, &QFileSystemWatcher::fileChanged,
m_instance, &DocumentManager::changedFile);
}
return m_linkWatcher;
}
......@@ -271,7 +272,8 @@ void DocumentManager::addDocuments(const QList<IDocument *> &documents, bool add
foreach (IDocument *document, documents) {
if (document && !d->m_documentsWithoutWatch.contains(document)) {
connect(document, SIGNAL(destroyed(QObject*)), m_instance, SLOT(documentDestroyed(QObject*)));
connect(document, &QObject::destroyed,
m_instance, &DocumentManager::documentDestroyed);
connect(document, &IDocument::filePathChanged,
m_instance, &DocumentManager::filePathChanged);
d->m_documentsWithoutWatch.append(document);
......@@ -282,9 +284,10 @@ void DocumentManager::addDocuments(const QList<IDocument *> &documents, bool add
foreach (IDocument *document, documents) {
if (document && !d->m_documentsWithWatch.contains(document)) {
connect(document, SIGNAL(changed()), m_instance, SLOT(checkForNewFileName()));
connect(document, SIGNAL(destroyed(QObject*)), m_instance, SLOT(documentDestroyed(QObject*)));
connect(document, &IDocument::filePathChanged, m_instance, &DocumentManager::filePathChanged);
connect(document, &IDocument::changed, m_instance, &DocumentManager::checkForNewFileName);
connect(document, &QObject::destroyed, m_instance, &DocumentManager::documentDestroyed);
connect(document, &IDocument::filePathChanged,
m_instance, &DocumentManager::filePathChanged);
addFileInfo(document);
}
}
......@@ -425,9 +428,9 @@ bool DocumentManager::removeDocument(IDocument *document)
if (!d->m_documentsWithoutWatch.removeOne(document)) {
addWatcher = true;
removeFileInfo(document);
disconnect(document, SIGNAL(changed()), m_instance, SLOT(checkForNewFileName()));
disconnect(document, &IDocument::changed, m_instance, &DocumentManager::checkForNewFileName);
}
disconnect(document, SIGNAL(destroyed(QObject*)), m_instance, SLOT(documentDestroyed(QObject*)));
disconnect(document, &QObject::destroyed, m_instance, &DocumentManager::documentDestroyed);
return addWatcher;
}
......@@ -888,7 +891,7 @@ void DocumentManager::changedFile(const QString &fileName)
d->m_changedFiles.insert(fileName);
if (wasempty && !d->m_changedFiles.isEmpty())
QTimer::singleShot(200, this, SLOT(checkForReload()));
QTimer::singleShot(200, this, &DocumentManager::checkForReload);
}
void DocumentManager::checkForReload()
......@@ -904,7 +907,7 @@ void DocumentManager::checkForReload()
// file modified dialog, or of loading large files, has delivered a file change event from
// a watcher *and* the timer triggered. We may never end up here in a nested way, so
// recheck later.
QTimer::singleShot(200, this, SLOT(checkForReload()));
QTimer::singleShot(200, this, &DocumentManager::checkForReload);
return;
}
......@@ -1374,7 +1377,7 @@ bool DocumentManager::eventFilter(QObject *obj, QEvent *e)
{
if (obj == qApp && e->type() == QEvent::ApplicationActivate) {
// activeWindow is not necessarily set yet, do checkForReload asynchronously
QTimer::singleShot(0, this, SLOT(checkForReload()));
QTimer::singleShot(0, this, &DocumentManager::checkForReload);
}
return false;
}
......
......@@ -45,7 +45,10 @@ namespace Core {
class IContext;
class IDocument;
namespace Internal { class MainWindow; }
namespace Internal {
class DocumentManagerPrivate;
class MainWindow;
}
class CORE_EXPORT DocumentManager : public QObject
{
......@@ -148,19 +151,18 @@ signals:
protected:
bool eventFilter(QObject *obj, QEvent *e);
private slots:
void documentDestroyed(QObject *obj);
void checkForNewFileName();
void checkForReload();
void changedFile(const QString &file);
private:
explicit DocumentManager(QObject *parent);
~DocumentManager();
void documentDestroyed(QObject *obj);
void checkForNewFileName();
void checkForReload();
void changedFile(const QString &file);
void filePathChanged(const Utils::FileName &oldName, const Utils::FileName &newName);
friend class Core::Internal::MainWindow;
friend class Core::Internal::DocumentManagerPrivate;
};
/*! The FileChangeBlocker blocks all change notifications to all IDocument * that
......
......@@ -69,11 +69,10 @@ public:
bool disambiguateDisplayNames(DocumentModel::Entry *entry);
private slots:
private:
friend class DocumentModel;
void itemChanged();
private:
class DynamicEntry
{
public:
......@@ -263,7 +262,7 @@ void DocumentModelPrivate::addEntry(DocumentModel::Entry *entry)
previousEntry = 0;
disambiguateDisplayNames(entry);
if (replace)
connect(entry->document, SIGNAL(changed()), this, SLOT(itemChanged()));
connect(entry->document, &IDocument::changed, this, &DocumentModelPrivate::itemChanged);
return;
}
......@@ -282,7 +281,7 @@ void DocumentModelPrivate::addEntry(DocumentModel::Entry *entry)
disambiguateDisplayNames(entry);
if (!fixedPath.isEmpty())
m_entryByFixedPath[fixedPath] = entry;
connect(entry->document, SIGNAL(changed()), this, SLOT(itemChanged()));
connect(entry->document, &IDocument::changed, this, &DocumentModelPrivate::itemChanged);
endInsertRows();
}
......@@ -406,7 +405,7 @@ void DocumentModelPrivate::removeDocument(int idx)
DocumentManager::ResolveLinks);
m_entryByFixedPath.remove(fixedPath);
}
disconnect(entry->document, SIGNAL(changed()), this, SLOT(itemChanged()));
disconnect(entry->document, &IDocument::changed, this, &DocumentModelPrivate::itemChanged);
disambiguateDisplayNames(entry);
delete entry;
}
......
......@@ -136,12 +136,12 @@ public slots:
static void gotoNextSplit();
void handleDocumentStateChange();
static void editorAreaDestroyed(QObject *area);
void editorAreaDestroyed(QObject *area);
signals:
void placeholderTextChanged(const QString &text);
private slots:
private:
static void gotoNextDocHistory();
static void gotoPreviousDocHistory();
......@@ -164,13 +164,10 @@ private slots:
static void openTerminal();
static void findInDirectory();
static void split();
static void splitNewWindow();
static void removeCurrentSplit();
static void setCurrentEditorFromContextChange();
private:
static OpenEditorsWindow *windowPopup();
static void showPopupOrSelectDocument();
......
......@@ -74,15 +74,20 @@ EditorView::EditorView(SplitterOrView *parentSplitterOrView, QWidget *parent) :
tl->setSpacing(0);
tl->setMargin(0);
{
connect(m_toolBar, SIGNAL(goBackClicked()), this, SLOT(goBackInNavigationHistory()));
connect(m_toolBar, SIGNAL(goForwardClicked()), this, SLOT(goForwardInNavigationHistory()));