forked from qt-creator/qt-creator
Normalized connect()s
Change-Id: Id353ab140a46e06ffc3abf667ab3b234e749e17c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
9f05e6495d
commit
b41171c847
@@ -107,10 +107,10 @@ QDeclarativeViewInspector::QDeclarativeViewInspector(QDeclarativeView *view, QOb
|
||||
SIGNAL(objectCreationRequested(QString,QObject*,QStringList,QString,int)),
|
||||
data.data(), SLOT(_q_createQmlObject(QString,QObject*,QStringList,QString,int)));
|
||||
connect(data->debugService,
|
||||
SIGNAL(objectDeletionRequested(QObject *)), data.data(), SLOT(_q_deleteQmlObject(QObject *)));
|
||||
SIGNAL(objectDeletionRequested(QObject*)), data.data(), SLOT(_q_deleteQmlObject(QObject*)));
|
||||
connect(data->debugService,
|
||||
SIGNAL(objectReparentRequested(QObject *, QObject *)),
|
||||
data.data(), SLOT(_q_reparentQmlObject(QObject *, QObject *)));
|
||||
SIGNAL(objectReparentRequested(QObject*,QObject*)),
|
||||
data.data(), SLOT(_q_reparentQmlObject(QObject*,QObject*)));
|
||||
connect(data->debugService, SIGNAL(clearComponentCacheRequested()),
|
||||
data.data(), SLOT(_q_clearComponentCache()));
|
||||
connect(data->view, SIGNAL(statusChanged(QDeclarativeView::Status)),
|
||||
|
||||
@@ -934,7 +934,7 @@ void QDeclarativeViewer::showProxySettings()
|
||||
{
|
||||
ProxySettings settingsDlg (this);
|
||||
|
||||
connect (&settingsDlg, SIGNAL (accepted()), this, SLOT (proxySettingsChanged ()));
|
||||
connect(&settingsDlg, SIGNAL(accepted()), this, SLOT(proxySettingsChanged()));
|
||||
|
||||
settingsDlg.exec();
|
||||
}
|
||||
|
||||
+1
-1
@@ -145,7 +145,7 @@ WebTouchNavigation::WebTouchNavigation(QObject *parent, QWebPage *webPage)
|
||||
m_physics->setParent(this);
|
||||
m_scroller = new WebTouchScroller(this);
|
||||
|
||||
connect(m_physics, SIGNAL(positionChanged(QPointF, QPoint)), m_scroller, SLOT(scroll(QPointF, QPoint)));
|
||||
connect(m_physics, SIGNAL(positionChanged(QPointF,QPoint)), m_scroller, SLOT(scroll(QPointF,QPoint)));
|
||||
connect(m_scroller, SIGNAL(rangeChanged(QRectF)), m_physics, SLOT(setRange(QRectF)));
|
||||
}
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ PluginSpec *PluginView::currentPlugin() const
|
||||
void PluginView::updateList()
|
||||
{
|
||||
connect(m_ui->categoryWidget, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
|
||||
this, SLOT(updatePluginSettings(QTreeWidgetItem*, int)));
|
||||
this, SLOT(updatePluginSettings(QTreeWidgetItem*,int)));
|
||||
|
||||
PluginCollection *defaultCollection = 0;
|
||||
foreach(PluginCollection *collection, p->manager->pluginCollections()) {
|
||||
|
||||
@@ -445,7 +445,7 @@ QWidget* ContextPaneWidget::createFontWidget()
|
||||
m_textWidget = new ContextPaneTextWidget(this);
|
||||
connect(m_textWidget, SIGNAL(propertyChanged(QString,QVariant)), this, SIGNAL(propertyChanged(QString,QVariant)));
|
||||
connect(m_textWidget, SIGNAL(removeProperty(QString)), this, SIGNAL(removeProperty(QString)));
|
||||
connect(m_textWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)));
|
||||
connect(m_textWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)));
|
||||
|
||||
return m_textWidget;
|
||||
}
|
||||
@@ -456,7 +456,7 @@ QWidget* ContextPaneWidget::createEasingWidget()
|
||||
|
||||
connect(m_easingWidget, SIGNAL(propertyChanged(QString,QVariant)), this, SIGNAL(propertyChanged(QString,QVariant)));
|
||||
connect(m_easingWidget, SIGNAL(removeProperty(QString)), this, SIGNAL(removeProperty(QString)));
|
||||
connect(m_easingWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)));
|
||||
connect(m_easingWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)));
|
||||
|
||||
return m_easingWidget;
|
||||
}
|
||||
@@ -466,7 +466,7 @@ QWidget *ContextPaneWidget::createImageWidget()
|
||||
m_imageWidget = new ContextPaneWidgetImage(this);
|
||||
connect(m_imageWidget, SIGNAL(propertyChanged(QString,QVariant)), this, SIGNAL(propertyChanged(QString,QVariant)));
|
||||
connect(m_imageWidget, SIGNAL(removeProperty(QString)), this, SIGNAL(removeProperty(QString)));
|
||||
connect(m_imageWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)));
|
||||
connect(m_imageWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)));
|
||||
|
||||
return m_imageWidget;
|
||||
}
|
||||
@@ -476,7 +476,7 @@ QWidget *ContextPaneWidget::createBorderImageWidget()
|
||||
m_borderImageWidget = new ContextPaneWidgetImage(this, true);
|
||||
connect(m_borderImageWidget, SIGNAL(propertyChanged(QString,QVariant)), this, SIGNAL(propertyChanged(QString,QVariant)));
|
||||
connect(m_borderImageWidget, SIGNAL(removeProperty(QString)), this, SIGNAL(removeProperty(QString)));
|
||||
connect(m_borderImageWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)));
|
||||
connect(m_borderImageWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)));
|
||||
|
||||
return m_borderImageWidget;
|
||||
|
||||
@@ -487,7 +487,7 @@ QWidget *ContextPaneWidget::createRectangleWidget()
|
||||
m_rectangleWidget = new ContextPaneWidgetRectangle(this);
|
||||
connect(m_rectangleWidget, SIGNAL(propertyChanged(QString,QVariant)), this, SIGNAL(propertyChanged(QString,QVariant)));
|
||||
connect(m_rectangleWidget, SIGNAL(removeProperty(QString)), this, SIGNAL(removeProperty(QString)));
|
||||
connect(m_rectangleWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)));
|
||||
connect(m_rectangleWidget, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)));
|
||||
|
||||
return m_rectangleWidget;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ FileWidget::FileWidget(QWidget *parent) : QWidget(parent), m_filter("(*.*)"), m_
|
||||
m_pushButton->setText("...");
|
||||
connect(m_lineEdit, SIGNAL(editingFinished()), this, SLOT(lineEditChanged()));
|
||||
connect(m_pushButton, SIGNAL(released()), this, SLOT(onButtonReleased()));
|
||||
connect(m_comboBox, SIGNAL(editTextChanged(const QString &)), this, SLOT(comboBoxChanged()));
|
||||
connect(m_comboBox, SIGNAL(editTextChanged(QString)), this, SLOT(comboBoxChanged()));
|
||||
}
|
||||
|
||||
FileWidget::~FileWidget()
|
||||
|
||||
@@ -154,12 +154,12 @@ QDeclarativeFolderListModel::QDeclarativeFolderListModel(QObject *parent)
|
||||
|
||||
d = new QDeclarativeFolderListModelPrivate;
|
||||
d->model.setFilter(QDir::AllDirs | QDir::Files | QDir::Drives | QDir::NoDotAndDotDot);
|
||||
connect(&d->model, SIGNAL(rowsInserted(const QModelIndex&,int,int))
|
||||
, this, SLOT(inserted(const QModelIndex&,int,int)));
|
||||
connect(&d->model, SIGNAL(rowsRemoved(const QModelIndex&,int,int))
|
||||
, this, SLOT(removed(const QModelIndex&,int,int)));
|
||||
connect(&d->model, SIGNAL(dataChanged(const QModelIndex&,const QModelIndex&))
|
||||
, this, SLOT(handleDataChanged(const QModelIndex&,const QModelIndex&)));
|
||||
connect(&d->model, SIGNAL(rowsInserted(QModelIndex,int,int))
|
||||
, this, SLOT(inserted(QModelIndex,int,int)));
|
||||
connect(&d->model, SIGNAL(rowsRemoved(QModelIndex,int,int))
|
||||
, this, SLOT(removed(QModelIndex,int,int)));
|
||||
connect(&d->model, SIGNAL(dataChanged(QModelIndex,QModelIndex))
|
||||
, this, SLOT(handleDataChanged(QModelIndex,QModelIndex)));
|
||||
connect(&d->model, SIGNAL(modelReset()), this, SLOT(refresh()));
|
||||
connect(&d->model, SIGNAL(layoutChanged()), this, SLOT(refresh()));
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ ConsoleProcess::ConsoleProcess(QObject *parent) :
|
||||
connect(&d->m_stubServer, SIGNAL(newConnection()), SLOT(stubConnectionAvailable()));
|
||||
|
||||
d->m_process.setProcessChannelMode(QProcess::ForwardedChannels);
|
||||
connect(&d->m_process, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
connect(&d->m_process, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
SLOT(stubExited()));
|
||||
}
|
||||
|
||||
|
||||
@@ -129,12 +129,12 @@ int HistoryListModel::rowCount(const QModelIndex &parent) const
|
||||
if (qobject_cast<QLineEdit *>(lastSeenWidget))
|
||||
// this will result in spamming the history with garbage in some corner cases.
|
||||
// not my idea.
|
||||
disconnect(lastSeenWidget, SIGNAL(editingFinished ()), completer, SLOT(saveHistory()));
|
||||
disconnect(lastSeenWidget, SIGNAL(editingFinished()), completer, SLOT(saveHistory()));
|
||||
HistoryListModel *that = const_cast<HistoryListModel *>(this);
|
||||
that->lastSeenWidget = completer->widget();
|
||||
that->fetchHistory();
|
||||
if (qobject_cast<QLineEdit *>(lastSeenWidget))
|
||||
connect(lastSeenWidget, SIGNAL(editingFinished ()), completer, SLOT(saveHistory()));
|
||||
connect(lastSeenWidget, SIGNAL(editingFinished()), completer, SLOT(saveHistory()));
|
||||
}
|
||||
if (parent.isValid())
|
||||
return 0;
|
||||
|
||||
@@ -93,10 +93,10 @@ SftpChannel::SftpChannel(quint32 channelId,
|
||||
Qt::QueuedConnection);
|
||||
connect(d, SIGNAL(initializationFailed(QString)), this,
|
||||
SIGNAL(initializationFailed(QString)), Qt::QueuedConnection);
|
||||
connect(d, SIGNAL(dataAvailable(Utils::SftpJobId, QString)), this,
|
||||
SIGNAL(dataAvailable(Utils::SftpJobId, QString)), Qt::QueuedConnection);
|
||||
connect(d, SIGNAL(fileInfoAvailable(Utils::SftpJobId, QList<Utils::SftpFileInfo>)), this,
|
||||
SIGNAL(fileInfoAvailable(Utils::SftpJobId, QList<Utils::SftpFileInfo>)),
|
||||
connect(d, SIGNAL(dataAvailable(Utils::SftpJobId,QString)), this,
|
||||
SIGNAL(dataAvailable(Utils::SftpJobId,QString)), Qt::QueuedConnection);
|
||||
connect(d, SIGNAL(fileInfoAvailable(Utils::SftpJobId,QList<Utils::SftpFileInfo>)), this,
|
||||
SIGNAL(fileInfoAvailable(Utils::SftpJobId,QList<Utils::SftpFileInfo>)),
|
||||
Qt::QueuedConnection);
|
||||
connect(d, SIGNAL(finished(Utils::SftpJobId,QString)), this,
|
||||
SIGNAL(finished(Utils::SftpJobId,QString)), Qt::QueuedConnection);
|
||||
|
||||
@@ -288,10 +288,10 @@ void SftpFileSystemModel::handleSshConnectionFailure()
|
||||
void SftpFileSystemModel::handleSftpChannelInitialized()
|
||||
{
|
||||
connect(d->sftpChannel.data(),
|
||||
SIGNAL(fileInfoAvailable(Utils::SftpJobId, QList<Utils::SftpFileInfo>)),
|
||||
SLOT(handleFileInfo(Utils::SftpJobId, QList<Utils::SftpFileInfo>)));
|
||||
connect(d->sftpChannel.data(), SIGNAL(finished(Utils::SftpJobId, QString)),
|
||||
SLOT(handleSftpJobFinished(Utils::SftpJobId, QString)));
|
||||
SIGNAL(fileInfoAvailable(Utils::SftpJobId,QList<Utils::SftpFileInfo>)),
|
||||
SLOT(handleFileInfo(Utils::SftpJobId,QList<Utils::SftpFileInfo>)));
|
||||
connect(d->sftpChannel.data(), SIGNAL(finished(Utils::SftpJobId,QString)),
|
||||
SLOT(handleSftpJobFinished(Utils::SftpJobId,QString)));
|
||||
statRootDirectory();
|
||||
}
|
||||
|
||||
|
||||
@@ -420,7 +420,7 @@ void SubmitEditorWidget::setFileModel(QAbstractItemModel *model)
|
||||
this, SLOT(updateSubmitAction()));
|
||||
connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
|
||||
this, SLOT(updateSubmitAction()));
|
||||
connect(d->m_ui.fileView->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
|
||||
connect(d->m_ui.fileView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
|
||||
this, SLOT(updateDiffAction()));
|
||||
updateActions();
|
||||
}
|
||||
|
||||
+14
-14
@@ -140,20 +140,20 @@ LinearProgressWidget::LinearProgressWidget(WizardProgress *progress, QWidget *pa
|
||||
m_dotsItemWidget->setVisible(false);
|
||||
m_dotsItemWidget->setEnabled(false);
|
||||
|
||||
connect(m_wizardProgress, SIGNAL(itemAdded(WizardProgressItem *)),
|
||||
this, SLOT(slotItemAdded(WizardProgressItem *)));
|
||||
connect(m_wizardProgress, SIGNAL(itemRemoved(WizardProgressItem *)),
|
||||
this, SLOT(slotItemRemoved(WizardProgressItem *)));
|
||||
connect(m_wizardProgress, SIGNAL(itemChanged(WizardProgressItem *)),
|
||||
this, SLOT(slotItemChanged(WizardProgressItem *)));
|
||||
connect(m_wizardProgress, SIGNAL(nextItemsChanged(WizardProgressItem *, const QList<WizardProgressItem *> &)),
|
||||
this, SLOT(slotNextItemsChanged(WizardProgressItem *, const QList<WizardProgressItem *> &)));
|
||||
connect(m_wizardProgress, SIGNAL(nextShownItemChanged(WizardProgressItem *, WizardProgressItem *)),
|
||||
this, SLOT(slotNextShownItemChanged(WizardProgressItem *, WizardProgressItem *)));
|
||||
connect(m_wizardProgress, SIGNAL(startItemChanged(WizardProgressItem *)),
|
||||
this, SLOT(slotStartItemChanged(WizardProgressItem *)));
|
||||
connect(m_wizardProgress, SIGNAL(currentItemChanged(WizardProgressItem *)),
|
||||
this, SLOT(slotCurrentItemChanged(WizardProgressItem *)));
|
||||
connect(m_wizardProgress, SIGNAL(itemAdded(WizardProgressItem*)),
|
||||
this, SLOT(slotItemAdded(WizardProgressItem*)));
|
||||
connect(m_wizardProgress, SIGNAL(itemRemoved(WizardProgressItem*)),
|
||||
this, SLOT(slotItemRemoved(WizardProgressItem*)));
|
||||
connect(m_wizardProgress, SIGNAL(itemChanged(WizardProgressItem*)),
|
||||
this, SLOT(slotItemChanged(WizardProgressItem*)));
|
||||
connect(m_wizardProgress, SIGNAL(nextItemsChanged(WizardProgressItem*,QList<WizardProgressItem*>)),
|
||||
this, SLOT(slotNextItemsChanged(WizardProgressItem*,QList<WizardProgressItem*>)));
|
||||
connect(m_wizardProgress, SIGNAL(nextShownItemChanged(WizardProgressItem*,WizardProgressItem*)),
|
||||
this, SLOT(slotNextShownItemChanged(WizardProgressItem*,WizardProgressItem*)));
|
||||
connect(m_wizardProgress, SIGNAL(startItemChanged(WizardProgressItem*)),
|
||||
this, SLOT(slotStartItemChanged(WizardProgressItem*)));
|
||||
connect(m_wizardProgress, SIGNAL(currentItemChanged(WizardProgressItem*)),
|
||||
this, SLOT(slotCurrentItemChanged(WizardProgressItem*)));
|
||||
|
||||
QList<WizardProgressItem *> items = m_wizardProgress->items();
|
||||
for (int i = 0; i < items.count(); i++)
|
||||
|
||||
@@ -194,7 +194,7 @@ public:
|
||||
{
|
||||
m_editor = parent;
|
||||
connect(m_editor, SIGNAL(dataRequested(Core::IEditor*,quint64)),
|
||||
this, SLOT(provideData(Core::IEditor *, quint64)));
|
||||
this, SLOT(provideData(Core::IEditor*,quint64)));
|
||||
connect(m_editor, SIGNAL(newRangeRequested(Core::IEditor*,quint64)),
|
||||
this, SLOT(provideNewRange(Core::IEditor*,quint64)));
|
||||
connect(m_editor, SIGNAL(startOfFileRequested(Core::IEditor*)), this,
|
||||
@@ -535,8 +535,8 @@ bool BinEditorPlugin::initialize(const QStringList &arguments, QString *errorMes
|
||||
Q_UNUSED(arguments)
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
connect(Core::ICore::instance(), SIGNAL(contextAboutToChange(Core::IContext *)),
|
||||
this, SLOT(updateCurrentEditor(Core::IContext *)));
|
||||
connect(Core::ICore::instance(), SIGNAL(contextAboutToChange(Core::IContext*)),
|
||||
this, SLOT(updateCurrentEditor(Core::IContext*)));
|
||||
|
||||
addAutoReleasedObject(new BinEditorFactory(this));
|
||||
addAutoReleasedObject(new BinEditorWidgetFactory);
|
||||
|
||||
@@ -212,8 +212,8 @@ BookmarkView::BookmarkView(QWidget *parent) :
|
||||
{
|
||||
setWindowTitle(tr("Bookmarks"));
|
||||
|
||||
connect(this, SIGNAL(clicked(const QModelIndex &)),
|
||||
this, SLOT(gotoBookmark(const QModelIndex &)));
|
||||
connect(this, SIGNAL(clicked(QModelIndex)),
|
||||
this, SLOT(gotoBookmark(QModelIndex)));
|
||||
|
||||
ICore::addContextObject(m_bookmarkContext);
|
||||
|
||||
|
||||
@@ -64,8 +64,8 @@ CMakeManager::CMakeManager(CMakeSettingsPage *cmakeSettingsPage)
|
||||
: m_settingsPage(cmakeSettingsPage)
|
||||
{
|
||||
ProjectExplorer::ProjectExplorerPlugin *projectExplorer = ProjectExplorer::ProjectExplorerPlugin::instance();
|
||||
connect(projectExplorer, SIGNAL(aboutToShowContextMenu(ProjectExplorer::Project*, ProjectExplorer::Node*)),
|
||||
this, SLOT(updateContextMenu(ProjectExplorer::Project*, ProjectExplorer::Node*)));
|
||||
connect(projectExplorer, SIGNAL(aboutToShowContextMenu(ProjectExplorer::Project*,ProjectExplorer::Node*)),
|
||||
this, SLOT(updateContextMenu(ProjectExplorer::Project*,ProjectExplorer::Node*)));
|
||||
|
||||
Core::ActionManager *am = Core::ICore::actionManager();
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep)
|
||||
|
||||
updateDetails();
|
||||
|
||||
connect(m_additionalArguments, SIGNAL(textEdited(const QString &)), this, SLOT(additionalArgumentsEdited()));
|
||||
connect(m_additionalArguments, SIGNAL(textEdited(QString)), this, SLOT(additionalArgumentsEdited()));
|
||||
connect(m_buildTargetsList, SIGNAL(itemChanged(QListWidgetItem*)), this, SLOT(itemChanged(QListWidgetItem*)));
|
||||
connect(ProjectExplorer::ProjectExplorerPlugin::instance(), SIGNAL(settingsChanged()),
|
||||
this, SLOT(updateDetails()));
|
||||
|
||||
@@ -93,8 +93,8 @@ QWidget *CommandMappings::createPage(QWidget *parent)
|
||||
|
||||
connect(m_page->filterEdit, SIGNAL(textChanged(QString)),
|
||||
this, SLOT(filterChanged(QString)));
|
||||
connect(m_page->commandList, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
|
||||
this, SLOT(commandChanged(QTreeWidgetItem *)));
|
||||
connect(m_page->commandList, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
|
||||
this, SLOT(commandChanged(QTreeWidgetItem*)));
|
||||
connect(m_page->targetEdit, SIGNAL(textChanged(QString)),
|
||||
this, SLOT(targetIdentifierChanged()));
|
||||
|
||||
|
||||
@@ -215,16 +215,16 @@ NewDialog::NewDialog(QWidget *parent) :
|
||||
|
||||
m_ui->templatesView->setIconSize(QSize(ICON_SIZE, ICON_SIZE));
|
||||
|
||||
connect(m_ui->templateCategoryView, SIGNAL(clicked(const QModelIndex&)),
|
||||
this, SLOT(currentCategoryChanged(const QModelIndex&)));
|
||||
connect(m_ui->templatesView, SIGNAL(clicked(const QModelIndex&)),
|
||||
this, SLOT(currentItemChanged(const QModelIndex&)));
|
||||
connect(m_ui->templateCategoryView, SIGNAL(clicked(QModelIndex)),
|
||||
this, SLOT(currentCategoryChanged(QModelIndex)));
|
||||
connect(m_ui->templatesView, SIGNAL(clicked(QModelIndex)),
|
||||
this, SLOT(currentItemChanged(QModelIndex)));
|
||||
|
||||
connect(m_ui->templateCategoryView->selectionModel(),
|
||||
SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)),
|
||||
this, SLOT(currentCategoryChanged(const QModelIndex&)));
|
||||
SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(currentCategoryChanged(QModelIndex)));
|
||||
connect(m_ui->templatesView,
|
||||
SIGNAL(doubleClicked(const QModelIndex&)),
|
||||
SIGNAL(doubleClicked(QModelIndex)),
|
||||
this, SLOT(okButtonClicked()));
|
||||
|
||||
connect(m_okButton, SIGNAL(clicked()), this, SLOT(okButtonClicked()));
|
||||
@@ -409,8 +409,8 @@ void NewDialog::currentCategoryChanged(const QModelIndex &index)
|
||||
m_ui->templatesView->setCurrentIndex(m_ui->templatesView->rootIndex().child(0,0));
|
||||
|
||||
connect(m_ui->templatesView->selectionModel(),
|
||||
SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)),
|
||||
this, SLOT(currentItemChanged(const QModelIndex&)));
|
||||
SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(currentItemChanged(QModelIndex)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent)
|
||||
this, SLOT(accept()));
|
||||
connect(buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
|
||||
this, SLOT(reject()));
|
||||
connect(editorListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
|
||||
connect(editorListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
|
||||
this, SLOT(accept()));
|
||||
connect(editorListWidget, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
|
||||
this, SLOT(currentItemChanged(QListWidgetItem*,QListWidgetItem*)));
|
||||
|
||||
@@ -293,7 +293,7 @@ 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, SIGNAL(destroyed(QObject*)), m_instance, SLOT(documentDestroyed(QObject*)));
|
||||
d->m_documentsWithoutWatch.append(document);
|
||||
}
|
||||
}
|
||||
@@ -303,7 +303,7 @@ 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, SIGNAL(destroyed(QObject*)), m_instance, SLOT(documentDestroyed(QObject*)));
|
||||
addFileInfo(document);
|
||||
}
|
||||
}
|
||||
@@ -437,7 +437,7 @@ bool DocumentManager::removeDocument(IDocument *document)
|
||||
removeFileInfo(document);
|
||||
disconnect(document, SIGNAL(changed()), m_instance, SLOT(checkForNewFileName()));
|
||||
}
|
||||
disconnect(document, SIGNAL(destroyed(QObject *)), m_instance, SLOT(documentDestroyed(QObject *)));
|
||||
disconnect(document, SIGNAL(destroyed(QObject*)), m_instance, SLOT(documentDestroyed(QObject*)));
|
||||
return addWatcher;
|
||||
}
|
||||
|
||||
|
||||
@@ -148,8 +148,8 @@ EditorManagerPlaceHolder::EditorManagerPlaceHolder(Core::IMode *mode, QWidget *p
|
||||
{
|
||||
setLayout(new QVBoxLayout);
|
||||
layout()->setMargin(0);
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode *)),
|
||||
this, SLOT(currentModeChanged(Core::IMode *)));
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)),
|
||||
this, SLOT(currentModeChanged(Core::IMode*)));
|
||||
|
||||
currentModeChanged(ModeManager::currentMode());
|
||||
}
|
||||
@@ -289,8 +289,8 @@ EditorManager::EditorManager(QWidget *parent) :
|
||||
{
|
||||
m_instance = this;
|
||||
|
||||
connect(ICore::instance(), SIGNAL(contextAboutToChange(Core::IContext *)),
|
||||
this, SLOT(handleContextChange(Core::IContext *)));
|
||||
connect(ICore::instance(), SIGNAL(contextAboutToChange(Core::IContext*)),
|
||||
this, SLOT(handleContextChange(Core::IContext*)));
|
||||
|
||||
const Context editManagerContext(Constants::C_EDITORMANAGER);
|
||||
// combined context for edit & design modes
|
||||
|
||||
@@ -79,7 +79,7 @@ OpenEditorsWindow::OpenEditorsWindow(QWidget *parent) :
|
||||
layout->setMargin(0);
|
||||
layout->addWidget(m_editorList);
|
||||
|
||||
connect(m_editorList, SIGNAL(itemClicked(QTreeWidgetItem*, int)),
|
||||
connect(m_editorList, SIGNAL(itemClicked(QTreeWidgetItem*,int)),
|
||||
this, SLOT(editorClicked(QTreeWidgetItem*)));
|
||||
}
|
||||
|
||||
|
||||
@@ -71,8 +71,8 @@ NavigationWidgetPlaceHolder::NavigationWidgetPlaceHolder(Core::IMode *mode, QWid
|
||||
{
|
||||
setLayout(new QVBoxLayout);
|
||||
layout()->setMargin(0);
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeAboutToChange(Core::IMode *)),
|
||||
this, SLOT(currentModeAboutToChange(Core::IMode *)));
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeAboutToChange(Core::IMode*)),
|
||||
this, SLOT(currentModeAboutToChange(Core::IMode*)));
|
||||
}
|
||||
|
||||
NavigationWidgetPlaceHolder::~NavigationWidgetPlaceHolder()
|
||||
|
||||
@@ -70,8 +70,8 @@ OutputPanePlaceHolder::OutputPanePlaceHolder(Core::IMode *mode, QSplitter* paren
|
||||
sp.setHorizontalStretch(0);
|
||||
setSizePolicy(sp);
|
||||
layout()->setMargin(0);
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode *)),
|
||||
this, SLOT(currentModeChanged(Core::IMode *)));
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)),
|
||||
this, SLOT(currentModeChanged(Core::IMode*)));
|
||||
}
|
||||
|
||||
OutputPanePlaceHolder::~OutputPanePlaceHolder()
|
||||
|
||||
@@ -57,8 +57,8 @@ RightPanePlaceHolder::RightPanePlaceHolder(Core::IMode *mode, QWidget *parent)
|
||||
{
|
||||
setLayout(new QVBoxLayout);
|
||||
layout()->setMargin(0);
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode *)),
|
||||
this, SLOT(currentModeChanged(Core::IMode *)));
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)),
|
||||
this, SLOT(currentModeChanged(Core::IMode*)));
|
||||
}
|
||||
|
||||
RightPanePlaceHolder::~RightPanePlaceHolder()
|
||||
|
||||
@@ -713,8 +713,8 @@ CppModelManager::CppModelManager(QObject *parent)
|
||||
connect(session, SIGNAL(projectAdded(ProjectExplorer::Project*)),
|
||||
this, SLOT(onProjectAdded(ProjectExplorer::Project*)));
|
||||
|
||||
connect(session, SIGNAL(aboutToRemoveProject(ProjectExplorer::Project *)),
|
||||
this, SLOT(onAboutToRemoveProject(ProjectExplorer::Project *)));
|
||||
connect(session, SIGNAL(aboutToRemoveProject(ProjectExplorer::Project*)),
|
||||
this, SLOT(onAboutToRemoveProject(ProjectExplorer::Project*)));
|
||||
|
||||
connect(session, SIGNAL(aboutToUnloadSession(QString)),
|
||||
this, SLOT(onAboutToUnloadSession()));
|
||||
@@ -728,11 +728,11 @@ CppModelManager::CppModelManager(QObject *parent)
|
||||
this, SLOT(onExtraDiagnosticsUpdated(QString)));
|
||||
|
||||
// Listen for editor closed and opened events so that we can keep track of changing files
|
||||
connect(Core::ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor *)),
|
||||
this, SLOT(editorOpened(Core::IEditor *)));
|
||||
connect(Core::ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor*)),
|
||||
this, SLOT(editorOpened(Core::IEditor*)));
|
||||
|
||||
connect(Core::ICore::editorManager(), SIGNAL(editorAboutToClose(Core::IEditor *)),
|
||||
this, SLOT(editorAboutToClose(Core::IEditor *)));
|
||||
connect(Core::ICore::editorManager(), SIGNAL(editorAboutToClose(Core::IEditor*)),
|
||||
this, SLOT(editorAboutToClose(Core::IEditor*)));
|
||||
|
||||
m_completionFallback = new InternalCompletionAssistProvider;
|
||||
m_completionAssistProvider = m_completionFallback;
|
||||
|
||||
@@ -186,7 +186,7 @@ void SymbolsFindFilter::startSearch(Find::SearchResult *search)
|
||||
connect(watcher, SIGNAL(finished()),
|
||||
this, SLOT(finish()));
|
||||
connect(watcher, SIGNAL(resultsReadyAt(int,int)),
|
||||
this, SLOT(addResults(int, int)));
|
||||
this, SLOT(addResults(int,int)));
|
||||
watcher->setFuture(QtConcurrent::run<Find::SearchResultItem, SymbolsFindParameters,
|
||||
CPlusPlus::Snapshot, QSet<QString> >(runSearch, parameters,
|
||||
m_manager->snapshot(), projectFileNames));
|
||||
|
||||
@@ -792,7 +792,7 @@ public slots:
|
||||
void attachToQmlPort();
|
||||
void startRemoteEngine();
|
||||
void attachExternalApplication();
|
||||
Q_SLOT void attachExternalApplication(ProjectExplorer::RunControl *rc);
|
||||
Q_SLOT void attachExternalApplication(ProjectExplorer::RunControl*rc);
|
||||
void runScheduled();
|
||||
void attachCore();
|
||||
void attachToRemoteServer(const QString &spec);
|
||||
@@ -1842,8 +1842,8 @@ void DebuggerPluginPrivate::editorOpened(IEditor *editor)
|
||||
if (!textEditor)
|
||||
return;
|
||||
connect(textEditor,
|
||||
SIGNAL(markRequested(TextEditor::ITextEditor*,int, TextEditor::ITextEditor::MarkRequestKind)),
|
||||
SLOT(requestMark(TextEditor::ITextEditor*,int, TextEditor::ITextEditor::MarkRequestKind)));
|
||||
SIGNAL(markRequested(TextEditor::ITextEditor*,int,TextEditor::ITextEditor::MarkRequestKind)),
|
||||
SLOT(requestMark(TextEditor::ITextEditor*,int,TextEditor::ITextEditor::MarkRequestKind)));
|
||||
connect(textEditor,
|
||||
SIGNAL(markContextMenuRequested(TextEditor::ITextEditor*,int,QMenu*)),
|
||||
SLOT(requestContextMenu(TextEditor::ITextEditor*,int,QMenu*)));
|
||||
|
||||
@@ -157,7 +157,7 @@ void CodaGdbAdapter::setupDeviceSignals()
|
||||
this, SLOT(codaLogMessage(QString)));
|
||||
connect(m_codaDevice.data(), SIGNAL(codaEvent(Coda::CodaEvent)),
|
||||
this, SLOT(codaEvent(Coda::CodaEvent)));
|
||||
connect(SymbianUtils::SymbianDeviceManager::instance(), SIGNAL(deviceRemoved(const SymbianUtils::SymbianDevice)),
|
||||
connect(SymbianUtils::SymbianDeviceManager::instance(), SIGNAL(deviceRemoved(SymbianUtils::SymbianDevice)),
|
||||
this, SLOT(codaDeviceRemoved(SymbianUtils::SymbianDevice)));
|
||||
}
|
||||
|
||||
|
||||
@@ -4627,8 +4627,8 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &settingsIdHint)
|
||||
|
||||
connect(gdbProc(), SIGNAL(error(QProcess::ProcessError)),
|
||||
SLOT(handleGdbError(QProcess::ProcessError)));
|
||||
connect(gdbProc(), SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
SLOT(handleGdbFinished(int, QProcess::ExitStatus)));
|
||||
connect(gdbProc(), SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
SLOT(handleGdbFinished(int,QProcess::ExitStatus)));
|
||||
connect(gdbProc(), SIGNAL(readyReadStandardOutput()),
|
||||
SLOT(readGdbStandardOutput()));
|
||||
connect(gdbProc(), SIGNAL(readyReadStandardError()),
|
||||
|
||||
@@ -95,8 +95,8 @@ LldbEngineGuest::LldbEngineGuest()
|
||||
qRegisterMetaType<lldb::SBEvent *>("lldb::SBEvent *");
|
||||
|
||||
m_worker->moveToThread(&m_wThread);
|
||||
connect(m_worker, SIGNAL(lldbEvent(lldb::SBEvent *)), this,
|
||||
SLOT(lldbEvent(lldb::SBEvent *)), Qt::BlockingQueuedConnection);
|
||||
connect(m_worker, SIGNAL(lldbEvent(lldb::SBEvent*)), this,
|
||||
SLOT(lldbEvent(lldb::SBEvent*)), Qt::BlockingQueuedConnection);
|
||||
m_wThread.start();
|
||||
setObjectName(QLatin1String("LLDBEngineGuest"));
|
||||
}
|
||||
|
||||
@@ -70,10 +70,10 @@ SshIODevice::SshIODevice(Utils::SshRemoteProcessRunner *r)
|
||||
{
|
||||
setOpenMode(QIODevice::ReadWrite | QIODevice::Unbuffered);
|
||||
connect (runner, SIGNAL(processStarted()), this, SLOT(processStarted()));
|
||||
connect(runner, SIGNAL(processOutputAvailable(const QByteArray &)),
|
||||
this, SLOT(outputAvailable(const QByteArray &)));
|
||||
connect(runner, SIGNAL(processErrorOutputAvailable(const QByteArray &)),
|
||||
this, SLOT(errorOutputAvailable(const QByteArray &)));
|
||||
connect(runner, SIGNAL(processOutputAvailable(QByteArray)),
|
||||
this, SLOT(outputAvailable(QByteArray)));
|
||||
connect(runner, SIGNAL(processErrorOutputAvailable(QByteArray)),
|
||||
this, SLOT(errorOutputAvailable(QByteArray)));
|
||||
}
|
||||
|
||||
SshIODevice::~SshIODevice()
|
||||
@@ -158,8 +158,8 @@ LldbEngineHost::LldbEngineHost(const DebuggerStartParameters &startParameters)
|
||||
} else {
|
||||
m_guestProcess = new QProcess(this);
|
||||
|
||||
connect(m_guestProcess, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
this, SLOT(finished(int, QProcess::ExitStatus)));
|
||||
connect(m_guestProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(finished(int,QProcess::ExitStatus)));
|
||||
|
||||
connect(m_guestProcess, SIGNAL(readyReadStandardError()), this,
|
||||
SLOT(stderrReady()));
|
||||
@@ -189,8 +189,8 @@ LldbEngineHost::~LldbEngineHost()
|
||||
showMessage(QLatin1String("tear down qtcreator-lldb"));
|
||||
|
||||
if (m_guestProcess) {
|
||||
disconnect(m_guestProcess, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
this, SLOT(finished (int, QProcess::ExitStatus)));
|
||||
disconnect(m_guestProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(finished(int,QProcess::ExitStatus)));
|
||||
|
||||
|
||||
m_guestProcess->terminate();
|
||||
|
||||
@@ -147,7 +147,7 @@ void MemoryAgent::connectBinEditorWidget(QWidget *w)
|
||||
SIGNAL(startOfFileRequested(Core::IEditor*)),
|
||||
SLOT(handleStartOfFileRequested(Core::IEditor*)));
|
||||
connect(w,
|
||||
SIGNAL(endOfFileRequested(Core::IEditor *)),
|
||||
SIGNAL(endOfFileRequested(Core::IEditor*)),
|
||||
SLOT(handleEndOfFileRequested(Core::IEditor*)));
|
||||
connect(w,
|
||||
SIGNAL(dataChanged(Core::IEditor*,quint64,QByteArray)),
|
||||
|
||||
@@ -161,8 +161,8 @@ void PdbEngine::setupEngine()
|
||||
|
||||
connect(&m_pdbProc, SIGNAL(error(QProcess::ProcessError)),
|
||||
SLOT(handlePdbError(QProcess::ProcessError)));
|
||||
connect(&m_pdbProc, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
SLOT(handlePdbFinished(int, QProcess::ExitStatus)));
|
||||
connect(&m_pdbProc, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
SLOT(handlePdbFinished(int,QProcess::ExitStatus)));
|
||||
connect(&m_pdbProc, SIGNAL(readyReadStandardOutput()),
|
||||
SLOT(readPdbStandardOutput()));
|
||||
connect(&m_pdbProc, SIGNAL(readyReadStandardError()),
|
||||
|
||||
@@ -326,8 +326,8 @@ QmlEngine::QmlEngine(const DebuggerStartParameters &startParameters,
|
||||
SIGNAL(processExited(int)),
|
||||
SLOT(disconnected()));
|
||||
connect(&d->m_applicationLauncher,
|
||||
SIGNAL(appendMessage(QString, Utils::OutputFormat)),
|
||||
SLOT(appendMessage(QString, Utils::OutputFormat)));
|
||||
SIGNAL(appendMessage(QString,Utils::OutputFormat)),
|
||||
SLOT(appendMessage(QString,Utils::OutputFormat)));
|
||||
connect(&d->m_applicationLauncher,
|
||||
SIGNAL(processStarted()),
|
||||
&d->m_noDebugOutputTimer,
|
||||
|
||||
@@ -202,10 +202,10 @@ FormEditorW::FormEditorW() :
|
||||
m_settingsPages.append(settingsPage);
|
||||
}
|
||||
|
||||
connect(Core::ICore::editorManager(), SIGNAL(currentEditorChanged(Core::IEditor *)),
|
||||
this, SLOT(currentEditorChanged(Core::IEditor *)));
|
||||
connect(m_shortcutMapper, SIGNAL(mapped(QObject *)),
|
||||
this, SLOT(updateShortcut(QObject *)));
|
||||
connect(Core::ICore::editorManager(), SIGNAL(currentEditorChanged(Core::IEditor*)),
|
||||
this, SLOT(currentEditorChanged(Core::IEditor*)));
|
||||
connect(m_shortcutMapper, SIGNAL(mapped(QObject*)),
|
||||
this, SLOT(updateShortcut(QObject*)));
|
||||
}
|
||||
|
||||
FormEditorW::~FormEditorW()
|
||||
@@ -606,7 +606,7 @@ void FormEditorW::setupActions()
|
||||
m_actionAboutPlugins->setEnabled(false);
|
||||
|
||||
// FWM
|
||||
connect(m_fwm, SIGNAL(activeFormWindowChanged(QDesignerFormWindowInterface *)), this, SLOT(activeFormWindowChanged(QDesignerFormWindowInterface *)));
|
||||
connect(m_fwm, SIGNAL(activeFormWindowChanged(QDesignerFormWindowInterface*)), this, SLOT(activeFormWindowChanged(QDesignerFormWindowInterface*)));
|
||||
}
|
||||
|
||||
QToolBar *FormEditorW::createEditorToolBar() const
|
||||
|
||||
@@ -111,8 +111,8 @@ QtCreatorIntegration::QtCreatorIntegration(QDesignerFormEditorInterface *core, F
|
||||
setResourceEditingEnabled(false);
|
||||
setSlotNavigationEnabled(true);
|
||||
#endif
|
||||
connect(this, SIGNAL(navigateToSlot(QString, QString, QStringList)),
|
||||
this, SLOT(slotNavigateToSlot(QString, QString, QStringList)));
|
||||
connect(this, SIGNAL(navigateToSlot(QString,QString,QStringList)),
|
||||
this, SLOT(slotNavigateToSlot(QString,QString,QStringList)));
|
||||
connect(this, SIGNAL(helpRequested(QString,QString)),
|
||||
this, SLOT(slotDesignerHelpRequested(QString,QString)));
|
||||
slotSyncSettingsToDesigner();
|
||||
|
||||
@@ -47,7 +47,7 @@ using namespace Find::Internal;
|
||||
CurrentDocumentFind::CurrentDocumentFind()
|
||||
: m_currentFind(0)
|
||||
{
|
||||
connect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)),
|
||||
connect(qApp, SIGNAL(focusChanged(QWidget*,QWidget*)),
|
||||
this, SLOT(updateCandidateFindFilter(QWidget*,QWidget*)));
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
||||
m_ui.findEdit->setPlaceholderText(QString());
|
||||
m_ui.replaceEdit->setPlaceholderText(QString());
|
||||
|
||||
connect(m_ui.findEdit, SIGNAL(textChanged(const QString&)), this, SLOT(invokeFindIncremental()));
|
||||
connect(m_ui.findEdit, SIGNAL(textChanged(QString)), this, SLOT(invokeFindIncremental()));
|
||||
connect(m_ui.findEdit, SIGNAL(returnPressed()), this, SLOT(invokeFindEnter()));
|
||||
connect(m_ui.replaceEdit, SIGNAL(returnPressed()), this, SLOT(invokeReplaceEnter()));
|
||||
|
||||
@@ -414,12 +414,12 @@ QString FindToolBar::getReplaceText()
|
||||
|
||||
void FindToolBar::setFindText(const QString &text)
|
||||
{
|
||||
disconnect(m_ui.findEdit, SIGNAL(textChanged(const QString&)), this, SLOT(invokeFindIncremental()));
|
||||
disconnect(m_ui.findEdit, SIGNAL(textChanged(QString)), this, SLOT(invokeFindIncremental()));
|
||||
if (hasFindFlag(Find::FindRegularExpression))
|
||||
m_ui.findEdit->setText(QRegExp::escape(text));
|
||||
else
|
||||
m_ui.findEdit->setText(text);
|
||||
connect(m_ui.findEdit, SIGNAL(textChanged(const QString&)), this, SLOT(invokeFindIncremental()));
|
||||
connect(m_ui.findEdit, SIGNAL(textChanged(QString)), this, SLOT(invokeFindIncremental()));
|
||||
}
|
||||
|
||||
void FindToolBar::selectFindText()
|
||||
|
||||
@@ -105,8 +105,8 @@ bool GenericProjectPlugin::initialize(const QStringList &, QString *errorMessage
|
||||
connect(m_editFilesAction, SIGNAL(triggered()), this, SLOT(editFiles()));
|
||||
|
||||
connect(ProjectExplorer::ProjectExplorerPlugin::instance(),
|
||||
SIGNAL(aboutToShowContextMenu(ProjectExplorer::Project*, ProjectExplorer::Node*)),
|
||||
this, SLOT(updateContextMenu(ProjectExplorer::Project*, ProjectExplorer::Node*)));
|
||||
SIGNAL(aboutToShowContextMenu(ProjectExplorer::Project*,ProjectExplorer::Node*)),
|
||||
this, SLOT(updateContextMenu(ProjectExplorer::Project*,ProjectExplorer::Node*)));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -80,10 +80,10 @@ QWidget *FilterSettingsPage::createPage(QWidget *parent)
|
||||
|
||||
updateFilterPage();
|
||||
|
||||
connect(m_ui.attributeWidget, SIGNAL(itemChanged(QTreeWidgetItem*, int)),
|
||||
connect(m_ui.attributeWidget, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
|
||||
this, SLOT(updateFilterMap()));
|
||||
connect(m_ui.filterWidget,
|
||||
SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)), this,
|
||||
SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), this,
|
||||
SLOT(updateAttributes(QListWidgetItem*)));
|
||||
connect(m_ui.filterAddButton, SIGNAL(clicked()), this, SLOT(addFilter()));
|
||||
connect(m_ui.filterRemoveButton, SIGNAL(clicked()), this,
|
||||
|
||||
@@ -360,7 +360,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
|
||||
|
||||
QDesktopServices::setUrlHandler("qthelp", this, "handleHelpRequest");
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*,
|
||||
Core::IMode*)), this, SLOT(modeChanged(Core::IMode*, Core::IMode*)));
|
||||
Core::IMode*)), this, SLOT(modeChanged(Core::IMode*,Core::IMode*)));
|
||||
|
||||
m_externalWindow = new ExternalHelpWindow;
|
||||
m_mode = new HelpMode;
|
||||
@@ -426,8 +426,8 @@ void HelpPlugin::setupUi()
|
||||
|
||||
connect(indexWindow, SIGNAL(linkActivated(QUrl)), m_centralWidget,
|
||||
SLOT(setSource(QUrl)));
|
||||
connect(indexWindow, SIGNAL(linksActivated(QMap<QString, QUrl>, QString)),
|
||||
m_centralWidget, SLOT(showTopicChooser(QMap<QString, QUrl>, QString)));
|
||||
connect(indexWindow, SIGNAL(linksActivated(QMap<QString,QUrl>,QString)),
|
||||
m_centralWidget, SLOT(showTopicChooser(QMap<QString,QUrl>,QString)));
|
||||
|
||||
QMap<QString, Core::Command*> shortcutMap;
|
||||
QShortcut *shortcut = new QShortcut(m_splitter);
|
||||
|
||||
@@ -49,8 +49,8 @@ ExecuteFilter::ExecuteFilter()
|
||||
|
||||
m_process = new Utils::QtcProcess(this);
|
||||
m_process->setEnvironment(Utils::Environment::systemEnvironment());
|
||||
connect(m_process, SIGNAL(finished(int, QProcess::ExitStatus)), this,
|
||||
SLOT(finished(int, QProcess::ExitStatus)));
|
||||
connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)), this,
|
||||
SLOT(finished(int,QProcess::ExitStatus)));
|
||||
connect(m_process, SIGNAL(readyReadStandardOutput()), this, SLOT(readStandardOutput()));
|
||||
connect(m_process, SIGNAL(readyReadStandardError()), this, SLOT(readStandardError()));
|
||||
|
||||
|
||||
@@ -338,7 +338,7 @@ LocatorWidget::LocatorWidget(LocatorPlugin *qop) :
|
||||
|
||||
connect(m_refreshAction, SIGNAL(triggered()), m_locatorPlugin, SLOT(refresh()));
|
||||
connect(m_configureAction, SIGNAL(triggered()), this, SLOT(showConfigureDialog()));
|
||||
connect(m_fileLineEdit, SIGNAL(textChanged(const QString&)),
|
||||
connect(m_fileLineEdit, SIGNAL(textChanged(QString)),
|
||||
this, SLOT(showPopup()));
|
||||
connect(m_completionList, SIGNAL(activated(QModelIndex)),
|
||||
this, SLOT(scheduleAcceptCurrentEntry()));
|
||||
|
||||
@@ -85,8 +85,8 @@ QWidget *SettingsPage::createPage(QWidget *parent)
|
||||
m_ui.setupUi(m_page);
|
||||
connect(m_ui.filterList, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
|
||||
this, SLOT(updateButtonStates()));
|
||||
connect(m_ui.filterList, SIGNAL(itemActivated(QListWidgetItem *)),
|
||||
this, SLOT(configureFilter(QListWidgetItem *)));
|
||||
connect(m_ui.filterList, SIGNAL(itemActivated(QListWidgetItem*)),
|
||||
this, SLOT(configureFilter(QListWidgetItem*)));
|
||||
connect(m_ui.editButton, SIGNAL(clicked()),
|
||||
this, SLOT(configureFilter()));
|
||||
connect(m_ui.addButton, SIGNAL(clicked()),
|
||||
|
||||
@@ -61,8 +61,8 @@ static quint8 ACTIONNAME = 0;
|
||||
ActionMacroHandler::ActionMacroHandler():
|
||||
m_mapper(new QSignalMapper(this))
|
||||
{
|
||||
connect(m_mapper, SIGNAL(mapped(const QString &)),
|
||||
this, SLOT(addActionEvent(const QString &)));
|
||||
connect(m_mapper, SIGNAL(mapped(QString)),
|
||||
this, SLOT(addActionEvent(QString)));
|
||||
|
||||
const Core::ActionManager *am = Core::ICore::actionManager();
|
||||
connect(am, SIGNAL(commandAdded(QString)),
|
||||
|
||||
@@ -132,7 +132,7 @@ private:
|
||||
void cancelInstallation();
|
||||
void handleInstallationSuccess();
|
||||
|
||||
Q_SLOT void handleFileCopied(const RemoteLinux::DeployableFile &deployable);
|
||||
Q_SLOT void handleFileCopied(const RemoteLinux::DeployableFile&deployable);
|
||||
|
||||
MaemoRemoteCopyFacility * const m_copyFacility;
|
||||
mutable QList<DeployableFile> m_filesToCopy;
|
||||
|
||||
@@ -72,8 +72,8 @@ MaemoDeployConfigurationWidget::MaemoDeployConfigurationWidget(QWidget *parent)
|
||||
mainLayout->addStretch(1);
|
||||
|
||||
connect(m_remoteLinuxWidget,
|
||||
SIGNAL(currentModelChanged(const RemoteLinux::DeployableFilesPerProFile *)),
|
||||
SLOT(handleCurrentModelChanged(const RemoteLinux::DeployableFilesPerProFile *)));
|
||||
SIGNAL(currentModelChanged(const RemoteLinux::DeployableFilesPerProFile*)),
|
||||
SLOT(handleCurrentModelChanged(const RemoteLinux::DeployableFilesPerProFile*)));
|
||||
handleCurrentModelChanged(m_remoteLinuxWidget->currentModel());
|
||||
}
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ private:
|
||||
m_keyDeployer->deployPublicKey(sshParams, m_wizardData.publicKeyFilePath);
|
||||
}
|
||||
|
||||
Q_SLOT void handleKeyDeploymentError(const QString &errorMsg)
|
||||
Q_SLOT void handleKeyDeploymentError(const QString&errorMsg)
|
||||
{
|
||||
QMessageBox::critical(this, tr("Key Deployment Failure"), errorMsg);
|
||||
enableInput();
|
||||
|
||||
@@ -57,8 +57,8 @@ void MaemoPublishingResultPageFremantleFree::initializePage()
|
||||
connect(cancelButton(), SIGNAL(clicked()), SLOT(handleCancelRequest()));
|
||||
connect(m_publisher, SIGNAL(finished()), SLOT(handleFinished()));
|
||||
connect(m_publisher,
|
||||
SIGNAL(progressReport(QString, MaemoPublisherFremantleFree::OutputType)),
|
||||
SLOT(handleProgress(QString, MaemoPublisherFremantleFree::OutputType)));
|
||||
SIGNAL(progressReport(QString,MaemoPublisherFremantleFree::OutputType)),
|
||||
SLOT(handleProgress(QString,MaemoPublisherFremantleFree::OutputType)));
|
||||
m_publisher->publish();
|
||||
}
|
||||
|
||||
|
||||
@@ -122,14 +122,14 @@ MaemoQemuManager::MaemoQemuManager(QObject *parent)
|
||||
|
||||
connect(m_qemuProcess, SIGNAL(error(QProcess::ProcessError)), this,
|
||||
SLOT(qemuProcessError(QProcess::ProcessError)));
|
||||
connect(m_qemuProcess, SIGNAL(finished(int, QProcess::ExitStatus)), this,
|
||||
connect(m_qemuProcess, SIGNAL(finished(int,QProcess::ExitStatus)), this,
|
||||
SLOT(qemuProcessFinished()));
|
||||
connect(m_qemuProcess, SIGNAL(readyReadStandardOutput()), this,
|
||||
SLOT(qemuOutput()));
|
||||
connect(m_qemuProcess, SIGNAL(readyReadStandardError()), this,
|
||||
SLOT(qemuOutput()));
|
||||
connect(this, SIGNAL(qemuProcessStatus(QemuStatus, QString)),
|
||||
this, SLOT(qemuStatusChanged(QemuStatus, QString)));
|
||||
connect(this, SIGNAL(qemuProcessStatus(QemuStatus,QString)),
|
||||
this, SLOT(qemuStatusChanged(QemuStatus,QString)));
|
||||
}
|
||||
|
||||
Utils::FileSystemWatcher *MaemoQemuManager::runtimeRootWatcher()
|
||||
|
||||
@@ -71,11 +71,11 @@ MaemoRunConfiguration::MaemoRunConfiguration(AbstractQt4MaemoTarget *parent,
|
||||
void MaemoRunConfiguration::init()
|
||||
{
|
||||
m_remoteMounts = new MaemoRemoteMountsModel(this);
|
||||
connect(m_remoteMounts, SIGNAL(rowsInserted(QModelIndex, int, int)), this,
|
||||
connect(m_remoteMounts, SIGNAL(rowsInserted(QModelIndex,int,int)), this,
|
||||
SLOT(handleRemoteMountsChanged()));
|
||||
connect(m_remoteMounts, SIGNAL(rowsRemoved(QModelIndex, int, int)), this,
|
||||
connect(m_remoteMounts, SIGNAL(rowsRemoved(QModelIndex,int,int)), this,
|
||||
SLOT(handleRemoteMountsChanged()));
|
||||
connect(m_remoteMounts, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this,
|
||||
connect(m_remoteMounts, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this,
|
||||
SLOT(handleRemoteMountsChanged()));
|
||||
connect(m_remoteMounts, SIGNAL(modelReset()), SLOT(handleRemoteMountsChanged()));
|
||||
|
||||
|
||||
@@ -126,8 +126,8 @@ void AbstractProcessStep::setOutputParser(ProjectExplorer::IOutputParser *parser
|
||||
m_outputParserChain = parser;
|
||||
|
||||
if (m_outputParserChain) {
|
||||
connect(parser, SIGNAL(addOutput(QString, ProjectExplorer::BuildStep::OutputFormat)),
|
||||
this, SLOT(outputAdded(QString, ProjectExplorer::BuildStep::OutputFormat)));
|
||||
connect(parser, SIGNAL(addOutput(QString,ProjectExplorer::BuildStep::OutputFormat)),
|
||||
this, SLOT(outputAdded(QString,ProjectExplorer::BuildStep::OutputFormat)));
|
||||
connect(parser, SIGNAL(addTask(ProjectExplorer::Task)),
|
||||
this, SLOT(taskAdded(ProjectExplorer::Task)));
|
||||
}
|
||||
@@ -204,8 +204,8 @@ void AbstractProcessStep::run(QFutureInterface<bool> &fi)
|
||||
this, SLOT(processReadyReadStdError()),
|
||||
Qt::DirectConnection);
|
||||
|
||||
connect(m_process, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
this, SLOT(slotProcessFinished(int, QProcess::ExitStatus)),
|
||||
connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(slotProcessFinished(int,QProcess::ExitStatus)),
|
||||
Qt::DirectConnection);
|
||||
|
||||
m_process->setCommand(m_param.effectiveCommand(), m_param.effectiveArguments());
|
||||
|
||||
@@ -105,8 +105,8 @@ ApplicationLauncher::ApplicationLauncher(QObject *parent)
|
||||
this, SLOT(readStandardOutput()));
|
||||
connect(&d->m_guiProcess, SIGNAL(error(QProcess::ProcessError)),
|
||||
this, SLOT(guiProcessError()));
|
||||
connect(&d->m_guiProcess, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
this, SLOT(processDone(int, QProcess::ExitStatus)));
|
||||
connect(&d->m_guiProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(processDone(int,QProcess::ExitStatus)));
|
||||
connect(&d->m_guiProcess, SIGNAL(started()),
|
||||
this, SLOT(bringToForeground()));
|
||||
|
||||
|
||||
@@ -132,11 +132,11 @@ BuildManager::BuildManager(ProjectExplorerPlugin *parent)
|
||||
this, SLOT(progressChanged()));
|
||||
connect(&d->m_watcher, SIGNAL(progressTextChanged(QString)),
|
||||
this, SLOT(progressTextChanged()));
|
||||
connect(&d->m_watcher, SIGNAL(progressRangeChanged(int, int)),
|
||||
connect(&d->m_watcher, SIGNAL(progressRangeChanged(int,int)),
|
||||
this, SLOT(progressChanged()));
|
||||
|
||||
connect(parent->session(), SIGNAL(aboutToRemoveProject(ProjectExplorer::Project *)),
|
||||
this, SLOT(aboutToRemoveProject(ProjectExplorer::Project *)));
|
||||
connect(parent->session(), SIGNAL(aboutToRemoveProject(ProjectExplorer::Project*)),
|
||||
this, SLOT(aboutToRemoveProject(ProjectExplorer::Project*)));
|
||||
|
||||
d->m_outputWindow = new Internal::CompileOutputWindow(this);
|
||||
pm->addObject(d->m_outputWindow);
|
||||
@@ -499,8 +499,8 @@ bool BuildManager::buildQueueAppend(QList<BuildStep *> steps, QStringList names)
|
||||
BuildStep *bs = steps.at(i);
|
||||
connect(bs, SIGNAL(addTask(ProjectExplorer::Task)),
|
||||
this, SLOT(addToTaskWindow(ProjectExplorer::Task)));
|
||||
connect(bs, SIGNAL(addOutput(QString, ProjectExplorer::BuildStep::OutputFormat, ProjectExplorer::BuildStep::OutputNewlineSetting)),
|
||||
this, SLOT(addToOutputWindow(QString, ProjectExplorer::BuildStep::OutputFormat, ProjectExplorer::BuildStep::OutputNewlineSetting)));
|
||||
connect(bs, SIGNAL(addOutput(QString,ProjectExplorer::BuildStep::OutputFormat,ProjectExplorer::BuildStep::OutputNewlineSetting)),
|
||||
this, SLOT(addToOutputWindow(QString,ProjectExplorer::BuildStep::OutputFormat,ProjectExplorer::BuildStep::OutputNewlineSetting)));
|
||||
if (bs->enabled()) {
|
||||
init = bs->init();
|
||||
if (!init)
|
||||
|
||||
@@ -122,8 +122,8 @@ CustomExecutableConfigurationWidget::CustomExecutableConfigurationWidget(CustomE
|
||||
|
||||
connect(m_executableChooser, SIGNAL(changed(QString)),
|
||||
this, SLOT(executableEdited()));
|
||||
connect(m_commandLineArgumentsLineEdit, SIGNAL(textEdited(const QString&)),
|
||||
this, SLOT(argumentsEdited(const QString&)));
|
||||
connect(m_commandLineArgumentsLineEdit, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(argumentsEdited(QString)));
|
||||
connect(m_workingDirectory, SIGNAL(changed(QString)),
|
||||
this, SLOT(workingDirectoryEdited()));
|
||||
connect(m_useTerminalCheck, SIGNAL(toggled(bool)),
|
||||
|
||||
@@ -139,7 +139,7 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent, QWidget *additionalDetails
|
||||
|
||||
vbox->addWidget(d->m_detailsContainer);
|
||||
|
||||
connect(d->m_model, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)),
|
||||
connect(d->m_model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(updateButtons()));
|
||||
|
||||
connect(d->m_editButton, SIGNAL(clicked(bool)),
|
||||
|
||||
@@ -164,8 +164,8 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent)
|
||||
setLayout(layout);
|
||||
|
||||
// connections
|
||||
connect(m_listView, SIGNAL(activated(const QModelIndex&)),
|
||||
this, SLOT(slotOpenItem(const QModelIndex&)));
|
||||
connect(m_listView, SIGNAL(activated(QModelIndex)),
|
||||
this, SLOT(slotOpenItem(QModelIndex)));
|
||||
|
||||
setAutoSynchronization(true);
|
||||
}
|
||||
|
||||
@@ -534,13 +534,13 @@ MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorActi
|
||||
this, SLOT(projectRemoved(ProjectExplorer::Project*)));
|
||||
|
||||
connect(m_listWidgets[TARGET], SIGNAL(changeActiveProjectConfiguration(ProjectExplorer::ProjectConfiguration*)),
|
||||
this, SLOT(setActiveTarget(ProjectExplorer::ProjectConfiguration *)));
|
||||
this, SLOT(setActiveTarget(ProjectExplorer::ProjectConfiguration*)));
|
||||
connect(m_listWidgets[BUILD], SIGNAL(changeActiveProjectConfiguration(ProjectExplorer::ProjectConfiguration*)),
|
||||
this, SLOT(setActiveBuildConfiguration(ProjectExplorer::ProjectConfiguration *)));
|
||||
this, SLOT(setActiveBuildConfiguration(ProjectExplorer::ProjectConfiguration*)));
|
||||
connect(m_listWidgets[DEPLOY], SIGNAL(changeActiveProjectConfiguration(ProjectExplorer::ProjectConfiguration*)),
|
||||
this, SLOT(setActiveDeployConfiguration(ProjectExplorer::ProjectConfiguration *)));
|
||||
this, SLOT(setActiveDeployConfiguration(ProjectExplorer::ProjectConfiguration*)));
|
||||
connect(m_listWidgets[RUN], SIGNAL(changeActiveProjectConfiguration(ProjectExplorer::ProjectConfiguration*)),
|
||||
this, SLOT(setActiveRunConfiguration(ProjectExplorer::ProjectConfiguration *)));
|
||||
this, SLOT(setActiveRunConfiguration(ProjectExplorer::ProjectConfiguration*)));
|
||||
}
|
||||
|
||||
void MiniProjectTargetSelector::setActiveTarget(ProjectExplorer::ProjectConfiguration *pc)
|
||||
|
||||
@@ -263,7 +263,7 @@ ProcessStepConfigWidget::ProcessStepConfigWidget(ProcessStep *step)
|
||||
connect(m_ui.workingDirectory, SIGNAL(changed(QString)),
|
||||
this, SLOT(workingDirectoryLineEditTextEdited()));
|
||||
|
||||
connect(m_ui.commandArgumentsLineEdit, SIGNAL(textEdited(const QString&)),
|
||||
connect(m_ui.commandArgumentsLineEdit, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(commandArgumentsLineEditTextEdited()));
|
||||
}
|
||||
|
||||
|
||||
@@ -343,17 +343,17 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
|
||||
d->m_session = new SessionManager(this);
|
||||
|
||||
connect(d->m_session, SIGNAL(projectAdded(ProjectExplorer::Project *)),
|
||||
connect(d->m_session, SIGNAL(projectAdded(ProjectExplorer::Project*)),
|
||||
this, SIGNAL(fileListChanged()));
|
||||
connect(d->m_session, SIGNAL(aboutToRemoveProject(ProjectExplorer::Project *)),
|
||||
this, SLOT(invalidateProject(ProjectExplorer::Project *)));
|
||||
connect(d->m_session, SIGNAL(projectRemoved(ProjectExplorer::Project *)),
|
||||
connect(d->m_session, SIGNAL(aboutToRemoveProject(ProjectExplorer::Project*)),
|
||||
this, SLOT(invalidateProject(ProjectExplorer::Project*)));
|
||||
connect(d->m_session, SIGNAL(projectRemoved(ProjectExplorer::Project*)),
|
||||
this, SIGNAL(fileListChanged()));
|
||||
connect(d->m_session, SIGNAL(projectAdded(ProjectExplorer::Project*)),
|
||||
this, SLOT(projectAdded(ProjectExplorer::Project*)));
|
||||
connect(d->m_session, SIGNAL(projectRemoved(ProjectExplorer::Project*)),
|
||||
this, SLOT(projectRemoved(ProjectExplorer::Project*)));
|
||||
connect(d->m_session, SIGNAL(startupProjectChanged(ProjectExplorer::Project *)),
|
||||
connect(d->m_session, SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
||||
this, SLOT(startupProjectChanged()));
|
||||
connect(d->m_session, SIGNAL(dependencyChanged(ProjectExplorer::Project*,ProjectExplorer::Project*)),
|
||||
this, SLOT(updateActions()));
|
||||
@@ -377,8 +377,8 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
addAutoReleasedObject(new VcsAnnotateTaskHandler);
|
||||
|
||||
d->m_buildManager = new BuildManager(this);
|
||||
connect(d->m_buildManager, SIGNAL(buildStateChanged(ProjectExplorer::Project *)),
|
||||
this, SLOT(buildStateChanged(ProjectExplorer::Project *)));
|
||||
connect(d->m_buildManager, SIGNAL(buildStateChanged(ProjectExplorer::Project*)),
|
||||
this, SLOT(buildStateChanged(ProjectExplorer::Project*)));
|
||||
connect(d->m_buildManager, SIGNAL(buildQueueFinished(bool)),
|
||||
this, SLOT(buildQueueFinished(bool)));
|
||||
|
||||
@@ -386,7 +386,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
|
||||
d->m_outputPane = new AppOutputPane;
|
||||
addAutoReleasedObject(d->m_outputPane);
|
||||
connect(d->m_session, SIGNAL(projectRemoved(ProjectExplorer::Project *)),
|
||||
connect(d->m_session, SIGNAL(projectRemoved(ProjectExplorer::Project*)),
|
||||
d->m_outputPane, SLOT(projectRemoved()));
|
||||
|
||||
connect(d->m_outputPane, SIGNAL(runControlStarted(ProjectExplorer::RunControl*)),
|
||||
@@ -517,7 +517,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
d->m_openWithMenu = openWith->menu();
|
||||
d->m_openWithMenu->setTitle(tr("Open With"));
|
||||
|
||||
connect(d->m_openWithMenu, SIGNAL(triggered(QAction *)),
|
||||
connect(d->m_openWithMenu, SIGNAL(triggered(QAction*)),
|
||||
Core::DocumentManager::instance(), SLOT(slotExecuteOpenWithMenuAction(QAction*)));
|
||||
|
||||
//
|
||||
@@ -1468,8 +1468,8 @@ void ProjectExplorerPlugin::restoreSession()
|
||||
|
||||
// update welcome page
|
||||
connect(Core::ModeManager::instance(),
|
||||
SIGNAL(currentModeChanged(Core::IMode*, Core::IMode*)),
|
||||
SLOT(currentModeChanged(Core::IMode*, Core::IMode*)));
|
||||
SIGNAL(currentModeChanged(Core::IMode*,Core::IMode*)),
|
||||
SLOT(currentModeChanged(Core::IMode*,Core::IMode*)));
|
||||
connect(d->m_welcomePage, SIGNAL(requestSession(QString)), this, SLOT(loadSession(QString)));
|
||||
connect(d->m_welcomePage, SIGNAL(requestProject(QString)), this, SLOT(openProjectWelcomePage(QString)));
|
||||
|
||||
@@ -2831,7 +2831,7 @@ void ProjectExplorerPlugin::updateSessionMenu()
|
||||
{
|
||||
d->m_sessionMenu->clear();
|
||||
QActionGroup *ag = new QActionGroup(d->m_sessionMenu);
|
||||
connect(ag, SIGNAL(triggered(QAction *)), this, SLOT(setSession(QAction *)));
|
||||
connect(ag, SIGNAL(triggered(QAction*)), this, SLOT(setSession(QAction*)));
|
||||
const QString &activeSession = d->m_session->activeSession();
|
||||
foreach (const QString &session, d->m_session->sessions()) {
|
||||
QAction *act = ag->addAction(session);
|
||||
|
||||
@@ -168,23 +168,23 @@ FlatModel::FlatModel(SessionNode *rootNode, QObject *parent)
|
||||
connect(watcher, SIGNAL(hasBuildTargetsChanged(ProjectExplorer::ProjectNode*)),
|
||||
this, SLOT(hasBuildTargetsChanged(ProjectExplorer::ProjectNode*)));
|
||||
|
||||
connect(watcher, SIGNAL(foldersAboutToBeAdded(FolderNode *, const QList<FolderNode*> &)),
|
||||
this, SLOT(foldersAboutToBeAdded(FolderNode *, const QList<FolderNode*> &)));
|
||||
connect(watcher, SIGNAL(foldersAboutToBeAdded(FolderNode*,QList<FolderNode*>)),
|
||||
this, SLOT(foldersAboutToBeAdded(FolderNode*,QList<FolderNode*>)));
|
||||
connect(watcher, SIGNAL(foldersAdded()),
|
||||
this, SLOT(foldersAdded()));
|
||||
|
||||
connect(watcher, SIGNAL(foldersAboutToBeRemoved(FolderNode *, const QList<FolderNode*> &)),
|
||||
this, SLOT(foldersAboutToBeRemoved(FolderNode *, const QList<FolderNode*> &)));
|
||||
connect(watcher, SIGNAL(foldersAboutToBeRemoved(FolderNode*,QList<FolderNode*>)),
|
||||
this, SLOT(foldersAboutToBeRemoved(FolderNode*,QList<FolderNode*>)));
|
||||
connect(watcher, SIGNAL(foldersRemoved()),
|
||||
this, SLOT(foldersRemoved()));
|
||||
|
||||
connect(watcher, SIGNAL(filesAboutToBeAdded(FolderNode *,const QList<FileNode*> &)),
|
||||
this, SLOT(filesAboutToBeAdded(FolderNode *, const QList<FileNode *> &)));
|
||||
connect(watcher, SIGNAL(filesAboutToBeAdded(FolderNode*,QList<FileNode*>)),
|
||||
this, SLOT(filesAboutToBeAdded(FolderNode*,QList<FileNode*>)));
|
||||
connect(watcher, SIGNAL(filesAdded()),
|
||||
this, SLOT(filesAdded()));
|
||||
|
||||
connect(watcher, SIGNAL(filesAboutToBeRemoved(FolderNode *, const QList<FileNode*> &)),
|
||||
this, SLOT(filesAboutToBeRemoved(FolderNode *, const QList<FileNode*> &)));
|
||||
connect(watcher, SIGNAL(filesAboutToBeRemoved(FolderNode*,QList<FileNode*>)),
|
||||
this, SLOT(filesAboutToBeRemoved(FolderNode*,QList<FileNode*>)));
|
||||
connect(watcher, SIGNAL(filesRemoved()),
|
||||
this, SLOT(filesRemoved()));
|
||||
}
|
||||
|
||||
@@ -300,8 +300,8 @@ void ProjectNode::registerWatcher(NodesWatcher *watcher)
|
||||
{
|
||||
if (!watcher)
|
||||
return;
|
||||
connect(watcher, SIGNAL(destroyed(QObject *)),
|
||||
this, SLOT(watcherDestroyed(QObject *)));
|
||||
connect(watcher, SIGNAL(destroyed(QObject*)),
|
||||
this, SLOT(watcherDestroyed(QObject*)));
|
||||
m_watchers.append(watcher);
|
||||
foreach (ProjectNode *subProject, m_subProjectNodes)
|
||||
subProject->registerWatcher(watcher);
|
||||
|
||||
@@ -110,10 +110,10 @@ ProjectTreeWidget::ProjectTreeWidget(QWidget *parent)
|
||||
NodesWatcher *watcher = new NodesWatcher(this);
|
||||
m_explorer->session()->sessionNode()->registerWatcher(watcher);
|
||||
|
||||
connect(watcher, SIGNAL(foldersAboutToBeRemoved(FolderNode *, const QList<FolderNode*> &)),
|
||||
this, SLOT(foldersAboutToBeRemoved(FolderNode *, const QList<FolderNode*> &)));
|
||||
connect(watcher, SIGNAL(filesAboutToBeRemoved(FolderNode *, const QList<FileNode*> &)),
|
||||
this, SLOT(filesAboutToBeRemoved(FolderNode *, const QList<FileNode*> &)));
|
||||
connect(watcher, SIGNAL(foldersAboutToBeRemoved(FolderNode*,QList<FolderNode*>)),
|
||||
this, SLOT(foldersAboutToBeRemoved(FolderNode*,QList<FolderNode*>)));
|
||||
connect(watcher, SIGNAL(filesAboutToBeRemoved(FolderNode*,QList<FileNode*>)),
|
||||
this, SLOT(filesAboutToBeRemoved(FolderNode*,QList<FileNode*>)));
|
||||
|
||||
m_view = new ProjectTreeView;
|
||||
m_view->setModel(m_model);
|
||||
@@ -138,16 +138,16 @@ ProjectTreeWidget::ProjectTreeWidget(QWidget *parent)
|
||||
// connections
|
||||
connect(m_model, SIGNAL(modelReset()),
|
||||
this, SLOT(initView()));
|
||||
connect(m_view, SIGNAL(activated(const QModelIndex&)),
|
||||
this, SLOT(openItem(const QModelIndex&)));
|
||||
connect(m_view->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)),
|
||||
this, SLOT(handleCurrentItemChange(const QModelIndex&)));
|
||||
connect(m_view, SIGNAL(customContextMenuRequested(const QPoint&)),
|
||||
this, SLOT(showContextMenu(const QPoint&)));
|
||||
connect(m_explorer->session(), SIGNAL(singleProjectAdded(ProjectExplorer::Project *)),
|
||||
this, SLOT(handleProjectAdded(ProjectExplorer::Project *)));
|
||||
connect(m_explorer->session(), SIGNAL(startupProjectChanged(ProjectExplorer::Project *)),
|
||||
this, SLOT(startupProjectChanged(ProjectExplorer::Project *)));
|
||||
connect(m_view, SIGNAL(activated(QModelIndex)),
|
||||
this, SLOT(openItem(QModelIndex)));
|
||||
connect(m_view->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(handleCurrentItemChange(QModelIndex)));
|
||||
connect(m_view, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
this, SLOT(showContextMenu(QPoint)));
|
||||
connect(m_explorer->session(), SIGNAL(singleProjectAdded(ProjectExplorer::Project*)),
|
||||
this, SLOT(handleProjectAdded(ProjectExplorer::Project*)));
|
||||
connect(m_explorer->session(), SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
||||
this, SLOT(startupProjectChanged(ProjectExplorer::Project*)));
|
||||
|
||||
connect(m_explorer->session(), SIGNAL(aboutToLoadSession(QString)),
|
||||
this, SLOT(disableAutoExpand()));
|
||||
@@ -260,13 +260,13 @@ void ProjectTreeWidget::setAutoSynchronization(bool sync, bool syncNow)
|
||||
if (debug)
|
||||
qDebug() << (m_autoSync ? "Enabling auto synchronization" : "Disabling auto synchronization");
|
||||
if (m_autoSync) {
|
||||
connect(m_explorer, SIGNAL(currentNodeChanged(ProjectExplorer::Node*, ProjectExplorer::Project*)),
|
||||
this, SLOT(setCurrentItem(ProjectExplorer::Node*, ProjectExplorer::Project*)));
|
||||
connect(m_explorer, SIGNAL(currentNodeChanged(ProjectExplorer::Node*,ProjectExplorer::Project*)),
|
||||
this, SLOT(setCurrentItem(ProjectExplorer::Node*,ProjectExplorer::Project*)));
|
||||
if (syncNow)
|
||||
setCurrentItem(m_explorer->currentNode(), ProjectExplorerPlugin::currentProject());
|
||||
} else {
|
||||
disconnect(m_explorer, SIGNAL(currentNodeChanged(ProjectExplorer::Node*, ProjectExplorer::Project*)),
|
||||
this, SLOT(setCurrentItem(ProjectExplorer::Node*, ProjectExplorer::Project*)));
|
||||
disconnect(m_explorer, SIGNAL(currentNodeChanged(ProjectExplorer::Node*,ProjectExplorer::Project*)),
|
||||
this, SLOT(setCurrentItem(ProjectExplorer::Node*,ProjectExplorer::Project*)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ ProjectWindow::ProjectWindow(QWidget *parent)
|
||||
this, SLOT(deregisterProject(ProjectExplorer::Project*)));
|
||||
|
||||
connect(session, SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
||||
this, SLOT(startupProjectChanged(ProjectExplorer::Project *)));
|
||||
this, SLOT(startupProjectChanged(ProjectExplorer::Project*)));
|
||||
|
||||
// Update properties to empty project for now:
|
||||
showProperties(-1, -1);
|
||||
@@ -269,8 +269,8 @@ void ProjectWindow::extensionsInitialized()
|
||||
QList<IProjectPanelFactory *> list = ExtensionSystem::PluginManager::instance()->getObjects<IProjectPanelFactory>();
|
||||
qSort(list.begin(), list.end(), &IPanelFactory::prioritySort);
|
||||
foreach (IProjectPanelFactory *fac, list)
|
||||
connect (fac, SIGNAL(projectUpdated(ProjectExplorer::Project *)),
|
||||
this, SLOT(projectUpdated(ProjectExplorer::Project *)));
|
||||
connect (fac, SIGNAL(projectUpdated(ProjectExplorer::Project*)),
|
||||
this, SLOT(projectUpdated(ProjectExplorer::Project*)));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -100,9 +100,9 @@ SessionManager::SessionManager(QObject *parent)
|
||||
|
||||
EditorManager *em = ICore::editorManager();
|
||||
|
||||
connect(em, SIGNAL(editorCreated(Core::IEditor *, QString)),
|
||||
this, SLOT(configureEditor(Core::IEditor *, QString)));
|
||||
connect(ProjectExplorerPlugin::instance(), SIGNAL(currentProjectChanged(ProjectExplorer::Project *)),
|
||||
connect(em, SIGNAL(editorCreated(Core::IEditor*,QString)),
|
||||
this, SLOT(configureEditor(Core::IEditor*,QString)));
|
||||
connect(ProjectExplorerPlugin::instance(), SIGNAL(currentProjectChanged(ProjectExplorer::Project*)),
|
||||
this, SLOT(updateWindowTitle()));
|
||||
connect(em, SIGNAL(editorOpened(Core::IEditor*)),
|
||||
this, SLOT(markSessionFileDirty()));
|
||||
@@ -772,11 +772,11 @@ void SessionManager::restoreEditors(const Utils::PersistentSettingsReader &reade
|
||||
{
|
||||
const QVariant &editorsettings = reader.restoreValue(QLatin1String("EditorSettings"));
|
||||
if (editorsettings.isValid()) {
|
||||
connect(ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor *)),
|
||||
connect(ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor*)),
|
||||
this, SLOT(sessionLoadingProgress()));
|
||||
ICore::editorManager()->restoreState(
|
||||
QByteArray::fromBase64(editorsettings.toByteArray()));
|
||||
disconnect(ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor *)),
|
||||
disconnect(ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor*)),
|
||||
this, SLOT(sessionLoadingProgress()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,10 +140,10 @@ SessionDialog::SessionDialog(SessionManager *sessionManager, QWidget *parent)
|
||||
connect(m_ui.btSwitch, SIGNAL(clicked()), this, SLOT(switchToSession()));
|
||||
connect(m_ui.btRename, SIGNAL(clicked()), this, SLOT(rename()));
|
||||
|
||||
connect(m_ui.sessionList, SIGNAL(itemDoubleClicked (QListWidgetItem *)),
|
||||
connect(m_ui.sessionList, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
|
||||
this, SLOT(switchToSession()));
|
||||
|
||||
connect(m_ui.sessionList, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)),
|
||||
connect(m_ui.sessionList, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
|
||||
this, SLOT(updateActions()));
|
||||
|
||||
m_ui.whatsASessionLabel->setOpenExternalLinks(true);
|
||||
|
||||
@@ -424,8 +424,8 @@ QList<RewriterView::Error> DesignDocumentController::loadMaster(QPlainTextEdit *
|
||||
|
||||
d->rewriterView = new RewriterView(RewriterView::Amend, d->masterModel.data());
|
||||
d->rewriterView->setTextModifier( d->textModifier);
|
||||
connect(d->rewriterView.data(), SIGNAL(errorsChanged(const QList<RewriterView::Error> &)),
|
||||
this, SIGNAL(qmlErrorsChanged(const QList<RewriterView::Error> &)));
|
||||
connect(d->rewriterView.data(), SIGNAL(errorsChanged(QList<RewriterView::Error>)),
|
||||
this, SIGNAL(qmlErrorsChanged(QList<RewriterView::Error>)));
|
||||
|
||||
d->masterModel->attachView(d->rewriterView.data());
|
||||
d->model = d->masterModel;
|
||||
|
||||
@@ -157,7 +157,7 @@ void CustomDragAndDropIcon::paintEvent(QPaintEvent *event)
|
||||
|
||||
void CustomDragAndDropIcon::enter()
|
||||
{
|
||||
connect(&m_timeLine, SIGNAL( frameChanged (int)), this, SLOT(animateDrag(int)));
|
||||
connect(&m_timeLine, SIGNAL(frameChanged(int)), this, SLOT(animateDrag(int)));
|
||||
m_timeLine.setFrameRange(0, 10);
|
||||
m_timeLine.setDuration(10);
|
||||
m_timeLine.setLoopCount(1);
|
||||
@@ -170,7 +170,7 @@ void CustomDragAndDropIcon::enter()
|
||||
|
||||
void CustomDragAndDropIcon::leave()
|
||||
{
|
||||
connect(&m_timeLine, SIGNAL( frameChanged (int)), this, SLOT(animateDrag(int)));
|
||||
connect(&m_timeLine, SIGNAL(frameChanged(int)), this, SLOT(animateDrag(int)));
|
||||
m_timeLine.setFrameRange(0, 10);
|
||||
m_timeLine.setDuration(250);
|
||||
m_timeLine.setLoopCount(1);
|
||||
|
||||
@@ -95,7 +95,7 @@ ItemLibraryTreeView::ItemLibraryTreeView(QWidget *parent) :
|
||||
setDragEnabled(true);
|
||||
setDragDropMode(QAbstractItemView::DragOnly);
|
||||
setUniformRowHeights(true);
|
||||
connect(this, SIGNAL(clicked(const QModelIndex &)), this, SLOT(activateItem(const QModelIndex &)));
|
||||
connect(this, SIGNAL(clicked(QModelIndex)), this, SLOT(activateItem(QModelIndex)));
|
||||
setHeaderHidden(true);
|
||||
setIndentation(20);
|
||||
setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
|
||||
@@ -831,7 +831,7 @@ public:
|
||||
QComboBoxDeclarativeUI(QObject *parent = 0) : QObject(parent), m_itemsSet(false)
|
||||
{
|
||||
cb = qobject_cast<QComboBox*>(parent);
|
||||
connect(cb, SIGNAL(currentIndexChanged(const QString &)), this, SLOT(setCurrentText(const QString &)));
|
||||
connect(cb, SIGNAL(currentIndexChanged(QString)), this, SLOT(setCurrentText(QString)));
|
||||
}
|
||||
|
||||
QString currentText() const
|
||||
|
||||
@@ -58,7 +58,7 @@ FileWidget::FileWidget(QWidget *parent) : QWidget(parent), m_filter("(*.*)"), m_
|
||||
m_pushButton->setText("...");
|
||||
connect(m_lineEdit, SIGNAL(editingFinished()), this, SLOT(lineEditChanged()));
|
||||
connect(m_pushButton, SIGNAL(pressed()), this, SLOT(buttonPressed()));
|
||||
connect(m_comboBox, SIGNAL(editTextChanged(const QString &)), this, SLOT(comboBoxChanged()));
|
||||
connect(m_comboBox, SIGNAL(editTextChanged(QString)), this, SLOT(comboBoxChanged()));
|
||||
m_currentPath = QDir::currentPath();
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ PropertyEditor::NodeType::NodeType(PropertyEditor *propertyEditor) :
|
||||
m_contextObject->setBackendValues(&m_backendValuesPropertyMap);
|
||||
ctxt->setContextObject(m_contextObject.data());
|
||||
|
||||
connect(&m_backendValuesPropertyMap, SIGNAL(valueChanged(const QString&, const QVariant&)), propertyEditor, SLOT(changeValue(const QString&)));
|
||||
connect(&m_backendValuesPropertyMap, SIGNAL(valueChanged(QString,QVariant)), propertyEditor, SLOT(changeValue(QString)));
|
||||
}
|
||||
|
||||
PropertyEditor::NodeType::~NodeType()
|
||||
@@ -127,7 +127,7 @@ void setupPropertyEditorValue(const QString &name, QDeclarativePropertyMap *prop
|
||||
PropertyEditorValue *valueObject = qobject_cast<PropertyEditorValue*>(QDeclarativeMetaType::toQObject(propertyMap->value(propertyName)));
|
||||
if (!valueObject) {
|
||||
valueObject = new PropertyEditorValue(propertyMap);
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString, const QVariant&)), propertyMap, SIGNAL(valueChanged(QString, const QVariant&)));
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString,QVariant)), propertyMap, SIGNAL(valueChanged(QString,QVariant)));
|
||||
QObject::connect(valueObject, SIGNAL(expressionChanged(QString)), propertyEditor, SLOT(changeExpression(QString)));
|
||||
propertyMap->insert(propertyName, QVariant::fromValue(valueObject));
|
||||
}
|
||||
@@ -146,7 +146,7 @@ void createPropertyEditorValue(const QmlObjectNode &fxObjectNode, const QString
|
||||
PropertyEditorValue *valueObject = qobject_cast<PropertyEditorValue*>(QDeclarativeMetaType::toQObject(propertyMap->value(propertyName)));
|
||||
if (!valueObject) {
|
||||
valueObject = new PropertyEditorValue(propertyMap);
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString, const QVariant&)), propertyMap, SIGNAL(valueChanged(QString, const QVariant&)));
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString,QVariant)), propertyMap, SIGNAL(valueChanged(QString,QVariant)));
|
||||
QObject::connect(valueObject, SIGNAL(expressionChanged(QString)), propertyEditor, SLOT(changeExpression(QString)));
|
||||
propertyMap->insert(propertyName, QVariant::fromValue(valueObject));
|
||||
}
|
||||
@@ -202,7 +202,7 @@ void PropertyEditor::NodeType::setup(const QmlObjectNode &fxObjectNode, const QS
|
||||
valueObject->setName("className");
|
||||
valueObject->setModelNode(fxObjectNode.modelNode());
|
||||
valueObject->setValue(fxObjectNode.modelNode().simplifiedTypeName());
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString, const QVariant&)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString, const QVariant&)));
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString,QVariant)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString,QVariant)));
|
||||
m_backendValuesPropertyMap.insert("className", QVariant::fromValue(valueObject));
|
||||
|
||||
// id
|
||||
@@ -211,7 +211,7 @@ void PropertyEditor::NodeType::setup(const QmlObjectNode &fxObjectNode, const QS
|
||||
valueObject = new PropertyEditorValue(&m_backendValuesPropertyMap);
|
||||
valueObject->setName("id");
|
||||
valueObject->setValue(fxObjectNode.id());
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString, const QVariant&)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString, const QVariant&)));
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString,QVariant)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString,QVariant)));
|
||||
m_backendValuesPropertyMap.insert("id", QVariant::fromValue(valueObject));
|
||||
|
||||
// anchors
|
||||
@@ -253,7 +253,7 @@ void PropertyEditor::NodeType::initialSetup(const QString &typeName, const QUrl
|
||||
valueObject->setName("className");
|
||||
|
||||
valueObject->setValue(typeName);
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString, const QVariant&)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString, const QVariant&)));
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString,QVariant)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString,QVariant)));
|
||||
m_backendValuesPropertyMap.insert("className", QVariant::fromValue(valueObject));
|
||||
|
||||
// id
|
||||
@@ -262,7 +262,7 @@ void PropertyEditor::NodeType::initialSetup(const QString &typeName, const QUrl
|
||||
valueObject = new PropertyEditorValue(&m_backendValuesPropertyMap);
|
||||
valueObject->setName("id");
|
||||
valueObject->setValue("id");
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString, const QVariant&)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString, const QVariant&)));
|
||||
QObject::connect(valueObject, SIGNAL(valueChanged(QString,QVariant)), &m_backendValuesPropertyMap, SIGNAL(valueChanged(QString,QVariant)));
|
||||
m_backendValuesPropertyMap.insert("id", QVariant::fromValue(valueObject));
|
||||
|
||||
ctxt->setContextProperty("anchorBackend", &m_backendAnchorBinding);
|
||||
|
||||
@@ -378,12 +378,12 @@ void PropertyEditorNodeWrapper::setup()
|
||||
PropertyEditorValue *valueObject = new PropertyEditorValue(&m_valuesPropertyMap);
|
||||
valueObject->setName(propertyName);
|
||||
valueObject->setValue(fxObjectNode.instanceValue(propertyName));
|
||||
connect(valueObject, SIGNAL(valueChanged(QString, const QVariant&)), &m_valuesPropertyMap, SIGNAL(valueChanged(QString, const QVariant&)));
|
||||
connect(valueObject, SIGNAL(valueChanged(QString,QVariant)), &m_valuesPropertyMap, SIGNAL(valueChanged(QString,QVariant)));
|
||||
m_valuesPropertyMap.insert(propertyName, QVariant::fromValue(valueObject));
|
||||
}
|
||||
}
|
||||
}
|
||||
connect(&m_valuesPropertyMap, SIGNAL(valueChanged(const QString &, const QVariant&)), this, SLOT(changeValue(const QString&)));
|
||||
connect(&m_valuesPropertyMap, SIGNAL(valueChanged(QString,QVariant)), this, SLOT(changeValue(QString)));
|
||||
|
||||
emit propertiesChanged();
|
||||
emit existsChanged();
|
||||
|
||||
@@ -110,7 +110,7 @@ void ResetWidget::addPropertyItem(const QString &name, int row)
|
||||
ResetWidgetPushButton *b = new ResetWidgetPushButton(m_tableWidget);
|
||||
b->setName(name);
|
||||
b->setText("reset");
|
||||
connect(b, SIGNAL(pressed(const QString &)), this, SLOT(buttonPressed(const QString &)));
|
||||
connect(b, SIGNAL(pressed(QString)), this, SLOT(buttonPressed(QString)));
|
||||
b->setMaximumHeight(15);
|
||||
b->setMinimumHeight(10);
|
||||
m_tableWidget->setCellWidget(row, 2, b);
|
||||
|
||||
@@ -70,7 +70,7 @@ void SiblingComboBox::changeSelection(int i)
|
||||
|
||||
void SiblingComboBox::setup()
|
||||
{
|
||||
connect(this, SIGNAL(currentIndexChanged (int)), this, SLOT(changeSelection(int)));
|
||||
connect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSelection(int)));
|
||||
if (!m_itemNode.isValid())
|
||||
return;
|
||||
|
||||
@@ -83,7 +83,7 @@ void SiblingComboBox::setup()
|
||||
if (node.isValid() && (node.instanceParent().modelNode() != m_itemNode.instanceParent().modelNode()))
|
||||
m_itemList.removeAll(node);
|
||||
|
||||
disconnect(this, SIGNAL(currentIndexChanged (int)), this, SLOT(changeSelection(int)));
|
||||
disconnect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSelection(int)));
|
||||
clear();
|
||||
|
||||
foreach (const QmlItemNode &itemNode, m_itemList) {
|
||||
@@ -109,7 +109,7 @@ void SiblingComboBox::setup()
|
||||
insertItem(0, parentString);
|
||||
}
|
||||
setCurrentIndex(m_itemList.indexOf(m_selectedItemNode));
|
||||
connect(this, SIGNAL(currentIndexChanged (int)), this, SLOT(changeSelection(int)));
|
||||
connect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSelection(int)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -41,8 +41,8 @@ ComponentTextModifier::ComponentTextModifier(TextModifier *originalModifier, int
|
||||
{
|
||||
connect(m_originalModifier, SIGNAL(textChanged()), this, SIGNAL(textChanged()));
|
||||
|
||||
connect(m_originalModifier, SIGNAL(replaced(int, int, int)), this, SIGNAL(replaced(int, int, int)));
|
||||
connect(m_originalModifier, SIGNAL(moved(const TextModifier::MoveInfo &)), this, SIGNAL(moved(const TextModifier::MoveInfo &)));
|
||||
connect(m_originalModifier, SIGNAL(replaced(int,int,int)), this, SIGNAL(replaced(int,int,int)));
|
||||
connect(m_originalModifier, SIGNAL(moved(TextModifier::MoveInfo)), this, SIGNAL(moved(TextModifier::MoveInfo)));
|
||||
}
|
||||
|
||||
ComponentTextModifier::~ComponentTextModifier()
|
||||
|
||||
@@ -40,7 +40,7 @@ void ModelNodePositionRecalculator::connectTo(TextModifier *textModifier)
|
||||
{
|
||||
Q_ASSERT(textModifier);
|
||||
|
||||
connect(textModifier, SIGNAL(moved(const TextModifier::MoveInfo &)), this, SLOT(moved(const TextModifier::MoveInfo &)));
|
||||
connect(textModifier, SIGNAL(moved(TextModifier::MoveInfo)), this, SLOT(moved(TextModifier::MoveInfo)));
|
||||
connect(textModifier, SIGNAL(replaced(int,int,int)), this, SLOT(replaced(int,int,int)));
|
||||
}
|
||||
|
||||
|
||||
@@ -396,7 +396,7 @@ ContextPaneWidget* QmlContextPane::contextWidget()
|
||||
m_widget = new ContextPaneWidget;
|
||||
connect(m_widget.data(), SIGNAL(propertyChanged(QString,QVariant)), this, SLOT(onPropertyChanged(QString,QVariant)));
|
||||
connect(m_widget.data(), SIGNAL(removeProperty(QString)), this, SLOT(onPropertyRemoved(QString)));
|
||||
connect(m_widget.data(), SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)), this, SLOT(onPropertyRemovedAndChange(QString,QString,QVariant, bool)));
|
||||
connect(m_widget.data(), SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SLOT(onPropertyRemovedAndChange(QString,QString,QVariant,bool)));
|
||||
connect(m_widget.data(), SIGNAL(enabledChanged(bool)), this, SLOT(onEnabledChanged(bool)));
|
||||
connect(m_widget.data(), SIGNAL(pinnedChanged(bool)), this, SLOT(onPinnedChanged(bool)));
|
||||
}
|
||||
|
||||
@@ -456,7 +456,7 @@ ContextPaneWidget* QuickToolBar::contextWidget()
|
||||
m_widget = new ContextPaneWidget;
|
||||
connect(m_widget.data(), SIGNAL(propertyChanged(QString,QVariant)), this, SLOT(onPropertyChanged(QString,QVariant)));
|
||||
connect(m_widget.data(), SIGNAL(removeProperty(QString)), this, SLOT(onPropertyRemoved(QString)));
|
||||
connect(m_widget.data(), SIGNAL(removeAndChangeProperty(QString,QString,QVariant, bool)), this, SLOT(onPropertyRemovedAndChange(QString,QString,QVariant, bool)));
|
||||
connect(m_widget.data(), SIGNAL(removeAndChangeProperty(QString,QString,QVariant,bool)), this, SLOT(onPropertyRemovedAndChange(QString,QString,QVariant,bool)));
|
||||
connect(m_widget.data(), SIGNAL(enabledChanged(bool)), this, SLOT(onEnabledChanged(bool)));
|
||||
connect(m_widget.data(), SIGNAL(pinnedChanged(bool)), this, SLOT(onPinnedChanged(bool)));
|
||||
connect(m_widget.data(), SIGNAL(closed()), this, SIGNAL(closed()));
|
||||
|
||||
@@ -108,8 +108,8 @@ void QmlProjectItem::setSourceDirectory(const QString &directoryPath)
|
||||
FileFilterBaseItem *fileFilter = qobject_cast<FileFilterBaseItem*>(contentElement);
|
||||
if (fileFilter) {
|
||||
fileFilter->setDefaultDirectory(directoryPath);
|
||||
connect(fileFilter, SIGNAL(filesChanged(QSet<QString>, QSet<QString>)),
|
||||
this, SIGNAL(qmlFilesChanged(QSet<QString>, QSet<QString>)));
|
||||
connect(fileFilter, SIGNAL(filesChanged(QSet<QString>,QSet<QString>)),
|
||||
this, SIGNAL(qmlFilesChanged(QSet<QString>,QSet<QString>)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -109,8 +109,8 @@ void QmlProject::parseProject(RefreshOptions options)
|
||||
if (component->isReady()
|
||||
&& qobject_cast<QmlProjectItem*>(component->create())) {
|
||||
m_projectItem = qobject_cast<QmlProjectItem*>(component->create());
|
||||
connect(m_projectItem.data(), SIGNAL(qmlFilesChanged(QSet<QString>, QSet<QString>)),
|
||||
this, SLOT(refreshFiles(QSet<QString>, QSet<QString>)));
|
||||
connect(m_projectItem.data(), SIGNAL(qmlFilesChanged(QSet<QString>,QSet<QString>)),
|
||||
this, SLOT(refreshFiles(QSet<QString>,QSet<QString>)));
|
||||
} else {
|
||||
messageManager->printToOutputPane(tr("Error while loading project file %1.").arg(m_fileName));
|
||||
messageManager->printToOutputPane(component->errorString(), true);
|
||||
|
||||
@@ -69,7 +69,7 @@ QmlProjectRunControl::QmlProjectRunControl(QmlProjectRunConfiguration *runConfig
|
||||
m_mainQmlFile = runConfiguration->mainScript();
|
||||
|
||||
connect(&m_applicationLauncher, SIGNAL(appendMessage(QString,Utils::OutputFormat)),
|
||||
this, SLOT(slotAppendMessage(QString, Utils::OutputFormat)));
|
||||
this, SLOT(slotAppendMessage(QString,Utils::OutputFormat)));
|
||||
connect(&m_applicationLauncher, SIGNAL(processExited(int)),
|
||||
this, SLOT(processExited(int)));
|
||||
connect(&m_applicationLauncher, SIGNAL(bringToForegroundRequested(qint64)),
|
||||
|
||||
@@ -100,7 +100,7 @@ ClassList::ClassList(QWidget *parent) :
|
||||
m_model(new ClassModel)
|
||||
{
|
||||
setModel(m_model);
|
||||
connect(itemDelegate(), SIGNAL(closeEditor(QWidget *, QAbstractItemDelegate::EndEditHint)), SLOT(classEdited()));
|
||||
connect(itemDelegate(), SIGNAL(closeEditor(QWidget*,QAbstractItemDelegate::EndEditHint)), SLOT(classEdited()));
|
||||
connect(selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(slotCurrentRowChanged(QModelIndex,QModelIndex)));
|
||||
}
|
||||
|
||||
@@ -523,7 +523,7 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step)
|
||||
updateEffectiveQMakeCall();
|
||||
updateQmlDebuggingOption();
|
||||
|
||||
connect(m_ui->qmakeAdditonalArgumentsLineEdit, SIGNAL(textEdited(const QString&)),
|
||||
connect(m_ui->qmakeAdditonalArgumentsLineEdit, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(qmakeArgumentsLineEdited()));
|
||||
connect(m_ui->buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)),
|
||||
this, SLOT(buildConfigurationSelected()));
|
||||
|
||||
@@ -130,7 +130,7 @@ bool CodaRunControl::setupLauncher()
|
||||
appendMessage(tr("Could not open serial device: %1\n").arg(m_codaDevice->device()->errorString()), Utils::ErrorMessageFormat);
|
||||
return false;
|
||||
}
|
||||
connect(SymbianUtils::SymbianDeviceManager::instance(), SIGNAL(deviceRemoved(const SymbianUtils::SymbianDevice)),
|
||||
connect(SymbianUtils::SymbianDeviceManager::instance(), SIGNAL(deviceRemoved(SymbianUtils::SymbianDevice)),
|
||||
this, SLOT(deviceRemoved(SymbianUtils::SymbianDevice)));
|
||||
m_state = StateConnecting;
|
||||
m_codaDevice->sendSerialPing(false);
|
||||
|
||||
@@ -407,8 +407,8 @@ bool S60CreatePackageStep::createOnePackage()
|
||||
this, SLOT(processReadyReadStdError()),
|
||||
Qt::DirectConnection);
|
||||
|
||||
connect(m_process, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||
this, SLOT(packageDone(int, QProcess::ExitStatus)),
|
||||
connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(packageDone(int,QProcess::ExitStatus)),
|
||||
Qt::DirectConnection);
|
||||
|
||||
m_process->setWorkingDirectory(wd.absolutePath());
|
||||
|
||||
@@ -113,7 +113,7 @@ void S60DeployConfiguration::ctor()
|
||||
setDefaultDisplayName(defaultDisplayName());
|
||||
// TODO disable S60 Deploy Configuration while parsing
|
||||
// requires keeping track of the parsing state of the project
|
||||
connect(qt4Target()->qt4Project(), SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool, bool)),
|
||||
connect(qt4Target()->qt4Project(), SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool,bool)),
|
||||
this, SLOT(slotTargetInformationChanged(Qt4ProjectManager::Qt4ProFileNode*,bool,bool)));
|
||||
connect(qt4Target(), SIGNAL(activeBuildConfigurationChanged(ProjectExplorer::BuildConfiguration*)),
|
||||
this, SLOT(updateActiveBuildConfiguration(ProjectExplorer::BuildConfiguration*)));
|
||||
|
||||
@@ -355,8 +355,8 @@ S60EmulatorRunControl::S60EmulatorRunControl(S60EmulatorRunConfiguration *runCon
|
||||
m_executable = runConfiguration->executable();
|
||||
connect(&m_applicationLauncher, SIGNAL(applicationError(QString)),
|
||||
this, SLOT(slotError(QString)));
|
||||
connect(&m_applicationLauncher, SIGNAL(appendMessage(QString, Utils::OutputFormat)),
|
||||
this, SLOT(slotAppendMessage(QString, Utils::OutputFormat)));
|
||||
connect(&m_applicationLauncher, SIGNAL(appendMessage(QString,Utils::OutputFormat)),
|
||||
this, SLOT(slotAppendMessage(QString,Utils::OutputFormat)));
|
||||
connect(&m_applicationLauncher, SIGNAL(processExited(int)),
|
||||
this, SLOT(processExited(int)));
|
||||
connect(&m_applicationLauncher, SIGNAL(bringToForegroundRequested(quint64)),
|
||||
|
||||
@@ -390,7 +390,7 @@ bool Qt4Project::fromMap(const QVariantMap &map)
|
||||
onAddedTarget(t);
|
||||
|
||||
connect(m_nodesWatcher, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool,bool)),
|
||||
this, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode *,bool,bool)));
|
||||
this, SIGNAL(proFileUpdated(Qt4ProjectManager::Qt4ProFileNode*,bool,bool)));
|
||||
|
||||
// Now we emit update once :)
|
||||
m_rootProjectNode->emitProFileUpdatedRecursive();
|
||||
|
||||
@@ -224,11 +224,11 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
|
||||
connect(m_cleanSubProjectContextMenu, SIGNAL(triggered()), m_qt4ProjectManager, SLOT(cleanSubDirContextMenu()));
|
||||
|
||||
connect(m_projectExplorer,
|
||||
SIGNAL(aboutToShowContextMenu(ProjectExplorer::Project*, ProjectExplorer::Node*)),
|
||||
this, SLOT(updateContextMenu(ProjectExplorer::Project*, ProjectExplorer::Node*)));
|
||||
SIGNAL(aboutToShowContextMenu(ProjectExplorer::Project*,ProjectExplorer::Node*)),
|
||||
this, SLOT(updateContextMenu(ProjectExplorer::Project*,ProjectExplorer::Node*)));
|
||||
|
||||
connect(m_projectExplorer->buildManager(), SIGNAL(buildStateChanged(ProjectExplorer::Project *)),
|
||||
this, SLOT(buildStateChanged(ProjectExplorer::Project *)));
|
||||
connect(m_projectExplorer->buildManager(), SIGNAL(buildStateChanged(ProjectExplorer::Project*)),
|
||||
this, SLOT(buildStateChanged(ProjectExplorer::Project*)));
|
||||
connect(m_projectExplorer->session(), SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
||||
this, SLOT(startupProjectChanged()));
|
||||
connect(m_projectExplorer, SIGNAL(currentNodeChanged(ProjectExplorer::Node*,ProjectExplorer::Project*)),
|
||||
|
||||
@@ -436,8 +436,8 @@ void Qt4BaseTarget::onAddedBuildConfiguration(ProjectExplorer::BuildConfiguratio
|
||||
Q_ASSERT(qt4bc);
|
||||
connect(qt4bc, SIGNAL(buildDirectoryInitialized()),
|
||||
this, SIGNAL(buildDirectoryInitialized()));
|
||||
connect(qt4bc, SIGNAL(proFileEvaluateNeeded(Qt4ProjectManager::Qt4BuildConfiguration *)),
|
||||
this, SLOT(onProFileEvaluateNeeded(Qt4ProjectManager::Qt4BuildConfiguration *)));
|
||||
connect(qt4bc, SIGNAL(proFileEvaluateNeeded(Qt4ProjectManager::Qt4BuildConfiguration*)),
|
||||
this, SLOT(onProFileEvaluateNeeded(Qt4ProjectManager::Qt4BuildConfiguration*)));
|
||||
}
|
||||
|
||||
void Qt4BaseTarget::onProFileEvaluateNeeded(Qt4ProjectManager::Qt4BuildConfiguration *bc)
|
||||
|
||||
@@ -241,8 +241,8 @@ QWizard *AbstractMobileAppWizard::createWizardDialog(QWidget *parent,
|
||||
wdlg->m_maemoOptionsPage->setPngIcon(app()->pngIcon64());
|
||||
wdlg->m_harmattanOptionsPage->setPngIcon(app()->pngIcon80());
|
||||
wdlg->m_harmattanOptionsPage->setBoosterOptionEnabled(app()->canSupportMeegoBooster());
|
||||
connect(wdlg, SIGNAL(projectParametersChanged(QString, QString)),
|
||||
SLOT(useProjectPath(QString, QString)));
|
||||
connect(wdlg, SIGNAL(projectParametersChanged(QString,QString)),
|
||||
SLOT(useProjectPath(QString,QString)));
|
||||
wdlg->addExtensionPages(wizardDialogParameters.extensionPages());
|
||||
|
||||
return wdlg;
|
||||
|
||||
@@ -182,7 +182,7 @@ QtOptionsPageWidget::QtOptionsPageWidget(QWidget *parent, QList<BaseQtVersion *>
|
||||
}
|
||||
m_ui->qtdirList->expandAll();
|
||||
|
||||
connect(m_versionUi->nameEdit, SIGNAL(textEdited(const QString &)),
|
||||
connect(m_versionUi->nameEdit, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(updateCurrentQtName()));
|
||||
|
||||
connect(m_versionUi->editPathPushButton, SIGNAL(clicked()),
|
||||
@@ -193,8 +193,8 @@ QtOptionsPageWidget::QtOptionsPageWidget(QWidget *parent, QList<BaseQtVersion *>
|
||||
connect(m_ui->delButton, SIGNAL(clicked()),
|
||||
this, SLOT(removeQtDir()));
|
||||
|
||||
connect(m_ui->qtdirList, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
|
||||
this, SLOT(versionChanged(QTreeWidgetItem *, QTreeWidgetItem *)));
|
||||
connect(m_ui->qtdirList, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
|
||||
this, SLOT(versionChanged(QTreeWidgetItem*,QTreeWidgetItem*)));
|
||||
|
||||
connect(m_debuggingHelperUi->rebuildButton, SIGNAL(clicked()),
|
||||
this, SLOT(buildDebuggingHelper()));
|
||||
|
||||
@@ -131,7 +131,7 @@ void GenericDirectUploadService::handleSftpInitialized()
|
||||
}
|
||||
|
||||
Q_ASSERT(!d->filesToUpload.isEmpty());
|
||||
connect(d->uploader.data(), SIGNAL(finished(Utils::SftpJobId, QString)),
|
||||
connect(d->uploader.data(), SIGNAL(finished(Utils::SftpJobId,QString)),
|
||||
SLOT(handleUploadFinished(Utils::SftpJobId,QString)));
|
||||
d->state = Uploading;
|
||||
uploadNextFile();
|
||||
|
||||
@@ -68,8 +68,8 @@ void PackageUploader::uploadPackage(const SshConnection::Ptr &connection,
|
||||
SLOT(handleSftpChannelInitialized()));
|
||||
connect(m_uploader.data(), SIGNAL(initializationFailed(QString)), this,
|
||||
SLOT(handleSftpChannelInitializationFailed(QString)));
|
||||
connect(m_uploader.data(), SIGNAL(finished(Utils::SftpJobId, QString)),
|
||||
this, SLOT(handleSftpJobFinished(Utils::SftpJobId, QString)));
|
||||
connect(m_uploader.data(), SIGNAL(finished(Utils::SftpJobId,QString)),
|
||||
this, SLOT(handleSftpJobFinished(Utils::SftpJobId,QString)));
|
||||
m_uploader->initialize();
|
||||
}
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ ResourceEditorW::ResourceEditorW(const Core::Context &context,
|
||||
Qt::QueuedConnection);
|
||||
|
||||
connect(m_resourceEditor, SIGNAL(dirtyChanged(bool)), this, SLOT(dirtyChanged(bool)));
|
||||
connect(m_resourceEditor, SIGNAL(undoStackChanged(bool, bool)),
|
||||
this, SLOT(onUndoStackChanged(bool, bool)));
|
||||
connect(m_resourceEditor, SIGNAL(undoStackChanged(bool,bool)),
|
||||
this, SLOT(onUndoStackChanged(bool,bool)));
|
||||
connect(m_resourceEditor, SIGNAL(showContextMenu(QPoint,QString)),
|
||||
this, SLOT(showContextMenu(QPoint,QString)));
|
||||
connect(m_resourceEditor->commandHistory(), SIGNAL(indexChanged(int)),
|
||||
|
||||
@@ -51,8 +51,8 @@ using namespace Core;
|
||||
BaseHoverHandler::BaseHoverHandler(QObject *parent) : QObject(parent), m_diagnosticTooltip(false)
|
||||
{
|
||||
// Listen for editor opened events in order to connect to tooltip/helpid requests
|
||||
connect(ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor *)),
|
||||
this, SLOT(editorOpened(Core::IEditor *)));
|
||||
connect(ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor*)),
|
||||
this, SLOT(editorOpened(Core::IEditor*)));
|
||||
}
|
||||
|
||||
BaseHoverHandler::~BaseHoverHandler()
|
||||
@@ -63,11 +63,11 @@ void BaseHoverHandler::editorOpened(Core::IEditor *editor)
|
||||
if (acceptEditor(editor)) {
|
||||
BaseTextEditor *textEditor = qobject_cast<BaseTextEditor *>(editor);
|
||||
if (textEditor) {
|
||||
connect(textEditor, SIGNAL(tooltipRequested(TextEditor::ITextEditor*, QPoint, int)),
|
||||
this, SLOT(showToolTip(TextEditor::ITextEditor*, QPoint, int)));
|
||||
connect(textEditor, SIGNAL(tooltipRequested(TextEditor::ITextEditor*,QPoint,int)),
|
||||
this, SLOT(showToolTip(TextEditor::ITextEditor*,QPoint,int)));
|
||||
|
||||
connect(textEditor, SIGNAL(contextHelpIdRequested(TextEditor::ITextEditor*, int)),
|
||||
this, SLOT(updateContextHelpId(TextEditor::ITextEditor*, int)));
|
||||
connect(textEditor, SIGNAL(contextHelpIdRequested(TextEditor::ITextEditor*,int)),
|
||||
this, SLOT(updateContextHelpId(TextEditor::ITextEditor*,int)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ BaseTextEditorWidget::BaseTextEditorWidget(QWidget *parent)
|
||||
connect(this, SIGNAL(blockCountChanged(int)), this, SLOT(slotUpdateExtraAreaWidth()));
|
||||
connect(this, SIGNAL(modificationChanged(bool)), this, SLOT(slotModificationChanged(bool)));
|
||||
connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(slotCursorPositionChanged()));
|
||||
connect(this, SIGNAL(updateRequest(QRect, int)), this, SLOT(slotUpdateRequest(QRect, int)));
|
||||
connect(this, SIGNAL(updateRequest(QRect,int)), this, SLOT(slotUpdateRequest(QRect,int)));
|
||||
connect(this, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged()));
|
||||
|
||||
// (void) new QShortcut(tr("CTRL+L"), this, SLOT(centerCursor()), 0, Qt::WidgetShortcut);
|
||||
@@ -2544,7 +2544,7 @@ void BaseTextEditorWidgetPrivate::setupDocumentSignals(BaseTextDocument *documen
|
||||
QObject::connect(doc, SIGNAL(contentsChange(int,int,int)), q,
|
||||
SLOT(editorContentsChange(int,int,int)), Qt::DirectConnection);
|
||||
QObject::connect(document, SIGNAL(changed()), q, SIGNAL(changed()));
|
||||
QObject::connect(document, SIGNAL(titleChanged(QString)), q, SLOT(setDisplayName(const QString &)));
|
||||
QObject::connect(document, SIGNAL(titleChanged(QString)), q, SLOT(setDisplayName(QString)));
|
||||
QObject::connect(document, SIGNAL(aboutToReload()), q, SLOT(documentAboutToBeReloaded()));
|
||||
QObject::connect(document, SIGNAL(reloaded()), q, SLOT(documentReloaded()));
|
||||
q->slotUpdateExtraAreaWidth();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user