Kneser's theorem in q-calculus