From f6841d2583d376726795acc376b8ca8df9634ca3 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 7 Jan 2013 14:56:07 +0100 Subject: Fix compile when QT_EVAL is defined Change-Id: Id1acae0c5941e5409ca540017c0c0139e1cc4d2f Reviewed-by: Samuli Piippo Reviewed-by: Thiago Macieira Reviewed-by: Iikka Eklund --- src/corelib/kernel/qtcore_eval.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/corelib/kernel/qtcore_eval.cpp') diff --git a/src/corelib/kernel/qtcore_eval.cpp b/src/corelib/kernel/qtcore_eval.cpp index 6be8e82a1b..1385dc8231 100644 --- a/src/corelib/kernel/qtcore_eval.cpp +++ b/src/corelib/kernel/qtcore_eval.cpp @@ -117,7 +117,7 @@ static int qt_eval_days_left() QDate today = QDate::currentDate(); QDate build = QLibraryInfo::buildDate(); - return qMax(-1, today.daysTo(build) + 30); + return qMax(-1, today.daysTo(build) + 30); } static QString qt_eval_string() @@ -198,7 +198,7 @@ void qt_core_eval_init(uint type) } #endif -#ifdef QT_BUILD_GUI_LIB +#ifdef QT_BUILD_WIDGETS_LIB QT_BEGIN_INCLUDE_NAMESPACE #include @@ -464,7 +464,7 @@ public: QFrame *border = new QFrame(this); QLabel *pixmap_label = new QLabel(border); - pixmap_label->setPixmap(qtlogo_eval_xpm); + pixmap_label->setPixmap(QPixmap(qtlogo_eval_xpm)); pixmap_label->setAlignment(Qt::AlignTop); QLabel *text_label = new QLabel(str, border); -- cgit v1.2.3