Use defined(Q_OS_LINUX) || defined(Q_OS_UNIX) where applicable to support BSD OSs. (#264)

This commit is contained in:
Danilo Egêa Gondolfo
2018-07-01 08:45:49 -03:00
committed by Dharkael
parent c75c9aa7f8
commit df3958e43a
8 changed files with 13 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ QString PinTool::description() const {
QWidget* PinTool::widget() {
PinWidget *w = new PinWidget(m_pixmap);
const int &&m = w->margin();
#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
QRect adjusted_pos = m_geometry + QMargins(m,-m,-m,-m);
#else
QRect adjusted_pos = m_geometry + QMargins(m, m, m, m);