On 08/10/2012 09:34 AM, David C. Rankin wrote:
On 08/10/2012 09:30 AM, David C. Rankin wrote:
If there was a problem with my tqtinterface, I
would have expected to see
it pop up in a lot more places. The only includes in listeditor.ui.h are:
#include <tqheader.h>
#include <tqapplication.h>
Will that pull in the tqApp->qApp definition?
I find the definition in /usr/include/tqt/tqt.h:
tqt.h:#define tqApp qApp
Is there any reason you can think of that tdevelop/kdevdesigner/designer would
miss pulling it in? CMakeLists.txt?
Something is really strange here! I included tqt.h directly in the
listeditor.ui.h file and it still complains about no App:
10:03 archangel:/dat_e/ch35/david/build> head -n20
src/build/kdevdesigner/designer/listeditor.ui.h
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename slots use Qt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/
#include <tqheader.h>
#include <tqapplication.h>
#include <tqt.h>
^^^^^^^^^^^^^^^^
Same error. I also notice tqt.h is included directly in the compile command as
well:
[ 89%] Building CXX object
kdevdesigner/designer/CMakeFiles/libkdevdesignerpart-module.dir/listeditor.cpp.o
cd /build/src/build/kdevdesigner/designer && /usr/bin/c++
-Dlibkdevdesignerpart_module_EXPORTS -DHAVE_CONFIG_H -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -DDESIGNER -march=x86-64 -mtune=generic -O2
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-Wno-deprecated -include tqt.h -fPIC -I/build/src/build/kdevdesigner/designer
-I/build/src/tdevelop/kdevdesigner/designer
-I/build/src/tdevelop/kdevdesigner/shared
-I/build/src/tdevelop/lib/interfaces/external -I/opt/trinity/include
-I/opt/qt3/include -I/usr/include/tqt -include tqt.h -UQT_NO_ASCII_CAST -o
CMakeFiles/libkdevdesignerpart-module.dir/listeditor.cpp.o -c
/build/src/build/kdevdesigner/designer/listeditor.cpp
In file included from /build/src/build/kdevdesigner/designer/listeditor.cpp:22:0:
/build/src/build/kdevdesigner/designer/listeditor.ui.h: In member function
'virtual void ListEditor::addItem()':
/build/src/build/kdevdesigner/designer/listeditor.ui.h:34:5: error: 'App' was
not declared in this scope
make[2]: ***
[kdevdesigner/designer/CMakeFiles/libkdevdesignerpart-module.dir/listeditor.cpp.o]
Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: ***
[kdevdesigner/designer/CMakeFiles/libkdevdesignerpart-module.dir/all] Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2
With '#define tqApp qApp' in tqt.h, why the heck is this failing when
it gets to:
void ListEditor::addItem()
{
QListViewItem *i = new QListViewItem( listview, listview->lastItem() );
i->setRenameEnabled( 0, TRUE );
App->processEvents();
^^^
i->startRename( 0 );
}
SMACK!!! (where the hell is the 'q' or 'tq' in front of 'App'?)
SOMEBODY DROPPED A 'q' OR 'tq' in the CMake files. It is
'tqApp->processEvents();' in the GIT tree, but
'App->processEvents();' when it
gets to the CMake build/ directory...... Who is the guilty dog...
--
David C. Rankin, J.D.,P.E.