[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Strange ambiguousity with ENABLE_FINAL and Qt::TextInteractionFlags
From: "Friedrich W. H. Kossebau" <kossebau () kde ! org>
Date: 2012-06-11 19:16:58
Message-ID: 1720961.QlfYQUNER6 () klux ! site
[Download RAW message or body]
Hi,
compiling Okteta with KDE4_ENABLE_FINAL I have hit a strange error which
left me clueless so far. The line
mLocationLabel->setTextInteractionFlags( Qt::TextSelectableByMouse|
Qt::TextSelectableByKeyboard );
which compiles flawlessly in a normal build results in this error:
[ 62%] Building CXX object
okteta/kasten/controllers/CMakeFiles/oktetakastencontrollers.dir/oktetakastencontrollers_final_cpp.o \
In file included from
/home/koder/Kode/kdesvn/trunk/KDE/build/kdesdk/okteta/kasten/controllers/oktetakastencontrollers_final_cpp.cpp:5:0: \
/home/koder/Kode/kdesvn/trunk/KDE/kdesdk/okteta/kasten/controllers/document/info/documentinfoview.cpp: \
In constructor
‘Kasten2::DocumentInfoView::DocumentInfoView(Kasten2::DocumentInfoTool*,
QWidget*)':
/home/koder/Kode/kdesvn/trunk/KDE/kdesdk/okteta/kasten/controllers/document/info/documentinfoview.cpp:99:101: \
error: conversion from ‘int' to ‘Qt::TextInteractionFlags {aka
QFlags<Qt::TextInteractionFlag>}' is ambiguous
/home/koder/Kode/kdesvn/trunk/KDE/kdesdk/okteta/kasten/controllers/document/info/documentinfoview.cpp:99:101: \
note: candidates are:
/usr/include/QtCore/qglobal.h:2285:29: note:
QFlags<Enum>::QFlags(QFlags<Enum>::Zero) [with Enum = Qt::TextInteractionFlag,
QFlags<Enum>::Zero = void**] <near match>
/usr/include/QtCore/qglobal.h:2285:29: note: no known conversion for
argument 1 from ‘int' to ‘void**'
/usr/include/QtCore/qglobal.h:2284:29: note: QFlags<Enum>::QFlags(Enum) [with
Enum = Qt::TextInteractionFlag] <near match>
/usr/include/QtCore/qglobal.h:2284:29: note: no known conversion for
argument 1 from ‘int' to ‘Qt::TextInteractionFlag'
/usr/include/QtGui/qlabel.h:113:10: error: initializing argument 1 of ‘void
QLabel::setTextInteractionFlags(Qt::TextInteractionFlags)'
I could fix it by wrapping the | operation with Qt::TextInteractionFlags(...),
but would prefer to know why the compiler suddenly sees that ambiguousity.
Anyone experienced a similar problem before and/or has a clue?
Cheers
Friedrich
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic