Pittsburgh sent defenseman Simon Despres to the Ducks to re-acquire the 31-year-old Lovejoy, who began his career with the Penguins in 2008 as an undrafted free agent. He appeared in 98 games with Pittsburgh, registering a plus-20 rating. The Penguins sent him to Anaheim in 2013 for a fifth-round selection.
Lovejoy, who missed more than a month with a fractured finger he suffered in October, recorded one goal and 11 assists in 40 games for the Ducks this season. In 248 career games, he has 64 points.
Despres, 23 was a first-round selection in 2009. In 59 games this season, he posted two goals and 15 assists.
Pittsburgh also acquired defenseman Ian Cole from St. Louis on Monday, in exchange for defenseman Robert Bortuzzo and a 2016 seventh-round pick.