Skip to content

Commit 85c11c6

Browse files
committed
ai: mention Preprocessor Directives
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent 7c8b54d commit 85c11c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Translations are managed via Crowdin: https://crowdin.com/project/qownnotes
194194
- **Always use `just nix-build` to build the project** - Don't try to run qmake/make directly unless specifically requested
195195
- **The project uses Qt/C++** - Be mindful of Qt's signal/slot mechanism, QObject lifecycle, and Qt-specific patterns
196196
- **Submodules are used** - Libraries in `src/libraries/` are git submodules
197-
- **Multiple Qt versions supported** - Code must work with both Qt5 and Qt6
197+
- **Multiple Qt versions supported** - Code must work with both Qt 5.7+ and Qt6 (use Preprocessor Directives like `#if QT_VERSION < QT_VERSION_CHECK(5, 9, 0)` to handle differences)
198198
- **Cross-platform** - Code must work on Linux, macOS, and Windows
199199
- **Two build systems available** - Primary is qmake (`.pro` files), but CMake (`CMakeLists.txt`) is also supported
200200
- **Build projects** - The primary build project files are `src/QOwnNotes.pro` and `src/CMakeLists.txt`

0 commit comments

Comments
 (0)