Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made compatible with 10.5+

  • Loading branch information...
commit 2deff94ee897e1c890fb20d856f87879eb42e7a8 1 parent 3c41450
@bmcdorman bmcdorman authored
Showing with 5 additions and 7 deletions.
  1. +5 −0 CMakeLists.txt
  2. +0 −7 src/qhsv_picker.cpp
View
5 CMakeLists.txt
@@ -42,6 +42,11 @@ add_definitions(-O3)
if(APPLE)
# set(CMAKE_OSX_SYSROOT "${OSX_DEVELOPER_ROOT}/SDKs/MacOSX10.6.sdk")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.5")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mmacosx-version-min=10.5")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -mmacosx-version-min=10.5")
+ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -mmacosx-version-min=10.5")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -g")
link_directories(/Library/Frameworks/)
add_executable(computer MACOSX_BUNDLE ${computer_SRCS_CXX} ${INCLUDES})
View
7 src/qhsv_picker.cpp
@@ -197,13 +197,6 @@ void QHsvPicker::slide()
newCenterH = m_min.hue() + (360 - m_min.hue() + m_max.hue()) / 2;
}
- // qDebug() << "new center:" << newCenterH;
- /* QPropertyAnimation *anim = new QPropertyAnimation(this, "centerHue", this);
- anim->setDuration(500);
- anim->setStartValue(360 + m_centerHue);
- anim->setEndValue(360 + newCenterH);
- anim->setEasingCurve(QEasingCurve::InOutCubic);
- anim->start(); */
setCenterHue(newCenterH);
}
Please sign in to comment.
Something went wrong with that request. Please try again.