-
Notifications
You must be signed in to change notification settings - Fork 51
/
TrueFramelessWindow.pro
45 lines (34 loc) · 951 Bytes
/
TrueFramelessWindow.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#-------------------------------------------------
#
# TrueFramelessWindow.pro
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = TrueFramelessWindow
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h
win32 {
# Only include / compile these files on Windows
SOURCES += \
qwinwidget.cpp \
winnativewindow.cpp
HEADERS += \
qwinwidget.h \
winnativewindow.h
LIBS += -L"C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib" \
-ldwmapi \
-lgdi32
}
mac {
# Only include / compile these files on OS X
OBJECTIVE_SOURCES += \
OSXHideTitleBar.mm
HEADERS +=\
OSXHideTitleBar.h
# Additionally include Cocoa for OS X code
LIBS += -framework Foundation -framework Cocoa
INCLUDEPATH += /System/Library/Frameworks/Foundation.framework/Versions/C/Headers
}