Skip to content

Commit 15aca36

Browse files
committed
App: modify recent list with database. Fix: #88
1 parent 760df46 commit 15aca36

File tree

12 files changed

+968
-299
lines changed

12 files changed

+968
-299
lines changed

App/Client/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ set(SOURCE_FILES
1717
ParameterDlgSettings.cpp
1818
FavoriteView.cpp
1919
FavoriteMimeData.cpp
20-
FrmListRecent.cpp
20+
Recent/FrmRecent.cpp
21+
Recent/RecentModel.cpp
22+
Recent/RecentDatabase.cpp
2123
FrmActive.cpp
2224
)
2325

@@ -32,7 +34,9 @@ set(HEADER_FILES
3234
ParameterDlgSettings.h
3335
FavoriteView.h
3436
FavoriteMimeData.h
35-
FrmListRecent.h
37+
Recent/FrmRecent.h
38+
Recent/RecentModel.h
39+
Recent/RecentDatabase.h
3640
FrmActive.h
3741
)
3842

@@ -50,6 +54,9 @@ if(LINUX)
5054
LIST(APPEND RCC_FILES Resource/Resource.qrc)
5155
endif()
5256

57+
list(APPEND APP_INCLUDE_DIRS
58+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Recent>)
59+
5360
# QtCreator supports the following variables for Android, which are identical to qmake Android variables.
5461
# Check http://doc.qt.io/qt-5/deployment-android.html for more information.
5562
# They need to be set before the find_package(Qt5 ...) call.
@@ -86,6 +93,7 @@ ADD_TARGET(NAME ${PROJECT_NAME}
8693
ISWINDOWS
8794
${IS_MACOSX_BUNDLE}
8895
VERSION ${RabbitRemoteControl_VERSION}
96+
INCLUDE_DIRS ${APP_INCLUDE_DIRS}
8997
PRIVATE_DEFINITIONS RabbitRemoteControl_VERSION="${RabbitRemoteControl_VERSION}"
9098
RabbitRemoteControl_REVISION="${RabbitRemoteControl_REVISION}"
9199
SOURCE_FILES ${SOURCE_FILES} ${HEADER_FILES} ${SOURCE_UI_FILES} ${RCC_FILES} ${AppImage}

0 commit comments

Comments
 (0)