trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: August 2012

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

From: "David C. Rankin" <drankinatty@...>
Date: Fri, 10 Aug 2012 11:01:59 -0500
On 08/10/2012 10:18 AM, David C. Rankin wrote:
> 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...

That was it! I patched listeditor.ui.h to add 'tq' back to 'tqApp' and tdevelop
built fine:

4231024 Aug 10 10:28 tde-tdevelop-3.5.13_sru-1-x86_64.pkg.tar.xz

What I cannot find however is where the 'tq' is being stripped from the
listeditor.ui.h file? Where does this happen?

In the GIT tree, the code is:

void ListEditor::addItem()
{
    TQListViewItem *i = new TQListViewItem( listview, listview->lastItem() );
    i->setRenameEnabled( 0, TRUE );
    tqApp->processEvents();
    i->startRename( 0 );
}

HOWEVER, when cmake creates the sources in the build/ directory, the 'tq' is
stripped from the file leaving:

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?

-- 
David C. Rankin, J.D.,P.E.