mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
qt: fix unused function warning in scicon.cpp
Enclose MakeSingleColorImage in an anonymous namespace to avoid a unused function warning on Windows and MacOSX. Github-Pull: #6143
This commit is contained in:
parent
be31ff7d8d
commit
e2e7f9513f
@ -11,7 +11,9 @@
|
|||||||
#include <QPalette>
|
#include <QPalette>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
|
|
||||||
static void MakeSingleColorImage(QImage& img, const QColor& colorbase)
|
namespace {
|
||||||
|
|
||||||
|
void MakeSingleColorImage(QImage& img, const QColor& colorbase)
|
||||||
{
|
{
|
||||||
img = img.convertToFormat(QImage::Format_ARGB32);
|
img = img.convertToFormat(QImage::Format_ARGB32);
|
||||||
for (int x = img.width(); x--; )
|
for (int x = img.width(); x--; )
|
||||||
@ -24,6 +26,8 @@ static void MakeSingleColorImage(QImage& img, const QColor& colorbase)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
QImage SingleColorImage(const QString& filename, const QColor& colorbase)
|
QImage SingleColorImage(const QString& filename, const QColor& colorbase)
|
||||||
{
|
{
|
||||||
QImage img(filename);
|
QImage img(filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user