Consider the situation shown in figure. What are the signs of q1 and q2?
q1 is negative and q2 is positive
The way we have defined electric field lines is that they originate from positive charge or infinity and terminate on negative charge or infinity. So if we have a closer look of the diagram we can see they originate from q2 and terminate at q1. This means q2 is positive and q1 is negative.