Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt1988 committed Feb 22, 2024
1 parent dd6baf4 commit 577bb64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
5 changes: 5 additions & 0 deletions changlog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 版本记录(change log):

## 2024-02-07 -> 2.0.3
- 调整SAColorToolButton的实现,使之更简单
- 修正qwk库引入的cmake
- 调整文档

## 2024-02-07 -> 2.0.2
- 修正SARibbonSystemButtonBar的编码问题,可能会导致vs下无法编译成功
- SARibbonContextCategory的标签颜色调整
Expand Down
24 changes: 1 addition & 23 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,29 +108,7 @@ git submodule update --init --recursive

## Compile to dynamic libraries

### qmake

Use Qt Creator to open `SARibbon.pro` directly, compile it, and the SARibbonBar library and examples will be compiled, and the lib and example directories are located in the `bin_qt{Qt version}_{MSVC/GNU}_x{32/64}` directory

> Libraries compiled in debug mode are distinguished by a 'd' after the end

### cmake

Use Qt Creator or visual studio to open `src/CMakeLists.txt` compilation

```cmake
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH={YOUR_QT_SDK_DIR_PATH} -DCMAKE_INSTALL_PREFIX={WHERE_YOU_WANT_TO_INSTALL} -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --target all --parallel
cmake --install . --config Release --strip
```

{YOUR_QT_SDK_DIR_PATH} is the directory of your qtsdk, something like `D:Qt5.14.2msvc2017_64`

{WHERE_YOU_WANT_TO_INSTALL} is your installation directory


For the detailed build process, refer to the document: [Building SARibbon](./doc/how-to-build.md)

## Embedding SARibbon directly into the project

Expand Down
2 changes: 1 addition & 1 deletion src/SARibbonBar/SARibbonGlobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @def ribbon的数字版本 MAJ.MIN.{PAT}
*/
#ifndef SA_RIBBON_BAR_VERSION_PAT
#define SA_RIBBON_BAR_VERSION_PAT 2
#define SA_RIBBON_BAR_VERSION_PAT 3
#endif

#ifndef SA_RIBBON_BAR_NO_EXPORT
Expand Down

0 comments on commit 577bb64

Please sign in to comment.