a?adido resize(en base a la imagen de fondo) en el constuctor de los widgets que lo necesitan para poder

posicionarse inicialmente
This commit is contained in:
Luis Ángel San Martín 2013-02-11 12:45:11 +01:00
parent c52230a5fe
commit 06174deb7f
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ NotificationsLabelWidget::NotificationsLabelWidget(QWidget * parent)
imgLabel->setGraphicsEffect(effect);
textLabel->setGraphicsEffect(effect2);
resize(203,120);
resize(p.size());
updatePosition();
}

View File

@ -38,8 +38,8 @@ PageLabelWidget::PageLabelWidget(QWidget * parent)
//textLabel->setFont(QFont("courier new bold", 12));
//textLabel->resize(100,25);
textLabel->setGeometry(imgLabel->geometry());
resize(p.size());
updatePosition();
/*QSize size = textLabel->sizeHint();
int w = width(); // returns screen width