Rename Color Picker to Color Widgets

parent 0cdd62ea
cmake_minimum_required(VERSION 2.6)
set(LIBRARY_TARGET ColorPicker-qt5)
set(LIBRARY_TARGET ColorWidgets-qt5)
project(${LIBRARY_TARGET} CXX)
# Qt
......
TEMPLATE=lib
CONFIG += dll
QT += core gui
DEFINES += QTCOLORPICKER_LIBRARY
DEFINES += QTCOLORWIDGETS_LIBRARY
greaterThan(QT_MAJOR_VERSION, 4) {
message("Qt5 mode!")
QT += widgets
TARGET=ColorPicker-qt5
TARGET=ColorWidgets-qt5
} else {
message("Qt4 mode!")
TARGET=ColorPicker-qt4
TARGET=ColorWidgets-qt4
}
VERSION=1.0.0
......@@ -37,7 +37,7 @@ isEmpty(PREFIX) {
PREFIX = /usr/local
}
target.path = $$PREFIX/lib
headers.path = $$PREFIX/include/QtColorPicker
headers.path = $$PREFIX/include/QtColorWidgets
headers.files = \
include/AbstractWidgetList \
include/BoundColorSelector \
......@@ -56,7 +56,7 @@ headers.files = \
include/color_wheel.hpp \
include/bound_color_selector.hpp \
include/color_dialog.hpp \
include/colorpicker_global.hpp \
include/colorwidgets_global.hpp \
include/color_selector.hpp \
include/gradient_slider.hpp \
include/hue_slider.hpp
......
......@@ -15,7 +15,7 @@
# along with Color Widgets. If not, see <http://www.gnu.org/licenses/>.
QT += core gui
DEFINES += QTCOLORPICKER_STATICALLY_LINKED
DEFINES += QTCOLORWIDGETS_STATICALLY_LINKED
OBJECTS_DIR = ../out/obj
MOC_DIR = ../out/generated
......
......@@ -15,7 +15,7 @@
# along with Color Widgets. If not, see <http://www.gnu.org/licenses/>.
CONFIG += plugin
DEFINES += QTCOLORPICKER_LIBRARY
DEFINES += QTCOLORWIDGETS_LIBRARY
greaterThan(QT_MAJOR_VERSION, 4) {
QT += designer
DEFINES += FRAMEWORK_QT5
......
......@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef ABSTRACT_WIDGET_LIST_HPP
#define ABSTRACT_WIDGET_LIST_HPP
#include "colorpicker_global.hpp"
#include "colorwidgets_global.hpp"
#include <QSignalMapper>
#include <QTableWidget>
......
......@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef COLOR_DELEGATE_HPP
#define COLOR_DELEGATE_HPP
#include "colorpicker_global.hpp"
#include "colorwidgets_global.hpp"
#include <QStyledItemDelegate>
......
......@@ -23,7 +23,7 @@
#ifndef COLOR_DIALOG_HPP
#define COLOR_DIALOG_HPP
#include "colorpicker_global.hpp"
#include "colorwidgets_global.hpp"
#include "color_preview.hpp"
#include "color_wheel.hpp"
......
......@@ -24,7 +24,7 @@
#ifndef COLOR_PREVIEW_HPP
#define COLOR_PREVIEW_HPP
#include "colorpicker_global.hpp"
#include "colorwidgets_global.hpp"
#include <QWidget>
......
......@@ -23,7 +23,7 @@
#ifndef COLOR_WHEEL_HPP
#define COLOR_WHEEL_HPP
#include "colorpicker_global.hpp"
#include "colorwidgets_global.hpp"
#include <QWidget>
......
#ifndef QT_COLOR_PICKER_GLOBAL_H
#define QT_COLOR_PICKER_GLOBAL_H
#ifndef QT_COLOR_WIDGETS_GLOBAL_H
#define QT_COLOR_WIDGETS_GLOBAL_H
#include <QtCore/QtGlobal>
......@@ -11,4 +11,4 @@
# define QCP_EXPORT Q_DECL_IMPORT
#endif
#endif
#endif // QT_COLOR_WIDGETS_GLOBAL_H
......@@ -24,7 +24,7 @@
#ifndef GRADIENT_SLIDER_HPP
#define GRADIENT_SLIDER_HPP
#include "colorpicker_global.hpp"
#include "colorwidgets_global.hpp"
#include <QSlider>
#include <QGradient>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment