[Kst] branches/work/kst/kst1kde4/kst/src/plugins
Zongyi Zhang
freebody.kst at gmail.com
Thu Feb 25 01:21:46 CET 2010
SVN commit 1095768 by zhang:
continue kst1kde4
M +4 -6 reverse/CMakeLists.txt
M +3 -1 reverse/reverse.cpp
M +1 -0 reverse/reverse.h
A shift/CMakeLists.txt
M +5 -0 shift/shift.cpp
M +1 -0 shift/shift.h
--- branches/work/kst/kst1kde4/kst/src/plugins/reverse/CMakeLists.txt #1095767:1095768
@@ -1,17 +1,15 @@
-include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src/libkst ${CMAKE_SOURCE_DIR}/src/libkstmath ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR})
+include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src/libkst ${CMAKE_SOURCE_DIR}/src/libkstmath ${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES})
########### next target ###############
set(kstobject_reverse_PART_SRCS reverse.cpp)
-KDE3_ADD_KPART(kstobject_reverse ${kstobject_reverse_PART_SRCS})
+kde4_add_plugin(${kstobject_reverse_PART_SRCS})
-KDE3_AUTOMOC(${kstobject_reverse_PART_SRCS})
+target_link_libraries(kstobject_reverse kstbase kstmath ${KDE4_KPARTS_LIBS})
-target_link_libraries(kstobject_reverse)
-
install(TARGETS kstobject_reverse
- LIBRARY DESTINATION lib/kde3
+ LIBRARY DESTINATION lib/kde4
${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
--- branches/work/kst/kst1kde4/kst/src/plugins/reverse/reverse.cpp #1095767:1095768
@@ -33,8 +33,10 @@
: KstBasicPlugin() {
}
+Reverse::Reverse( QObject */*parent*/, const QStringList &/*args*/ )
+ : KstBasicPlugin() {
+}
-
Reverse::~Reverse() {
}
--- branches/work/kst/kst1kde4/kst/src/plugins/reverse/reverse.h #1095767:1095768
@@ -24,6 +24,7 @@
public:
Reverse(QObject *parent, const char *name, const QStringList &args);
+ Reverse(QObject *parent, const QStringList &args);
virtual ~Reverse();
virtual bool algorithm();
--- branches/work/kst/kst1kde4/kst/src/plugins/shift/shift.cpp #1095767:1095768
@@ -40,6 +40,11 @@
Q_UNUSED(args)
}
+Shift::Shift( QObject *parent, const QStringList &args )
+ : KstBasicPlugin() {
+ Q_UNUSED(parent)
+ Q_UNUSED(args)
+}
Shift::~Shift() {
}
--- branches/work/kst/kst1kde4/kst/src/plugins/shift/shift.h #1095767:1095768
@@ -23,6 +23,7 @@
Q_OBJECT
public:
Shift(QObject *parent, const char *name, const QStringList &args);
+ Shift(QObject *parent, const QStringList &args);
virtual ~Shift();
virtual bool algorithm();
More information about the Kst
mailing list