[brlcad-commits] SF.net SVN: brlcad:[35334]
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <ra...@us...> - 2009-07-28 02:51:32
|
Revision: 35334 http://brlcad.svn.sourceforge.net/brlcad/?rev=35334&view=rev Author: ralith Date: 2009-07-28 02:51:24 +0000 (Tue, 28 Jul 2009) Log Message: ----------- Prevent lag encountered when the commnand output label is displayed for the first time. Modified Paths: -------------- rt^3/trunk/src/g3d/CommandInterpreter.cxx rt^3/trunk/src/g3d/Console.cxx Modified: rt^3/trunk/src/g3d/CommandInterpreter.cxx =================================================================== --- rt^3/trunk/src/g3d/CommandInterpreter.cxx 2009-07-28 02:46:03 UTC (rev 35333) +++ rt^3/trunk/src/g3d/CommandInterpreter.cxx 2009-07-28 02:51:24 UTC (rev 35334) @@ -221,7 +221,7 @@ { std::map<QString, Command*>::const_iterator it = _commands.find(commandName); if (it == _commands.end()) { - return 0; + return NULL; } else { return (*it).second; } Modified: rt^3/trunk/src/g3d/Console.cxx =================================================================== --- rt^3/trunk/src/g3d/Console.cxx 2009-07-28 02:46:03 UTC (rev 35333) +++ rt^3/trunk/src/g3d/Console.cxx 2009-07-28 02:51:24 UTC (rev 35334) @@ -44,6 +44,8 @@ output->setText("Console output goes here."); output->setAutoFillBackground(true); output->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse); + // Prevent lag first time the output is shown. + output->show(); output->hide(); installEventFilter(output); layout->addWidget(output); @@ -57,6 +59,7 @@ QObject::connect(entry, SIGNAL(returnPressed(void)), this, SLOT(evalCmd(void))); + // TODO: Replace this with signal/slot Logger::instance().attach(this); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |