Added inSubnet() function for compatibility with Qt < 4.5
Tests for inSubnet()