X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Ficon.cpp;h=3694a3a20649851afd1974fca11be2b54cc9f2ee;hb=9cad7696cf0ef2f58c231c7b1eaaae0c16d0273d;hp=729a88b22823acb6bf3acadd7ab1b37af2592431;hpb=71d7e1a6931b5edfa3fd15de5ad82bbca25d1426;p=quassel.git diff --git a/src/uisupport/icon.cpp b/src/uisupport/icon.cpp index 729a88b2..3694a3a2 100644 --- a/src/uisupport/icon.cpp +++ b/src/uisupport/icon.cpp @@ -21,6 +21,21 @@ #include "icon.h" #include "iconloader.h" +Icon::Icon() : QIcon() { + +} + Icon::Icon(const QString &name) : QIcon() { addPixmap(IconLoader::global()->loadIcon(name, IconLoader::Desktop)); } + +Icon::Icon(const QIcon& copy) : QIcon(copy) { + +} + +Icon& Icon::operator=(const Icon &other) { + if (this != &other) { + QIcon::operator=(other); + } + return *this; +}