doc/snippets: normalize signals/slots

There's one in corelib that has a comment
  // slower due to signature normalization at runtime
I obviously didn't change that one.

This is the result of running util/normalize --modify
from Qt 4.7 with manual review.

Change-Id: I0ffb2305800a9cb746b7f8a4eb710702d64f1b92
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
bb10
Marc Mutz 2012-07-12 22:22:14 +02:00 committed by Qt by Nokia
parent a42bc1e923
commit a1590325ca
10 changed files with 27 additions and 27 deletions

View File

@ -57,9 +57,9 @@ ButtonWidget::ButtonWidget(QStringList texts, QWidget *parent)
gridLayout->addWidget(button, i / 3, i % 3);
}
connect(signalMapper, SIGNAL(mapped(const QString &)),
connect(signalMapper, SIGNAL(mapped(QString)),
//! [1] //! [2]
this, SIGNAL(clicked(const QString &)));
this, SIGNAL(clicked(QString)));
setLayout(gridLayout);
}

View File

@ -55,8 +55,8 @@ public:
: QDBusAbstractAdaptor(application), app(application)
{
connect(application, SIGNAL(aboutToQuit()), SIGNAL(aboutToQuit()));
connect(application, SIGNAL(focusChanged(QWidget*, QWidget*)),
SLOT(focusChangedSlot(QWidget*, QWidget*)));
connect(application, SIGNAL(focusChanged(QWidget*,QWidget*)),
SLOT(focusChangedSlot(QWidget*,QWidget*)));
}
QString caption()
@ -202,8 +202,8 @@ MyInterfaceAdaptor(QApplication *application)
: QDBusAbstractAdaptor(application), app(application)
{
connect(application, SIGNAL(aboutToQuit()), SIGNAL(aboutToQuit());
connect(application, SIGNAL(focusChanged(QWidget*, QWidget*)),
SLOT(focusChangedSlot(QWidget*, QWidget*)));
connect(application, SIGNAL(focusChanged(QWidget*,QWidget*)),
SLOT(focusChangedSlot(QWidget*,QWidget*)));
}
//! [6]

View File

@ -53,7 +53,7 @@ QVERIFY(arguments.at(0).toBool() == true); // verify the first argument
//! [1]
QSignalSpy spy(myCustomObject, SIGNAL(mySignal(int, QString, double)));
QSignalSpy spy(myCustomObject, SIGNAL(mySignal(int,QString,double)));
myCustomObject->doSomething(); // trigger emission of the signal

View File

@ -53,8 +53,8 @@ MainWindow::MainWindow(QWidget *parent)
textBrowser = new QTextBrowser(this);
connect(headingList, SIGNAL(itemClicked(QListWidgetItem *)),
this, SLOT(updateText(QListWidgetItem *)));
connect(headingList, SIGNAL(itemClicked(QListWidgetItem*)),
this, SLOT(updateText(QListWidgetItem*)));
updateText(headingList->item(0));
headingList->setCurrentRow(0);

View File

@ -73,8 +73,8 @@ MainWindow::MainWindow()
connect(insertAction, SIGNAL(triggered()), this, SLOT(insertItem()));
connect(removeAction, SIGNAL(triggered()), this, SLOT(removeItem()));
connect(listWidget,
SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)),
this, SLOT(updateMenus(QListWidgetItem *)));
SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
this, SLOT(updateMenus(QListWidgetItem*)));
setupListItems();
updateMenus(listWidget->currentItem());

View File

@ -65,8 +65,8 @@ int main(int argc, char *argv[])
QLineEdit *patternEditor = new QLineEdit;
QObject::
connect(patternEditor, SIGNAL(textChanged(const QString &)),
filterModel, SLOT(setFilterRegExp(const QString &)));
connect(patternEditor, SIGNAL(textChanged(QString)),
filterModel, SLOT(setFilterRegExp(QString)));
QVBoxLayout *layout = new QVBoxLayout(window);
layout->addWidget(filteredView);

View File

@ -88,8 +88,8 @@ MainWindow::MainWindow()
connect(insertAction, SIGNAL(triggered()), this, SLOT(insertItem()));
connect(removeAction, SIGNAL(triggered()), this, SLOT(removeItem()));
connect(treeWidget,
SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
this, SLOT(updateMenus(QTreeWidgetItem *)));
SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
this, SLOT(updateMenus(QTreeWidgetItem*)));
setupTreeItems();
updateMenus(treeWidget->currentItem());

View File

@ -83,8 +83,8 @@ MainWindow::MainWindow()
connect(insertAction, SIGNAL(triggered()), this, SLOT(insertItem()));
connect(removeAction, SIGNAL(triggered()), this, SLOT(removeItem()));
connect(treeWidget,
SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
this, SLOT(updateMenus(QTreeWidgetItem *)));
SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
this, SLOT(updateMenus(QTreeWidgetItem*)));
setupTreeItems();
updateMenus(treeWidget->currentItem());

View File

@ -65,11 +65,11 @@ MainWindow::MainWindow(QWidget *parent)
selectionModel = table->selectionModel();
connect(selectionModel,
SIGNAL(selectionChanged(const QItemSelection &, const QItemSelection &)),
this, SLOT(updateSelection(const QItemSelection &, const QItemSelection &)));
SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
this, SLOT(updateSelection(QItemSelection,QItemSelection)));
connect(selectionModel,
SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
this, SLOT(changeCurrent(const QModelIndex &, const QModelIndex &)));
SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, SLOT(changeCurrent(QModelIndex,QModelIndex)));
statusBar();
setCentralWidget(table);

View File

@ -88,11 +88,11 @@ RSSListing::RSSListing(QWidget *parent)
handler = 0;
connect(&http, SIGNAL(readyRead(const QHttpResponseHeader &)),
this, SLOT(readData(const QHttpResponseHeader &)));
connect(&http, SIGNAL(readyRead(QHttpResponseHeader)),
this, SLOT(readData(QHttpResponseHeader)));
connect(&http, SIGNAL(requestFinished(int, bool)),
this, SLOT(finished(int, bool)));
connect(&http, SIGNAL(requestFinished(int,bool)),
this, SLOT(finished(int,bool)));
connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(fetch()));
connect(fetchButton, SIGNAL(clicked()), this, SLOT(fetch()));
@ -152,8 +152,8 @@ void RSSListing::fetch()
xmlReader.setErrorHandler(handler);
//! [0]
connect(handler, SIGNAL(newItem(QString &, QString &)),
this, SLOT(addItem(QString &, QString &)));
connect(handler, SIGNAL(newItem(QString&,QString&)),
this, SLOT(addItem(QString&,QString&)));
QUrl url(lineEdit->text());