TA的每日心情 | 郁闷 2024-1-29 11:56 |
---|
签到天数: 58 天 [LV.5]常住居民I
中级会员
- 积分
- 7965
|
本帖最后由 心刀斩心鬼 于 2024-2-2 08:52 编辑
破案了,黄色叹号似乎不影响构建,编译完只有三个文件,我还以为编译完像release那样带一大堆文件
kikoplay内置的快捷键用起来实在很烦人,搜了下issue作者说没有修改内置快捷键的功能,按键直传然后修改映射也只是把input.conf里的按键映射走了,内置的快捷键不变
研究了一下,是不是删去/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;
复制代码
这段,然后自己编译即可实现取消kikoplay快捷键?
想尝试自己编译,但是实在没头绪啊,也没搜到简单教怎么导出的参考文档……
我先是下载了 qt online downloader,安装了qt creator 和 MSVC2019、minGW 7.3.0 ,然后用qt creator 打开 build.pro 就抓瞎了,点构建没成功
然后去装了cmake 和 git,按 cmake_build.md 这个文档来,中途出错提示没装atl/
mfc,去装完之后再运行就这样了
- Stored binaries in 1 destinations in 711 ms.
- Elapsed time to handle qt5-winextras:x64-windows: 16 s
- qt5-winextras:x64-windows package ABI: 381b6af92113cfae97422afe8e40252fd4c6eb0a00081024a55c12866af9caa3
- Total install time: 16 s
- The package zlib is compatible with built-in CMake targets:
- find_package(ZLIB REQUIRED)
- target_link_libraries(main PRIVATE ZLIB::ZLIB)
- -- Running vcpkg install - done
- CMake Error at CMakeLists.txt:11 (project):
- Running
- 'nmake' '-?'
- failed with:
- 系统找不到指定的文件。
- CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
- CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
- -- Configuring incomplete, errors occurred!
复制代码
|
|