도와주십쇼 ㅋㅋㅋ

bigdaddy2001의 이미지

 if(widget == Number0)
    {
           }
    else if(widget == Number1)
    {
                strBuf += QString("1");
    }
    else if(widget == Number2)
    {
                strBuf += QString("2");
    }
    else if(widget == Plus)
    {
        if((strBuf.toAscii().data())[strBuf.length()-1] != '+' && (strBuf.toAscii().data())[strBuf.length()-1] != '-' && (strBuf.toAscii().data())[strBuf.length()-1] != '*' && (strBuf.toAscii().data())[strBuf.length()-1] != '/')
        {
            strBuf += QString("+");
        }
    }
    else if(widget == Minus)
    {
        if((strBuf.toAscii().data())[strBuf.length()-1] != '+' && (strBuf.toAscii().data())[strBuf.length()-1] != '-' && (strBuf.toAscii().data())[strBuf.length()-1] != '*' && (strBuf.toAscii().data())[strBuf.length()-1] != '/')
        {
            strBuf += QString("-");
        }
    }
    else if(widget == Equal)
    {
        strBuf = QString("result:");
    }
 
 
......

이런식으로 구성되잇구요 마지막에 Equal에 갑을 넣으려면 어떻게해야되나요
jick의 이미지

을도 아니고... 패기넘치는 코드로군요 ㄷㄷㄷ