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
0f2b8b97ce
commit
e3614ce591
@ -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 );
|
||||
|
||||
|
@ -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" ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user