Constructs a new DBus message representing an error reply message,
with the given \a name and \a msg.
*/
-QDBusMessage QDBusMessage::createErrorReply(const QString name, const QString &msg) const
+QDBusMessage QDBusMessage::createErrorReply(const QString &name, const QString &msg) const
{
QDBusMessage reply = QDBusMessage::createError(name, msg);
if (d_ptr->msg)
inline QDBusMessage createReply(const QVariant &argument) const
{ return createReply(QList<QVariant>() << argument); }
- QDBusMessage createErrorReply(const QString name, const QString &msg) const;
+ QDBusMessage createErrorReply(const QString &name, const QString &msg) const;
inline QDBusMessage createErrorReply(const QDBusError &err) const
{ return createErrorReply(err.name(), err.message()); }
QDBusMessage createErrorReply(QDBusError::ErrorType type, const QString &msg) const;
\sa removeAction(), QMenu, addAction(), QWidget::addActions()
*/
-void QGraphicsWidget::addActions(QList<QAction *> actions)
+void QGraphicsWidget::addActions(const QList<QAction *> &actions)
{
for (int i = 0; i < actions.count(); ++i)
insertAction(0, actions.at(i));
\sa removeAction(), QMenu, insertAction(), QWidget::insertActions()
*/
-void QGraphicsWidget::insertActions(QAction *before, QList<QAction *> actions)
+void QGraphicsWidget::insertActions(QAction *before, const QList<QAction *> &actions)
{
for (int i = 0; i < actions.count(); ++i)
insertAction(before, actions.at(i));
#ifndef QT_NO_ACTION
//actions
void addAction(QAction *action);
- void addActions(QList<QAction*> actions);
+ void addActions(const QList<QAction*> &actions);
void insertAction(QAction *before, QAction *action);
- void insertActions(QAction *before, QList<QAction*> actions);
+ void insertActions(QAction *before, const QList<QAction*> &actions);
void removeAction(QAction *action);
QList<QAction*> actions() const;
#endif
\sa colorTable(), setColor(), {QImage#Image Transformations}{Image
Transformations}
*/
-void QImage::setColorTable(const QVector<QRgb> colors)
+void QImage::setColorTable(const QVector<QRgb> &colors)
{
if (!d)
return;
{ setPixel(pt.x(), pt.y(), index_or_rgb); }
QVector<QRgb> colorTable() const;
- void setColorTable(const QVector<QRgb> colors);
+ void setColorTable(const QVector<QRgb> &colors);
void fill(uint pixel);
void fill(const QColor &color);
\sa removeAction(), QMenu, addAction()
*/
-void QWidget::addActions(QList<QAction*> actions)
+void QWidget::addActions(const QList<QAction*> &actions)
{
for(int i = 0; i < actions.count(); i++)
insertAction(0, actions.at(i));
\sa removeAction(), QMenu, insertAction(), contextMenuPolicy
*/
-void QWidget::insertActions(QAction *before, QList<QAction*> actions)
+void QWidget::insertActions(QAction *before, const QList<QAction*> &actions)
{
for(int i = 0; i < actions.count(); ++i)
insertAction(before, actions.at(i));
#ifndef QT_NO_ACTION
//actions
void addAction(QAction *action);
- void addActions(QList<QAction*> actions);
+ void addActions(const QList<QAction*> &actions);
void insertAction(QAction *before, QAction *action);
- void insertActions(QAction *before, QList<QAction*> actions);
+ void insertActions(QAction *before, const QList<QAction*> &actions);
void removeAction(QAction *action);
QList<QAction*> actions() const;
#endif
\sa popup(), QWidget::mapToGlobal()
*/
-QAction *QMenu::exec(QList<QAction*> actions, const QPoint &pos, QAction *at, QWidget *parent)
+QAction *QMenu::exec(const QList<QAction*> &actions, const QPoint &pos, QAction *at, QWidget *parent)
{
QMenu menu(parent);
menu.addActions(actions);
QAction *exec();
QAction *exec(const QPoint &pos, QAction *at = Q_NULLPTR);
- static QAction *exec(QList<QAction*> actions, const QPoint &pos,
+ static QAction *exec(const QList<QAction*> &actions, const QPoint &pos,
QAction *at = Q_NULLPTR, QWidget *parent = Q_NULLPTR);
QSize sizeHint() const;