File tree Expand file tree Collapse file tree 3 files changed +36
-4
lines changed Expand file tree Collapse file tree 3 files changed +36
-4
lines changed Original file line number Diff line number Diff line change
1
+
2
+ include_directories (${QtWidgets_INCLUDE_DIRS} )
3
+
4
+ if (QT_USE_QTNETWORK )
5
+ find_package (QtNetwork REQUIRED )
6
+ list (APPEND QT_LIBRARIES Qt::Network )
7
+ include_directories (${QtNetwork_INCLUDE_DIRS} )
8
+ endif ()
9
+
10
+ if (QT_USE_QTXML )
11
+ find_package (QtXml REQUIRED )
12
+ list (APPEND QT_LIBRARIES Qt::Xml )
13
+ include_directories (${QtXml_INCLUDE_DIRS} )
14
+ endif ()
15
+
16
+ if (QT_USE_QTTEST )
17
+ find_package (QtTest REQUIRED )
18
+ list (APPEND QT_LIBRARIES Qt::Test )
19
+ include_directories (${QtTest_INCLUDE_DIRS} )
20
+ endif ()
21
+
22
+ macro (qt4_wrap_ui )
23
+ qt_wrap_ui (${ARGN} )
24
+ endmacro ()
25
+
26
+ macro (qt4_wrap_cpp )
27
+ qt_wrap_cpp (${ARGN} )
28
+ endmacro ()
29
+
30
+ macro (qt4_add_resources )
31
+ qt_add_resources (${ARGN} )
32
+ endmacro ()
Original file line number Diff line number Diff line change 1
1
/* ***************************************************************************
2
- ** Copyright (C) 2019 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected] .
2
+ ** Copyright (C) 2024 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected] .
3
3
** All rights reserved.
4
4
**
5
5
** This file is part of the KD MacTouchBar library.
34
34
35
35
MainWindow::MainWindow ()
36
36
{
37
- setWindowTitle (" KDMacTouchBar Example" );
37
+ setWindowTitle (tr ( " KDMacTouchBar Example" ) );
38
38
resize (400 , 200 );
39
39
40
40
// attach a touchbar to this window
Original file line number Diff line number Diff line change 1
1
/* ***************************************************************************
2
- ** Copyright (C) 2019 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected] .
2
+ ** Copyright (C) 2024 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected] .
3
3
** All rights reserved.
4
4
**
5
5
** This file is part of the KD MacTouchBar library.
49
49
50
50
auto nsImage = [[[NSImage alloc ] initWithSize: NSZeroSize ] autorelease ];
51
51
52
- for (const auto & size : qAsConst ( sizes) ) {
52
+ for (const auto & size : sizes) {
53
53
const QImage qimage = icon.pixmap (size).toImage ();
54
54
CGImageRef cgImage = qimage.toCGImage ();
55
55
if (!cgImage)
You can’t perform that action at this time.
0 commit comments