The function is unused, but gets used when developers are doing
debugging. So instead of removing it completely, make it inline
non-static.
I've also moved it to a better place, so we don't forget about it.
Change-Id: Id751869e6d6a7d46b4985ef9c09f45661e8cf839
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
bool locateWidget(QWidget* w, int& row, int& col, int& rowspan, int& colspan) const;
QDebug debug(QDebug str) const;
+ friend inline QDebug operator<<(QDebug str, const Grid &g)
+ { return g.debug(str); }
private:
void setCell(int row, int col, QWidget* w) { m_cells[ row * m_ncols + col] = w; }
return str;
}
-static inline QDebug operator<<(QDebug str, const Grid &g) { return g.debug(str); }
-
void Grid::setCells(const QRect &c, QWidget* w)
{
const int bottom = c.top() + c.height();