mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update qqtcheckbox
This commit is contained in:
parent
95a61b5f72
commit
9d99dbed13
@ -163,6 +163,12 @@ void QQtCheckBox::paintEvent ( QPaintEvent* event )
|
|||||||
//把imageTable()[stat]设置到mImage。
|
//把imageTable()[stat]设置到mImage。
|
||||||
translateImage();
|
translateImage();
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
//这个代码是测试代码。如果把translateImage放在外边,就需要这个代码,作为对初始化的判断。
|
||||||
|
if ( mImage.isNull() )
|
||||||
|
translateImage();
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( mImage.isNull() )
|
if ( mImage.isNull() )
|
||||||
return QCheckBox::paintEvent ( event );
|
return QCheckBox::paintEvent ( event );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user