const ref fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776990
This commit is contained in:
parent
b19eb3eaff
commit
756041badd
@ -278,7 +278,7 @@ void AppletBrowserWidget::appletDestroyed(QObject* applet)
|
||||
d->itemModel.setRunningApplets(name, count);
|
||||
}
|
||||
|
||||
void AppletBrowserWidget::destroyApplets(QString name)
|
||||
void AppletBrowserWidget::destroyApplets(const QString &name)
|
||||
{
|
||||
Plasma::Corona *c = d->containment->corona();
|
||||
|
||||
|
@ -72,7 +72,7 @@ protected Q_SLOTS:
|
||||
/**
|
||||
* Destroy all applets with this name
|
||||
*/
|
||||
void destroyApplets(const QString name);
|
||||
void destroyApplets(const QString &name);
|
||||
|
||||
/**
|
||||
* Launches a download dialog to retrieve new applets from the Internet
|
||||
|
@ -151,7 +151,7 @@ void PlasmaAppletItemModel::populateModel()
|
||||
}
|
||||
}
|
||||
|
||||
void PlasmaAppletItemModel::setRunningApplets(const QHash<QString, int> apps)
|
||||
void PlasmaAppletItemModel::setRunningApplets(const QHash<QString, int> &apps)
|
||||
{
|
||||
//foreach item, find that string and set the count
|
||||
for (int r=0; r<rowCount(); ++r) {
|
||||
@ -163,7 +163,7 @@ void PlasmaAppletItemModel::setRunningApplets(const QHash<QString, int> apps)
|
||||
}
|
||||
}
|
||||
|
||||
void PlasmaAppletItemModel::setRunningApplets(const QString name, int count)
|
||||
void PlasmaAppletItemModel::setRunningApplets(const QString &name, int count)
|
||||
{
|
||||
for (int r=0; r<rowCount(); ++r) {
|
||||
QStandardItem *i = item(r);
|
||||
@ -207,7 +207,7 @@ QMimeData* PlasmaAppletItemModel::mimeData(const QModelIndexList & indexes) cons
|
||||
return data;
|
||||
}
|
||||
|
||||
void PlasmaAppletItemModel::setFavorite(QString plugin, bool favorite)
|
||||
void PlasmaAppletItemModel::setFavorite(const QString &plugin, bool favorite)
|
||||
{
|
||||
if (favorite) {
|
||||
if (!m_favorites.contains(plugin)) {
|
||||
|
@ -69,10 +69,10 @@ public:
|
||||
|
||||
QMimeData* mimeData(const QModelIndexList & indexes) const;
|
||||
|
||||
void setFavorite(QString plugin, bool favorite);
|
||||
void setFavorite(const QString &plugin, bool favorite);
|
||||
void setApplication(const QString& app);
|
||||
void setRunningApplets(const QHash<QString, int> apps);
|
||||
void setRunningApplets(const QString name, int count);
|
||||
void setRunningApplets(const QHash<QString, int> &apps);
|
||||
void setRunningApplets(const QString &name, int count);
|
||||
|
||||
QString& Application();
|
||||
private:
|
||||
|
@ -205,7 +205,7 @@ Qt::Alignment Meter::labelAlignment(int index) const
|
||||
return d->alignments[index];
|
||||
}
|
||||
|
||||
void Meter::dataUpdated(QString sourceName, Plasma::DataEngine::Data data)
|
||||
void Meter::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
||||
{
|
||||
Q_UNUSED(sourceName)
|
||||
|
||||
@ -217,7 +217,7 @@ void Meter::dataUpdated(QString sourceName, Plasma::DataEngine::Data data)
|
||||
}
|
||||
}
|
||||
|
||||
void Meter::setSvg(QString svg)
|
||||
void Meter::setSvg(const QString &svg)
|
||||
{
|
||||
d->svg = svg;
|
||||
delete d->image;
|
||||
|
@ -113,7 +113,7 @@ public:
|
||||
/**
|
||||
* Set svg file name
|
||||
*/
|
||||
void setSvg(QString svg);
|
||||
void setSvg(const QString &svg);
|
||||
|
||||
/**
|
||||
* @return svg file name
|
||||
@ -192,7 +192,7 @@ public Q_SLOTS:
|
||||
/**
|
||||
* Used when connecting to a DataEngine
|
||||
*/
|
||||
void dataUpdated(QString sourceName, Plasma::DataEngine::Data data);
|
||||
void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
@ -430,7 +430,7 @@ void Widget::managingLayoutChanged()
|
||||
}
|
||||
}
|
||||
|
||||
QPoint Widget::popupPosition(const QSize s) const
|
||||
QPoint Widget::popupPosition(const QSize &s) const
|
||||
{
|
||||
QPoint pos = view()->mapFromScene(scenePos());
|
||||
pos = view()->mapToGlobal(pos);
|
||||
|
@ -285,7 +285,7 @@ public:
|
||||
* @param s size of the popup
|
||||
* @returns recomended position
|
||||
*/
|
||||
QPoint popupPosition(const QSize s) const;
|
||||
QPoint popupPosition(const QSize &s) const;
|
||||
|
||||
/**
|
||||
* Reimplemented from QGraphicsItem
|
||||
|
Loading…
Reference in New Issue
Block a user