From 06174deb7f59f3e493279611a254db294883b422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 11 Feb 2013 12:45:11 +0100 Subject: [PATCH] a?adido resize(en base a la imagen de fondo) en el constuctor de los widgets que lo necesitan para poder posicionarse inicialmente --- YACReader/notifications_label_widget.cpp | 2 +- YACReader/page_label_widget.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/YACReader/notifications_label_widget.cpp b/YACReader/notifications_label_widget.cpp index f40debda..70eded09 100644 --- a/YACReader/notifications_label_widget.cpp +++ b/YACReader/notifications_label_widget.cpp @@ -43,7 +43,7 @@ NotificationsLabelWidget::NotificationsLabelWidget(QWidget * parent) imgLabel->setGraphicsEffect(effect); textLabel->setGraphicsEffect(effect2); - resize(203,120); + resize(p.size()); updatePosition(); } diff --git a/YACReader/page_label_widget.cpp b/YACReader/page_label_widget.cpp index eaa70c7b..63385bd6 100644 --- a/YACReader/page_label_widget.cpp +++ b/YACReader/page_label_widget.cpp @@ -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