mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-09 16:15:45 +00:00
Add a QIcon constructor for Snore::Icon
REVIEW: 125095
This commit is contained in:
parent
3ab8aed89c
commit
b81410f27c
@ -46,6 +46,10 @@ Icon::Icon(const QImage &img):
|
||||
{
|
||||
}
|
||||
|
||||
Icon::Icon(const QIcon &icon):
|
||||
d(new IconData(icon.pixmap(32).toImage()))
|
||||
{}
|
||||
|
||||
Icon::Icon(const QString &url):
|
||||
d(new IconData(url))
|
||||
{
|
||||
|
@ -53,6 +53,11 @@ public:
|
||||
*/
|
||||
Icon(const QImage &img);
|
||||
|
||||
/**
|
||||
* Creates an Icon from QIcon @p icon
|
||||
*/
|
||||
Icon(const QIcon &icon);
|
||||
|
||||
/**
|
||||
* Creates an Icon from a url
|
||||
* Valid urls are "file://home/foo/foo.png", "C:\\foo.png", ":/root/foo.png", "http://foo.com/foo.png"
|
||||
|
Loading…
x
Reference in New Issue
Block a user