diff --git a/cmake/modules/Notepad--.cmake b/cmake/modules/Notepad--.cmake index 510eb49..d0d1455 100644 --- a/cmake/modules/Notepad--.cmake +++ b/cmake/modules/Notepad--.cmake @@ -8,11 +8,11 @@ if(TRUE) # 准备构建 Notepad-- 主程序 set(QRC_SOURCES src/RealCompare.qrc) - spark_aux_source_paths(CCEditorSources - src - src/cceditor - ) - spark_add_executable(${PROJECT_NAME} ${CCEditorSources} ${QRC_SOURCES}) + spark_add_executable_path(${PROJECT_NAME} + ${PROJECT_SOURCE_DIR}/src + ${PROJECT_SOURCE_DIR}/src/cceditor + ${QRC_SOURCES}) + target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/src/cceditor diff --git a/src/ndstyleditemdelegate.h b/src/ndstyleditemdelegate.h deleted file mode 100755 index d1708d2..0000000 --- a/src/ndstyleditemdelegate.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -#include - -class NdStyledItemDelegate : public QStyledItemDelegate -{ - Q_OBJECT - -public: - NdStyledItemDelegate(QObject *parent); - virtual ~NdStyledItemDelegate(); - void setFontSize(int size); - -protected: - void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; - -private: - int m_defaultFontSize; -};