婆罗门
精华
|
战斗力 鹅
|
回帖 0
注册时间 2016-10-21
|
本帖最后由 伊克路西安 于 2024-2-1 15:36 编辑
项目地址:https://github.com/KikoPlayProject/KikoPlay
因为内置的快捷键不可变更、禁用,用起来实在是很不爽,自己研究了一下,删除 /UI/player.cpp 内的
- case Qt::Key_Space:
- actPlayPause->trigger();
- break;
- case Qt::Key_Enter:
- case Qt::Key_Return:
- if(miniModeOn)
- {
- exitMiniMode();
- break;
- }
- actFullscreen->trigger();
- break;
- case Qt::Key_Escape:
- if(isFullscreen)
- actFullscreen->trigger();
- else
- miniModeOn?exitMiniMode():actMiniMode->trigger();
- break;
- case Qt::Key_Down:
- case Qt::Key_Up:
- QApplication::sendEvent(volume, event);
- showMessage(tr("Volume: %0").arg(volume->value()), "playerInfo");
- break;
- case Qt::Key_Right:
- if (event->modifiers() == Qt::ControlModifier)
- {
- GlobalObjects::mpvplayer->frameStep();
- showMessage(tr("Frame Step:Forward"), "playerInfo");
- }
- else
- GlobalObjects::mpvplayer->seek(jumpForwardTime, true);
- break;
- case Qt::Key_Left:
- if (event->modifiers() == Qt::ControlModifier)
- {
- GlobalObjects::mpvplayer->frameStep(false);
- showMessage(tr("Frame Step:Backward"), "playerInfo");
- }
- else
- GlobalObjects::mpvplayer->seek(-jumpBackwardTime, true);
- break;
- case Qt::Key_PageUp:
- actPrev->trigger();
- break;
- case Qt::Key_PageDown:
- actNext->trigger();
- break;
复制代码
再自己编译,应该就可以实现禁用内置快捷键的效果?
但是自己编译过程中各种搞不懂,既非超能力者,也找不到一个喂饭级的只教怎么编译的文档……
先是装了 Visual Studio 2019 生成工具
然后用 Qt Online Installer 安装了 MSVC 2019/minGW 7.3.0/qt creator,然后用qt creator打开build.pro就不知道怎么进行下去了
又试了下 cmake, 按照 cmake_build.md 进行到
- cmake -B build -S . "-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release
复制代码 就开始出错了
- CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeDetermineSystem.cmake:176 (message):
- Could not find toolchain file:
- [D:/Downloads/cmake-3.28.2-windows-x86_64/bin/vcpkg]/scripts/buildsystems/vcpkg.cmake
- Call Stack (most recent call first):
- CMakeLists.txt:11 (project)
- -- Configuring incomplete, errors occurred!
复制代码
|
|