gcc 4.8 seems to have a problem with connections directly
to a QPointer.
also, cleared a unused call wich resulted in error on OSX
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
We there relying on the old Sygnal Slot sintax, but QWidget
didn't had one of it's children methods. pass the children
directly.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Now I'v discovered a Slot that returns a bool, this is not very
good because Qt expects a slot to have the same return type
as the signal, void, always.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
bind1st and bind2nd are depreceated in C++11 because now we
have variadic templates, so remove them from the compile unit
if we are compilling in c++11 mode.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
* MavLink/master:
Warn on unsupported APM version
APM stack does not support RC cal start/stop
Harden code for missing params, handle APM special case
Fix default comp id detection
PX4 Firmware no longer requires mavlink USB start
Standard sizing for QGCView::showDialog
Standard sizing for QGCView::showDialog
UAS Object: Avoid spamming the console on successful commands
linux include required libraries
Show enumStringValue if available
Use combo box if enums available
Set proper default mode for VTOL
Teach mission manager about transition command
Support camera and VTOL transition commands
Better light disabled text color
Add better button highlight color for light theme
Change selected flight mode color
Update README.md
Simplifying Airframe config
Fixing crash bug.
Conflicts:
src/ui/MainWindow.cc
Also, added a missing method on AutoPilotPlugin as a public
pure virtual method (the inheritances already implemented it as a
slot, so the new Signal syntax didn't worked because the base class
didn't had that method)
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
The overloaded member signal just hit us, to use it is a pain
but the resuting code is faster and less error prone, so it's
still a good thing to do.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
C++2003 didn't had variadic templates so different number of
arguments must have been already implemented in the templates
and since it's impossible to get the amount ot different methods
that paople write, a variadic template was neede.
now we can connect signal / slots with 6+ arguments.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
First commit of modernizarion of Qt signal connections,
the new signal connection is very userfull because of a few
nice things:
- it's checked at compile time instead of runtime
- it can connect to any function or method, so we don't need
to use slots anymore
- it's way faster because it doesn't need to work with string
comparisson, but it's basically a direct call.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>