The quality of an interval is also influenced by accidentals. The major can become minor and vice versa.