Skip to content

Commit

Permalink
Update C++ source for Qt5.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Venator committed Jun 10, 2016
1 parent 3255ab8 commit 5b5e61c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/swri_console/console_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ConsoleMaster : public QObject
Q_OBJECT;

public:
ConsoleMaster();
ConsoleMaster(int argc, char** argv);
virtual ~ConsoleMaster();

public Q_SLOTS:
Expand Down
2 changes: 1 addition & 1 deletion include/swri_console/console_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef SWRI_CONSOLE_CONSOLE_WINDOW_H_
#define SWRI_CONSOLE_CONSOLE_WINDOW_H_

#include <QtGui/QMainWindow>
#include <QtWidgets/QMainWindow>
#include <QColor>
#include <QPushButton>
#include <QSettings>
Expand Down
2 changes: 1 addition & 1 deletion include/swri_console/ros_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace swri_console
{
Q_OBJECT
public:
RosThread();
RosThread(int argc, char** argv);
/*
* Shuts down ROS and causes the thread to exit.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/console_master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

namespace swri_console
{
ConsoleMaster::ConsoleMaster()
:
ConsoleMaster::ConsoleMaster(int argc, char** argv):
ros_thread_(argc, argv),
connected_(false),
window_font_(QFont("Ubuntu Mono", 9))
{
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int main(int argc, char **argv)
QCoreApplication::setOrganizationDomain("swri.org");
QCoreApplication::setApplicationName("SwRI Console");

swri_console::ConsoleMaster master;
swri_console::ConsoleMaster master(argc, argv);
master.createNewWindow();
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
int result = app.exec();
Expand Down
5 changes: 2 additions & 3 deletions src/ros_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@

using namespace swri_console;

RosThread::RosThread() :
RosThread::RosThread(int argc, char** argv) :
is_connected_(false),
is_running_(true)
{
int argc = QCoreApplication::argc();
ros::init(argc, QCoreApplication::argv(), "swri_console",
ros::init(argc, argv, "swri_console",
ros::init_options::AnonymousName |
ros::init_options::NoRosout);
}
Expand Down

0 comments on commit 5b5e61c

Please sign in to comment.