-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from Krakonos/fix-unity-build
Separated makeBoundaryIcon to its own file to fix UNITY build.
- Loading branch information
Showing
6 changed files
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,4 @@ AppImage: | |
update-information: None | ||
sign-key: None | ||
arch: x86_64 | ||
comp: xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef BOUNDARYICON_H | ||
#define BOUNDARYICON_H | ||
|
||
#include "BoundaryIcon.h" | ||
|
||
#include <QPainter> | ||
|
||
void makeBoundaryIcon(QToolButton* bt, QColor C) | ||
{ | ||
QPixmap pm(36, 18); | ||
pm.fill(QColor(255, 255, 255)); | ||
QPainter p(&pm); | ||
p.setPen(C); | ||
p.setBrush(C); | ||
p.drawRect(0, 6, 36, 6); | ||
bt->setIcon(pm); | ||
} | ||
|
||
#endif // BOUNDARYICON_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef __BOUNDARYICON_H__ | ||
#define __BOUNDARYICON_H__ | ||
|
||
#include <QToolButton> | ||
#include <QColor> | ||
|
||
void makeBoundaryIcon(QToolButton* bt, QColor C); | ||
|
||
#endif |