Compare commits
2
Commits
3a96031e4b
...
3b81c928e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b81c928e4 | ||
|
|
119d58a917 |
No files matched your search
@@ -35,15 +35,17 @@ static const QColor& ColorSchemaToTextForeground(Qt::ColorScheme colorScheme) {
|
|||||||
#endif // defined(Q_OS_WIN)
|
#endif // defined(Q_OS_WIN)
|
||||||
|
|
||||||
switch (colorScheme) {
|
switch (colorScheme) {
|
||||||
case Qt::ColorScheme::Dark:
|
case Qt::ColorScheme::Dark: {
|
||||||
static QColor WHITE = QColor("White");
|
static QColor WHITE = QColor("White");
|
||||||
return WHITE;
|
return WHITE;
|
||||||
|
}
|
||||||
case Qt::ColorScheme::Light:
|
case Qt::ColorScheme::Light:
|
||||||
case Qt::ColorScheme::Unknown:
|
case Qt::ColorScheme::Unknown:
|
||||||
default:
|
default: {
|
||||||
static QColor BLACK = QColor("Black");
|
static QColor BLACK = QColor("Black");
|
||||||
return BLACK;
|
return BLACK;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class PGraphicsPixmapItem : public QGraphicsPixmapItem
|
class PGraphicsPixmapItem : public QGraphicsPixmapItem
|
||||||
|
|||||||
@@ -13,6 +13,15 @@
|
|||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
|
// YYC MARK:
|
||||||
|
// <exdisp.h> is not self-contained: it only includes <rpc.h>/<rpcndr.h> before
|
||||||
|
// emitting `typedef interface ...` forward declarations, while the `interface`
|
||||||
|
// macro (defined as `struct` for C++) lives in <combaseapi.h>, which is pulled
|
||||||
|
// in via the <objbase.h> chain. Without this prelude, MSVC fails to parse those
|
||||||
|
// forward declarations (C2146/C2371) and every IShellWindows usage breaks.
|
||||||
|
// (Qt headers do not include <windows.h>, so nothing else provides it here.)
|
||||||
|
#include <objbase.h>
|
||||||
|
|
||||||
#include <exdisp.h> // IShellWindows, CLSID_ShellWindows
|
#include <exdisp.h> // IShellWindows, CLSID_ShellWindows
|
||||||
#include <servprov.h> // IServiceProvider
|
#include <servprov.h> // IServiceProvider
|
||||||
#include <shlguid.h> // SID_STopLevelBrowser
|
#include <shlguid.h> // SID_STopLevelBrowser
|
||||||
|
|||||||
Reference in new issue
Block a user