Skip to content

Commit

Permalink
Merge pull request #1 from paulcdejean/master
Browse files Browse the repository at this point in the history
Fix for building TSPSG with Qt 5 on Windows
  • Loading branch information
leppa committed Nov 14, 2014
2 parents fecf053 + a799825 commit f0097d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Empty file.
1 change: 1 addition & 0 deletions src/mainwindow.cpp
Expand Up @@ -78,6 +78,7 @@
#endif

#ifdef Q_OS_WIN32
# include <initguid.h>
# include "shobjidl.h"
#endif

Expand Down
6 changes: 3 additions & 3 deletions src/qtwin.cpp
Expand Up @@ -83,7 +83,7 @@ class WindowNotifier : public QWidget
static bool resolveLibs()
{
if (!pDwmIsCompositionEnabled) {
QLibrary dwmLib(QString::fromAscii("dwmapi"));
QLibrary dwmLib(QString::fromLatin1("dwmapi"));
pDwmIsCompositionEnabled =(PtrDwmIsCompositionEnabled)dwmLib.resolve("DwmIsCompositionEnabled");
pDwmExtendFrameIntoClientArea = (PtrDwmExtendFrameIntoClientArea)dwmLib.resolve("DwmExtendFrameIntoClientArea");
pDwmEnableBlurBehindWindow = (PtrDwmEnableBlurBehindWindow)dwmLib.resolve("DwmEnableBlurBehindWindow");
Expand Down Expand Up @@ -196,7 +196,7 @@ bool QtWin::extendFrameIntoClientArea(QWidget *widget, int left, int top, int ri
bool result = false;
#ifdef Q_OS_WIN32
if (resolveLibs()) {
QLibrary dwmLib(QString::fromAscii("dwmapi"));
QLibrary dwmLib(QString::fromLatin1("dwmapi"));
HRESULT hr = S_OK;
MARGINS m = {left, top, right, bottom};
hr = pDwmExtendFrameIntoClientArea(HWND(widget->winId()), &m);
Expand All @@ -223,7 +223,7 @@ QColor QtWin::colorizatinColor()
if (resolveLibs()) {
DWORD color = 0;
BOOL opaque = FALSE;
QLibrary dwmLib(QString::fromAscii("dwmapi"));
QLibrary dwmLib(QString::fromLatin1("dwmapi"));
HRESULT hr = S_OK;
hr = pDwmGetColorizationColor(&color, &opaque);
if (SUCCEEDED(hr))
Expand Down

0 comments on commit f0097d1

Please sign in to comment.