Commit 817cce99 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent 58c5d98d
......@@ -92,17 +92,17 @@ CustomTrackScene* AbstractGroupItem::projectScene()
return NULL;
}
QPainterPath AbstractGroupItem::clipGroupSpacerShape(QPointF offset) const
QPainterPath AbstractGroupItem::clipGroupSpacerShape(const QPointF &offset) const
{
return spacerGroupShape(AVWIDGET, offset);
}
QPainterPath AbstractGroupItem::clipGroupShape(QPointF offset) const
QPainterPath AbstractGroupItem::clipGroupShape(const QPointF &offset) const
{
return groupShape(AVWIDGET, offset);
}
QPainterPath AbstractGroupItem::transitionGroupShape(QPointF offset) const
QPainterPath AbstractGroupItem::transitionGroupShape(const QPointF &offset) const
{
return groupShape(TRANSITIONWIDGET, offset);
}
......
......@@ -40,9 +40,9 @@ public:
void addItem(QGraphicsItem * item);
void removeItem(QGraphicsItem * item);
int track() const;
QPainterPath clipGroupShape(QPointF offset) const;
QPainterPath clipGroupSpacerShape(QPointF offset) const;
QPainterPath transitionGroupShape(QPointF offset) const;
QPainterPath clipGroupShape(const QPointF &offset) const;
QPainterPath clipGroupSpacerShape(const QPointF &offset) const;
QPainterPath transitionGroupShape(const QPointF &offset) const;
void setItemLocked(bool locked);
bool isItemLocked() const;
// ItemInfo info() const;
......
......@@ -903,7 +903,7 @@ void ArchiveWidget::doExtracting()
emit extractingFinished();
}
QString ArchiveWidget::extractedProjectFile()
QString ArchiveWidget::extractedProjectFile() const
{
return archive_url->url().path(KUrl::AddTrailingSlash) + m_projectName;
}
......
......@@ -58,7 +58,7 @@ public:
explicit ArchiveWidget(const KUrl &url, QWidget * parent = 0);
~ArchiveWidget();
QString extractedProjectFile();
QString extractedProjectFile() const;
private slots:
void slotCheckSpace();
......
......@@ -68,7 +68,7 @@ static QColor stringToColor(QString strColor)
return color;
}
static QString colorToString(QColor color, bool alpha)
static QString colorToString(const QColor &color, bool alpha)
{
QString colorStr;
QTextStream stream(&colorStr);
......
......@@ -21,7 +21,6 @@
#ifndef CHOOSECOLORWIDGET_H
#define CHOOSECOLORWIDGET_H
#include <QtCore>
#include <QWidget>
class KColorButton;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment