void addOrderWidget( const int index, const Good::Type good, Widget* area, T storageBuiding ) { Point offset( 0, 25 ); Size wdgSize( area->width(), 25 ); new OrderGoodWidget<T>( area, Rect( offset * index, wdgSize), good, storageBuiding ); }
void addOrderWidget( const int index, const GoodType good, T storageBuiding ) { Point offset( 0, 25 ); Size wdgSize( gbOrdersInsideArea->getWidth(), 25 ); new OrderGoodWidget<T>( gbOrdersInsideArea, Rect( offset * index, wdgSize), good, storageBuiding ); }