Message: previous - next
Month: August 2012

Re: [trinity-devel] [FOUND] Re: [trinity-devel] tdevelop FTBFS 3.5.13-sru, error: 'App' was not declared in this scope

From: Francois Andriot <francois.andriot@...>
Date: Sat, 11 Aug 2012 09:45:49 +0200
Le 11/08/2012 03:47, David C. Rankin a écrit :
> On 08/10/2012 11:01 AM, David C. Rankin wrote:
>> void ListEditor::addItem()
>> {
>>      TQListViewItem *i = new TQListViewItem( listview, listview->lastItem() );
>>      i->setRenameEnabled( 0, TRUE );
>>      App->processEvents();
>>      i->startRename( 0 );
>> }
>> What needs to be fixed to prevent this from happening? I've looked at the
>> CMakeLists.txt files and ConfigureChecks.cmake I can't find it being done there,
>> so what is doing it?
> Any thoughts? I would like to change [FOUND] to [SOLVED] :)

Hello, using tqtinterface 3.5.13 (not SRU), it works for me if I rename 
"tqApp" with "qApp" in "listeditor.ui.h".
But if I leave "tqApp", it is modified to "App" and causes FTBFS, as you 

I think the culprit is uic-tqt, which calls the tqt-replace script, 
which contains lots of sed commands. See line 14 of the script.

Try and see yourself:
sed 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' listeditor.ui.h