1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

update qqtcheckbox

This commit is contained in:
tianduanrui 2020-04-27 22:41:15 +08:00
parent 0f2b8b97ce
commit e3614ce591
2 changed files with 4 additions and 10 deletions

View File

@ -163,12 +163,6 @@ void QQtCheckBox::paintEvent ( QPaintEvent* event )
//把imageTable()[stat]设置到mImage。
translateImage();
#if 0
//如果把translateImage放在外边就需要这个代码作为对初始化的判断。
if ( mImage.isNull() )
translateImage();
#endif
if ( mImage.isNull() )
return QCheckBox::paintEvent ( event );

View File

@ -1,4 +1,4 @@
#include "giftestdialog.h"
#include "giftestdialog.h"
#include "ui_giftestdialog.h"
#include "qqtframe.h"
@ -28,10 +28,10 @@ GifTestDialog::GifTestDialog ( QWidget* parent ) :
#endif
//使用了res函数以后 代码得到了极大简化
pline() << res ( "waiting.gif" );
pline() << res ( "../waiting.gif" );
pline() << conf_res ( "waiting.gif" );
pline() << conf_res ( "../waiting.gif" );
pline() << QDir ( "." ).relativeFilePath ( "skin/yun.png" );
pline() << QDir ( res ( "../waiting.gif" ) ).absolutePath();
pline() << QDir ( conf_res ( "../waiting.gif" ) ).absolutePath();
ui->labelGif->setGifFile ( conf_skin ( "waiting.gif" ) );
ui->widgetGif->setGifFile ( conf_skin ( "waiting.gif" ) );
ui->widgetQQt->setPixmap ( conf_skin ( "yun.png" ) );