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);
}
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;
emit extractingFinished();
}
-QString ArchiveWidget::extractedProjectFile()
+QString ArchiveWidget::extractedProjectFile() const
{
return archive_url->url().path(KUrl::AddTrailingSlash) + m_projectName;
}
explicit ArchiveWidget(const KUrl &url, QWidget * parent = 0);
~ArchiveWidget();
- QString extractedProjectFile();
+ QString extractedProjectFile() const;
private slots:
void slotCheckSpace();
return color;
}
-static QString colorToString(QColor color, bool alpha)
+static QString colorToString(const QColor &color, bool alpha)
{
QString colorStr;
QTextStream stream(&colorStr);
#ifndef CHOOSECOLORWIDGET_H
#define CHOOSECOLORWIDGET_H
-#include <QtCore>
#include <QWidget>
class KColorButton;