diff --git a/CMakeLists.txt b/CMakeLists.txt index 1aa5955b..ad59e8b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -286,6 +286,8 @@ src/Utils/PixmapWidget.cpp src/Utils/TagSelector.cpp src/Utils/SvgCache.h src/Utils/RemoteControlServer.cpp +src/Utils/BoundaryIcon.cpp +src/Utils/BoundaryIcon.h src/QToolBarDialog/qttoolbardialog.h src/QToolBarDialog/qttoolbardialog.cpp src/QToolBarDialog/qttoolbardialog.ui diff --git a/cmake/AppImageBuilder.yml.in b/cmake/AppImageBuilder.yml.in index 334136a5..40b68199 100644 --- a/cmake/AppImageBuilder.yml.in +++ b/cmake/AppImageBuilder.yml.in @@ -50,3 +50,4 @@ AppImage: update-information: None sign-key: None arch: x86_64 + comp: xz diff --git a/src/PaintStyle/PaintStyleEditor.cpp b/src/PaintStyle/PaintStyleEditor.cpp index b6cb0ed5..4246c309 100644 --- a/src/PaintStyle/PaintStyleEditor.cpp +++ b/src/PaintStyle/PaintStyleEditor.cpp @@ -4,6 +4,7 @@ #include "Painter.h" #include "MainWindow.h" #include "Document.h" +#include "BoundaryIcon.h" #include "SelectionDialog.h" @@ -16,17 +17,6 @@ #include #include -static 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); -} - PaintStyleEditor::PaintStyleEditor(QWidget *aParent, const GlobalPainter& aGlobalPainter, const QList& aPainters) : QDialog(aParent), theGlobalPainter(aGlobalPainter), thePainters(aPainters), FreezeUpdate(true) { diff --git a/src/Preferences/PreferencesDialog.cpp b/src/Preferences/PreferencesDialog.cpp index 4e7d97c9..cb061fd7 100644 --- a/src/Preferences/PreferencesDialog.cpp +++ b/src/Preferences/PreferencesDialog.cpp @@ -16,6 +16,7 @@ #include "Document.h" #include "Feature.h" #include "PropertiesDock.h" +#include "BoundaryIcon.h" #include #include @@ -24,18 +25,6 @@ #include #include - -static 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); -} - OsmServerWidget::OsmServerWidget(QWidget * parent, Qt::WindowFlags f) : QWidget(parent, f) { diff --git a/src/Utils/BoundaryIcon.cpp b/src/Utils/BoundaryIcon.cpp new file mode 100644 index 00000000..38bad139 --- /dev/null +++ b/src/Utils/BoundaryIcon.cpp @@ -0,0 +1,19 @@ +#ifndef BOUNDARYICON_H +#define BOUNDARYICON_H + +#include "BoundaryIcon.h" + +#include + +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 diff --git a/src/Utils/BoundaryIcon.h b/src/Utils/BoundaryIcon.h new file mode 100644 index 00000000..c8a37b66 --- /dev/null +++ b/src/Utils/BoundaryIcon.h @@ -0,0 +1,9 @@ +#ifndef __BOUNDARYICON_H__ +#define __BOUNDARYICON_H__ + +#include +#include + +void makeBoundaryIcon(QToolButton* bt, QColor C); + +#endif