1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

Fix Qt 4 build: QGridLayout::getItemPosition () is not constant :(

This commit is contained in:
Mike Gelfand 2015-04-18 14:48:23 +00:00
parent 9f8402697b
commit adde87a99e

View file

@ -16,7 +16,7 @@
namespace
{
int
itemColumnSpan (const QGridLayout * layout, const QLayoutItem * item)
itemColumnSpan (QGridLayout * layout, const QLayoutItem * item)
{
for (int i = 0, count = layout->count (); i < count; ++i)
{
@ -60,7 +60,7 @@ void
ColumnResizer::update ()
{
int maxWidth = 0;
for (const QGridLayout * const layout: myLayouts)
for (QGridLayout * const layout: myLayouts)
{
for (int i = 0, count = layout->rowCount (); i < count; ++i)
{