Tweak in icon / callsign

* conversion to Icon in callsign
* toQIcon function
This commit is contained in:
Klaus Basan
2015-01-22 11:05:25 +01:00
parent 65957c0ebe
commit b629a9325b
4 changed files with 36 additions and 14 deletions

View File

@@ -14,6 +14,7 @@
#include "icons.h"
#include "pqangle.h"
#include <QIcon>
namespace BlackMisc
{
@@ -38,6 +39,9 @@ namespace BlackMisc
//! Corresponding pixmap
QPixmap toPixmap() const;
//! A QIcon
QIcon toQIcon() const;
//! Icon set?
bool isSet() const { return (this->m_index != static_cast<int>(CIcons::NotSet));}