Skip to content

Qt5 support for CalcQt example #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 12, 2016
Merged

Conversation

konserw
Copy link
Contributor

@konserw konserw commented Feb 13, 2016

Now CalcQt example should work on both Qt4 and Qt5.
I think this also fixes issue #83 as i've changed calcqt library to libcalcqt.

find_package(Qt4 COMPONENTS QtCore QtGui QtTest)
set(CALCQT_HEADERS src/CalculatorWidget.h)
set(CALCQT_SOURCES src/CalcQt.cpp src/CalculatorWidget.cpp)
set(LIBCALCQT_BUILD OFF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is LIBCALCQT_BUILD really needed? If it's for the if(LIBCALCQT_BUILD) later on, can't you use the QT_LIBRARIES variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea ;) Let's check that.

@paoloambrosio
Copy link
Member

Nice PR! I trust you have tested it with QT5, and I have with QT4. Apart from the comment it should be ready to merge.

@konserw
Copy link
Contributor Author

konserw commented Mar 12, 2016

Ok, now it should be ready for merging if travis tests passes.

@paoloambrosio paoloambrosio merged commit 55bcf56 into cucumber:master Mar 12, 2016
paoloambrosio added a commit that referenced this pull request Mar 12, 2016
@konserw konserw deleted the qt45 branch March 13, 2016 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants