[brlcad-commits] SF.net SVN: brlcad:[35617]
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <ra...@us...> - 2009-08-18 21:53:06
|
Revision: 35617 http://brlcad.svn.sourceforge.net/brlcad/?rev=35617&view=rev Author: ralith Date: 2009-08-18 21:52:56 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Cleaned up empty argument lists in calls to QObject::connect and made the command dialog auto-hide when a command is ran. Modified Paths: -------------- rt^3/trunk/src/g3d/CommandDialog.cxx rt^3/trunk/src/g3d/MainWindow.cxx Modified: rt^3/trunk/src/g3d/CommandDialog.cxx =================================================================== --- rt^3/trunk/src/g3d/CommandDialog.cxx 2009-08-18 21:06:27 UTC (rev 35616) +++ rt^3/trunk/src/g3d/CommandDialog.cxx 2009-08-18 21:52:56 UTC (rev 35617) @@ -33,8 +33,11 @@ setWindowFlags(Qt::FramelessWindowHint); setupUi(this); - QObject::connect(runButton, SIGNAL(clicked(void)), - entry, SLOT(entryComplete(void))); + QObject::connect(runButton, SIGNAL(clicked()), + entry, SLOT(entryComplete())); + + QObject::connect(runButton, SIGNAL(clicked()), + this, SLOT(hide())); } void CommandDialog::focusInEvent(QFocusEvent *) Modified: rt^3/trunk/src/g3d/MainWindow.cxx =================================================================== --- rt^3/trunk/src/g3d/MainWindow.cxx 2009-08-18 21:06:27 UTC (rev 35616) +++ rt^3/trunk/src/g3d/MainWindow.cxx 2009-08-18 21:52:56 UTC (rev 35617) @@ -63,22 +63,22 @@ QObject::connect(cameraProjection, SIGNAL(activated(int)), ogreView, SLOT(setProjection(int))); QObject::connect(cameraProjection, SIGNAL(activated(int)), - window, SLOT(setFocus(void))); + window, SLOT(setFocus())); QObject::connect(cameraMode, SIGNAL(activated(int)), ogreView, SLOT(setCameraMode(int))); QObject::connect(cameraMode, SIGNAL(activated(int)), - window, SLOT(setFocus(void))); + window, SLOT(setFocus())); QObject::connect(console, SIGNAL(commandRan(QString)), cmdInterp, SLOT(execute(QString))); QObject::connect(cmdInterp, SIGNAL(commandDone(QString)), console, SLOT(pushOutput(QString))); - QObject::connect(commandButton, SIGNAL(clicked(void)), - cmdDialog, SLOT(show(void))); - QObject::connect(commandButton, SIGNAL(clicked(void)), - cmdDialog, SLOT(setFocus(void))); + QObject::connect(commandButton, SIGNAL(clicked()), + cmdDialog, SLOT(show())); + QObject::connect(commandButton, SIGNAL(clicked()), + cmdDialog, SLOT(setFocus())); // Give focus to the render area, and thus camera control. window->setFocus(Qt::OtherFocusReason); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |