Skip to content

Commit 0149330

Browse files
committed
Disable KDMacTouchBar to get DMG built
1 parent 04b054f commit 0149330

File tree

3 files changed

+52
-52
lines changed

3 files changed

+52
-52
lines changed

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ else()
172172
find_package(QHotkey 1.5.0 COMPONENTS
173173
QHotkey
174174
)
175-
# KDMacTouchBar (Mac only)
176-
if(APPLE AND NOT IOS)
177-
if (NOT EXISTS "${PROJECT_SOURCE_DIR}/3rdparty/KDMacTouchBar/CMakeLists.txt")
178-
message(FATAL_ERROR "KDMacTouchBar was not downloaded. GIT_SUBMODULE was turned off or failed.")
179-
endif()
180-
add_subdirectory("3rdparty/KDMacTouchBar" build/kdmactouchbar)
181-
endif()
175+
# # KDMacTouchBar (Mac only)
176+
# if(APPLE AND NOT IOS)
177+
# if (NOT EXISTS "${PROJECT_SOURCE_DIR}/3rdparty/KDMacTouchBar/CMakeLists.txt")
178+
# message(FATAL_ERROR "KDMacTouchBar was not downloaded. GIT_SUBMODULE was turned off or failed.")
179+
# endif()
180+
# add_subdirectory("3rdparty/KDMacTouchBar" build/kdmactouchbar)
181+
# endif()
182182
endif()
183183

184184
if (WIN32 OR UNIX) # AND NOT ANDROID

src/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ endif()
387387
# Private header/s that would be used if QT_QMLCACHEGEN_DIRECT_CALLS were turned ON
388388
# - Qt${QT_VERSION_MAJOR}::QuickPrivate
389389

390-
if(APPLE AND NOT IOS)
391-
target_include_directories(mactouchbar PRIVATE ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
392-
target_link_directories(mactouchbar PRIVATE ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
393-
target_link_libraries(${PROJECT_NAME} PRIVATE KDMacTouchBar)
394-
endif()
390+
# if(APPLE AND NOT IOS)
391+
# target_include_directories(mactouchbar PRIVATE ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
392+
# target_link_directories(mactouchbar PRIVATE ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
393+
# target_link_libraries(${PROJECT_NAME} PRIVATE KDMacTouchBar)
394+
# endif()
395395
if (QHotkey_FOUND)
396396
add_definitions(-DQHotkey_FOUND)
397397
target_link_libraries(${PROJECT_NAME} PRIVATE

src/main.cpp

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
#include <QHotkey>
5555
#endif
5656

57-
#if defined(Q_OS_MACOS)
58-
#include <../3rdparty/KDMacTouchBar/src/kdmactouchbar.h>
59-
#endif
57+
// #if defined(Q_OS_MACOS)
58+
// #include <../3rdparty/KDMacTouchBar/src/kdmactouchbar.h>
59+
// #endif
6060

6161
#include "../qprompt_version.h"
6262
#include "abstractunits.hpp"
@@ -181,43 +181,43 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
181181
// KirigamiPlugin::getInstance().registerTypes();
182182
// #endif
183183

184-
#if defined(Q_OS_MACOS)
185-
// Enable automatic display of dialog prompts on the touchbar.
186-
KDMacTouchBar::setAutomaticallyCreateMessageBoxTouchBar(true);
187-
// // Create touchbar for use through all of QPrompt's execusion
188-
// KDMacTouchBar *touchBar = new KDMacTouchBar();
189-
// //QMainWindow *mainWindow = nullptr;
190-
// //foreach(QWidget *widget, app.topLevelWidgets())
191-
// // if(widget->inherits("QMainWindow")) {
192-
// // mainWindow = qobject_cast<QMainWindow *>(widget);
193-
// // break;
194-
// // };
195-
// //KDMacTouchBar *touchBar = new KDMacTouchBar(mainWindow);
196-
// // Toggle teleprompter state
197-
// QIcon qpromptIcon(QStringLiteral(":images/qprompt"));
198-
// QAction *action = new QAction(qpromptIcon, "Toggle");
199-
// touchBar->addAction(action);
200-
// // connect(action, &QAction::triggered, this, &MainWindow::activated);
201-
// touchBar->addSeparator();
202-
// // Velocity and placement toachbar controls
203-
// touchBar->setTouchButtonStyle(KDMacTouchBar::IconOnly);
204-
// // Up
205-
// QIcon upIcon(QStringLiteral(":icons/go-previous"));
206-
// QAction *reduceAction = new QAction(upIcon, "Reduce");
207-
// touchBar->addAction(reduceAction);
208-
// touchBar->setPrincipialAction(reduceAction);
209-
// // connect(reduceAction, &QAction::triggered, this, &MainWindow::activated);
210-
// // Down
211-
// QIcon downIcon(QStringLiteral(":icons/go-next"));
212-
// QAction *increaseAction = new QAction(downIcon, "Increase");
213-
// touchBar->addAction(increaseAction);
214-
// // connect(increaseAction, &QAction::triggered, this, &MainWindow::activated);
215-
//// touchBar->addSeparator();
216-
//// // Stop prompter
217-
//// QAction *stopAction = new QAction(upIcon, "Stop");
218-
//// touchBar->addAction(stopAction);
219-
//// // connect(stopAction, &QAction::triggered, this, &MainWindow::activated);
220-
#endif
184+
// #if defined(Q_OS_MACOS)
185+
// // Enable automatic display of dialog prompts on the touchbar.
186+
// KDMacTouchBar::setAutomaticallyCreateMessageBoxTouchBar(true);
187+
// // // Create touchbar for use through all of QPrompt's execusion
188+
// // KDMacTouchBar *touchBar = new KDMacTouchBar();
189+
// // //QMainWindow *mainWindow = nullptr;
190+
// // //foreach(QWidget *widget, app.topLevelWidgets())
191+
// // // if(widget->inherits("QMainWindow")) {
192+
// // // mainWindow = qobject_cast<QMainWindow *>(widget);
193+
// // // break;
194+
// // // };
195+
// // //KDMacTouchBar *touchBar = new KDMacTouchBar(mainWindow);
196+
// // // Toggle teleprompter state
197+
// // QIcon qpromptIcon(QStringLiteral(":images/qprompt"));
198+
// // QAction *action = new QAction(qpromptIcon, "Toggle");
199+
// // touchBar->addAction(action);
200+
// // // connect(action, &QAction::triggered, this, &MainWindow::activated);
201+
// // touchBar->addSeparator();
202+
// // // Velocity and placement toachbar controls
203+
// // touchBar->setTouchButtonStyle(KDMacTouchBar::IconOnly);
204+
// // // Up
205+
// // QIcon upIcon(QStringLiteral(":icons/go-previous"));
206+
// // QAction *reduceAction = new QAction(upIcon, "Reduce");
207+
// // touchBar->addAction(reduceAction);
208+
// // touchBar->setPrincipialAction(reduceAction);
209+
// // // connect(reduceAction, &QAction::triggered, this, &MainWindow::activated);
210+
// // // Down
211+
// // QIcon downIcon(QStringLiteral(":icons/go-next"));
212+
// // QAction *increaseAction = new QAction(downIcon, "Increase");
213+
// // touchBar->addAction(increaseAction);
214+
// // // connect(increaseAction, &QAction::triggered, this, &MainWindow::activated);
215+
// //// touchBar->addSeparator();
216+
// //// // Stop prompter
217+
// //// QAction *stopAction = new QAction(upIcon, "Stop");
218+
// //// touchBar->addAction(stopAction);
219+
// //// // connect(stopAction, &QAction::triggered, this, &MainWindow::activated);
220+
// #endif
221221

222222
#if defined(QHotkey_FOUND)
223223
// Toggle transparency of all windows

0 commit comments

Comments
 (0)