Skip to content

Commit

Permalink
Reorginize the structure of QGlobalShortcut part.
Browse files Browse the repository at this point in the history
  • Loading branch information
Legotckoi committed Apr 21, 2016
1 parent 9169001 commit fc5af4b
Show file tree
Hide file tree
Showing 8 changed files with 554 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/QGlobalShortcut/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Authors: Evgenii Legotckoi
504 changes: 504 additions & 0 deletions src/QGlobalShortcut/LICENSE

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions src/QGlobalShortcut/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# QGlobalShortcut
Crossplatform Global HotKey for Qt5.1 and higher

# Configuration of PRO File
```
CONFIG += c++11
linux {
QT += x11extras
CONFIG += link_pkgconfig
PKGCONFIG += x11
}
win32: SOURCES += win/qglobalshortcut.cpp
linux: SOURCES += x11/qglobalshortcut.cpp
HEADERS += qglobalshortcut.h
```
File renamed without changes.
25 changes: 25 additions & 0 deletions src/QGlobalShortcut/qglobalshortcut.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

INCLUDEPATH += $$PWD

CONFIG += c++11

linux {
QT += x11extras
CONFIG += link_pkgconfig
PKGCONFIG += x11
}

win32-mingw{
QMAKE_CXXFLAGS += -Wliteral-suffix
}
win32-msvc*{
LIBS += -luser32
}

HEADERS += \
$$PWD/qglobalshortcut.h

win32: SOURCES += $$PWD/win/qglobalshortcut.cpp
linux: SOURCES += $$PWD/x11/qglobalshortcut.cpp


File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ win32-msvc*{

VER_MAJ = 0
VER_MIN = 1
VER_PAT = 6
VER_PAT = 7

VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT} # major.minor.patch

Expand Down Expand Up @@ -61,9 +61,6 @@ SOURCES += main.cpp\
gradationlabel.cpp \
popupcolorstylesheethelper.cpp

win32: SOURCES += win/qglobalshortcut.cpp
linux: SOURCES += x11/qglobalshortcut.cpp

HEADERS += \
about.h \
settings.h \
Expand All @@ -75,8 +72,9 @@ HEADERS += \
popupmessage.h \
transparentwindow.h \
gradationlabel.h \
popupcolorstylesheethelper.h \
qglobalshortcut.h
popupcolorstylesheethelper.h

include(QGlobalShortcut/qglobalshortcut.pri)

FORMS += \
about.ui \
Expand All @@ -85,3 +83,5 @@ FORMS += \

RESOURCES += \
images.qrc

DISTFILES +=

0 comments on commit fc5af4b

Please sign in to comment.