QT重載賦值操做符=

bool operator =(const ShutcutSetWidget& other)const;

bool ShutcutSetWidget::operator =(const ShutcutSetWidget& other)const
{
    if (keyMode==other.keyMode && keyNum==other.keyNum) {
        return true;
    }
    else {
        return false;
    }
}
相關文章
相關標籤/搜索