class SubProjectItem : public QTreeWidgetItem
{
public:
- SubProjectItem(double display_ratio, QTreeWidgetItem * parent, int in, int out, QString description = QString());
+ SubProjectItem(double display_ratio, QTreeWidgetItem * parent, int in, int out, const QString& description = QString());
virtual ~SubProjectItem();
QDomElement toXml() const;
int numReferences() const;
QPoint zone() const;
void setZone(const QPoint &p);
QString description() const;
- void setDescription(QString desc);
+ void setDescription(const QString& desc);
static int itemDefaultHeight();
/** Make sure folders appear on top of the tree widget */
virtual bool operator<(const QTreeWidgetItem &other)const {
int column = treeWidget()->sortColumn();
- if (other.type() != PROJECTFOLDERTYPE)
+ if (other.type() != ProjectFoldeType)
return text(column).toLower() < other.text(column).toLower();
else return false;
}