Normalize all signal/slot connections.
REVIEW: 103728
This commit is contained in:
parent
2becd8b67a
commit
fb0b49af8c
@ -1442,8 +1442,8 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
|
|||||||
wallpaperConfig = KConfigGroup(&wallpaperConfig, "Wallpaper");
|
wallpaperConfig = KConfigGroup(&wallpaperConfig, "Wallpaper");
|
||||||
wallpaperConfig = KConfigGroup(&wallpaperConfig, w->pluginName());
|
wallpaperConfig = KConfigGroup(&wallpaperConfig, w->pluginName());
|
||||||
w->restore(wallpaperConfig);
|
w->restore(wallpaperConfig);
|
||||||
disconnect(w, SIGNAL(update(const QRectF&)), this, SLOT(updateRect(const QRectF&)));
|
disconnect(w, SIGNAL(update(QRectF)), this, SLOT(updateRect(QRectF)));
|
||||||
connect(w, SIGNAL(update(const QRectF&)), this, SLOT(updateRect(const QRectF&)));
|
connect(w, SIGNAL(update(QRectF)), this, SLOT(updateRect(QRectF)));
|
||||||
}
|
}
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
|
@ -1332,8 +1332,8 @@ void ContainmentPrivate::dropData(QPointF scenePos, QPoint screenPos, QGraphicsS
|
|||||||
}
|
}
|
||||||
|
|
||||||
QObject::connect(job, SIGNAL(result(KJob*)), q, SLOT(dropJobResult(KJob*)));
|
QObject::connect(job, SIGNAL(result(KJob*)), q, SLOT(dropJobResult(KJob*)));
|
||||||
QObject::connect(job, SIGNAL(mimetype(KIO::Job *, const QString&)),
|
QObject::connect(job, SIGNAL(mimetype(KIO::Job*,QString)),
|
||||||
q, SLOT(mimeTypeRetrieved(KIO::Job *, const QString&)));
|
q, SLOT(mimeTypeRetrieved(KIO::Job*,QString)));
|
||||||
|
|
||||||
KMenu *choices = new KMenu("Content dropped");
|
KMenu *choices = new KMenu("Content dropped");
|
||||||
choices->addAction(KIcon("process-working"), i18n("Fetching file type..."));
|
choices->addAction(KIcon("process-working"), i18n("Fetching file type..."));
|
||||||
|
@ -111,8 +111,8 @@ Extender::Extender(Applet *applet)
|
|||||||
d->mainWidget = new QGraphicsWidget(d->scrollWidget);
|
d->mainWidget = new QGraphicsWidget(d->scrollWidget);
|
||||||
d->scrollWidget->setWidget(d->mainWidget);
|
d->scrollWidget->setWidget(d->mainWidget);
|
||||||
d->mainWidget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
d->mainWidget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||||
connect(d->scrollWidget, SIGNAL(viewportGeometryChanged(const QRectF &)),
|
connect(d->scrollWidget, SIGNAL(viewportGeometryChanged(QRectF)),
|
||||||
this, SLOT(viewportGeometryChanged(const QRectF &)));
|
this, SLOT(viewportGeometryChanged(QRectF)));
|
||||||
|
|
||||||
d->layout = new QGraphicsLinearLayout(d->mainWidget);
|
d->layout = new QGraphicsLinearLayout(d->mainWidget);
|
||||||
d->layout->setOrientation(Qt::Vertical);
|
d->layout->setOrientation(Qt::Vertical);
|
||||||
|
@ -49,7 +49,7 @@ StorageJob::StorageJob(const QString& destination,
|
|||||||
m_clientName(destination)
|
m_clientName(destination)
|
||||||
{
|
{
|
||||||
Plasma::StorageThread::self()->start();
|
Plasma::StorageThread::self()->start();
|
||||||
connect(Plasma::StorageThread::self(), SIGNAL(newResult(StorageJob *, const QVariant &)), this, SLOT(resultSlot(StorageJob *, const QVariant &)));
|
connect(Plasma::StorageThread::self(), SIGNAL(newResult(StorageJob*,QVariant)), this, SLOT(resultSlot(StorageJob*,QVariant)));
|
||||||
qRegisterMetaType<StorageJob *>();
|
qRegisterMetaType<StorageJob *>();
|
||||||
qRegisterMetaType<QWeakPointer<StorageJob> >();
|
qRegisterMetaType<QWeakPointer<StorageJob> >();
|
||||||
}
|
}
|
||||||
|
@ -45,10 +45,10 @@ WallpaperScript::~WallpaperScript()
|
|||||||
void WallpaperScript::setWallpaper(Wallpaper *wallpaper)
|
void WallpaperScript::setWallpaper(Wallpaper *wallpaper)
|
||||||
{
|
{
|
||||||
d->wallpaper = wallpaper;
|
d->wallpaper = wallpaper;
|
||||||
connect(wallpaper, SIGNAL(renderCompleted(const QImage&)),
|
connect(wallpaper, SIGNAL(renderCompleted(QImage)),
|
||||||
this, SLOT(renderCompleted(const QImage&)));
|
this, SLOT(renderCompleted(QImage)));
|
||||||
connect(wallpaper, SIGNAL(urlDropped(const KUrl&)),
|
connect(wallpaper, SIGNAL(urlDropped(KUrl)),
|
||||||
this, SLOT(urlDropped(const KUrl&)));
|
this, SLOT(urlDropped(KUrl)));
|
||||||
}
|
}
|
||||||
|
|
||||||
Wallpaper *WallpaperScript::wallpaper() const
|
Wallpaper *WallpaperScript::wallpaper() const
|
||||||
|
@ -88,7 +88,7 @@ QWidget* ContextTest::createConfigurationInterface(QWidget* parent)
|
|||||||
|
|
||||||
m_ui.text->setText(m_text);
|
m_ui.text->setText(m_text);
|
||||||
//FIXME this way or just get it on close?
|
//FIXME this way or just get it on close?
|
||||||
//connect(m_ui.text, SIGNAL(changed(const QColor&)), this, SLOT(setColor(const QColor&)));
|
//connect(m_ui.text, SIGNAL(changed(QColor)), this, SLOT(setColor(QColor)));
|
||||||
//connect(this, SIGNAL(settingsChanged(bool)), parent, SLOT(settingsChanged(bool)));
|
//connect(this, SIGNAL(settingsChanged(bool)), parent, SLOT(settingsChanged(bool)));
|
||||||
return widget;
|
return widget;
|
||||||
}
|
}
|
||||||
|
@ -598,7 +598,7 @@ bool WallpaperPrivate::findInCache(const QString &key, unsigned int lastModified
|
|||||||
}
|
}
|
||||||
|
|
||||||
LoadImageThread *loadImageT = new LoadImageThread(cache);
|
LoadImageThread *loadImageT = new LoadImageThread(cache);
|
||||||
q->connect(loadImageT, SIGNAL(done(const QImage&)), q, SIGNAL(renderCompleted(const QImage&)));
|
q->connect(loadImageT, SIGNAL(done(QImage)), q, SIGNAL(renderCompleted(QImage)));
|
||||||
QThreadPool::globalInstance()->start(loadImageT);
|
QThreadPool::globalInstance()->start(loadImageT);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -160,11 +160,11 @@ void ComboBox::setNativeWidget(KComboBox *nativeWidget)
|
|||||||
widget()->deleteLater();
|
widget()->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(nativeWidget, SIGNAL(activated(const QString &)), this, SIGNAL(activated(const QString &)));
|
connect(nativeWidget, SIGNAL(activated(QString)), this, SIGNAL(activated(QString)));
|
||||||
connect(nativeWidget, SIGNAL(currentIndexChanged(int)),
|
connect(nativeWidget, SIGNAL(currentIndexChanged(int)),
|
||||||
this, SIGNAL(currentIndexChanged(int)));
|
this, SIGNAL(currentIndexChanged(int)));
|
||||||
connect(nativeWidget, SIGNAL(currentIndexChanged(const QString &)),
|
connect(nativeWidget, SIGNAL(currentIndexChanged(QString)),
|
||||||
this, SIGNAL(textChanged(const QString &)));
|
this, SIGNAL(textChanged(QString)));
|
||||||
|
|
||||||
d->setWidget(nativeWidget);
|
d->setWidget(nativeWidget);
|
||||||
nativeWidget->setWindowIcon(QIcon());
|
nativeWidget->setWindowIcon(QIcon());
|
||||||
|
@ -125,8 +125,8 @@ void LineEdit::setNativeWidget(KLineEdit *nativeWidget)
|
|||||||
|
|
||||||
connect(nativeWidget, SIGNAL(editingFinished()), this, SIGNAL(editingFinished()));
|
connect(nativeWidget, SIGNAL(editingFinished()), this, SIGNAL(editingFinished()));
|
||||||
connect(nativeWidget, SIGNAL(returnPressed()), this, SIGNAL(returnPressed()));
|
connect(nativeWidget, SIGNAL(returnPressed()), this, SIGNAL(returnPressed()));
|
||||||
connect(nativeWidget, SIGNAL(textEdited(const QString&)), this, SIGNAL(textEdited(const QString&)));
|
connect(nativeWidget, SIGNAL(textEdited(QString)), this, SIGNAL(textEdited(QString)));
|
||||||
connect(nativeWidget, SIGNAL(textChanged(const QString&)), this, SIGNAL(textChanged(const QString&)));
|
connect(nativeWidget, SIGNAL(textChanged(QString)), this, SIGNAL(textChanged(QString)));
|
||||||
|
|
||||||
|
|
||||||
nativeWidget->setWindowFlags(nativeWidget->windowFlags()|Qt::BypassGraphicsProxyWidget);
|
nativeWidget->setWindowFlags(nativeWidget->windowFlags()|Qt::BypassGraphicsProxyWidget);
|
||||||
|
@ -86,8 +86,8 @@ WebView::WebView(QGraphicsItem *parent)
|
|||||||
this, SIGNAL(loadProgress(int)));
|
this, SIGNAL(loadProgress(int)));
|
||||||
connect(d->webView, SIGNAL(loadFinished(bool)),
|
connect(d->webView, SIGNAL(loadFinished(bool)),
|
||||||
this, SLOT(loadingFinished(bool)));
|
this, SLOT(loadingFinished(bool)));
|
||||||
connect(d->webView, SIGNAL(urlChanged(const QUrl &)),
|
connect(d->webView, SIGNAL(urlChanged(QUrl)),
|
||||||
this, SIGNAL(urlChanged(const QUrl &)));
|
this, SIGNAL(urlChanged(QUrl)));
|
||||||
}
|
}
|
||||||
|
|
||||||
WebView::~WebView()
|
WebView::~WebView()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user