mirror of
https://github.com/YACReader/yacreader
synced 2025-11-19 17:12:49 -05:00
WIP on qt6.9-migration
This commit is contained in:
@ -285,6 +285,14 @@ int main(int argc, char **argv)
|
||||
|
||||
app.installEventFilter(mw);
|
||||
|
||||
// This forces the style that was being used before Qt6.7. Qt6.7 introduced a new style for Windows 11. The new style seems to have somo known bugs.
|
||||
// There is a bug in the Windows 11 style that causes checked QToolButton to not have a background color (css doesn't work either).
|
||||
// So it makes imposible for the user to see if the button is checked or not.
|
||||
// QTBUG-132443
|
||||
#if defined(Q_OS_WIN) && QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||
QApplication::setStyle("windowsvista");
|
||||
#endif
|
||||
|
||||
int ret = app.exec();
|
||||
|
||||
QLOG_INFO() << "YACReaderLibrary closed with exit code :" << ret;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick
|
||||
|
||||
import QtQuick.Controls
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.12
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.12
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Controls
|
||||
|
||||
import com.yacreader.ComicModel 1.0
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
|
||||
Reference in New Issue
Block a user