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;
    }
}
相关文章
相关标签/搜索