Skip to content

Commit

Permalink
Add compatibility with qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Jun 17, 2015
1 parent b2499ea commit be7a4e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ypspur_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ void YPSpur_gui::setParamFile(QString fileName)
settings.setValue("coordinator/param", paramFile);
}

#if QT_VERSION >= 0x050000
void YPSpur_gui::on_portList_currentTextChanged(const QString &arg1)
#else
void YPSpur_gui::on_portList_textChanged(const QString &arg1)
#endif
{
if(!arg1.isNull())
{
Expand Down
4 changes: 4 additions & 0 deletions ypspur_gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ private slots:
void coordinatorQuit(int exitCode);

void on_parameterBrowse_clicked();
#if QT_VERSION >= 0x050000
void on_portList_currentTextChanged(const QString &arg1);
#else
void on_portList_textChanged(const QString &arg1);
#endif
void on_interpreterCommand_returnPressed();
void on_coordinatorDefaultParam_clicked();
void on_coordinatorPath_textChanged(const QString &arg1);
Expand Down

0 comments on commit be7a4e9

Please sign in to comment.