summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtStatusWidget.cpp12
-rw-r--r--Swift/QtUI/Swift.qrc4
2 files changed, 10 insertions, 6 deletions
diff --git a/Swift/QtUI/QtStatusWidget.cpp b/Swift/QtUI/QtStatusWidget.cpp
index 57ef3e0..b89d5bb 100644
--- a/Swift/QtUI/QtStatusWidget.cpp
+++ b/Swift/QtUI/QtStatusWidget.cpp
@@ -8,12 +8,12 @@
namespace Swift {
QtStatusWidget::QtStatusWidget(QWidget *parent) : QWidget(parent) {
types_ = new QComboBox(this);
- types_->addItem("Available", QVariant(StatusShow::Online));
- types_->addItem("Free For Chat", QVariant(StatusShow::FFC));
- types_->addItem("Away", QVariant(StatusShow::Away));
- types_->addItem("Extended Away", QVariant(StatusShow::XA));
- types_->addItem("Do Not Disturb", QVariant(StatusShow::DND));
- types_->addItem("Offline", QVariant(StatusShow::None));
+ types_->addItem(QIcon(":/icons/online.png"), "Available", QVariant(StatusShow::Online));
+ types_->addItem(QIcon(":/icons/online.png"), "Free For Chat", QVariant(StatusShow::FFC));
+ types_->addItem(QIcon(":/icons/away.png"), "Away", QVariant(StatusShow::Away));
+ types_->addItem(QIcon(":/icons/away.png"), "Extended Away", QVariant(StatusShow::XA));
+ types_->addItem(QIcon(":/icons/dnd.png"), "Do Not Disturb", QVariant(StatusShow::DND));
+ types_->addItem(QIcon(":/icons/offline.png"), "Offline", QVariant(StatusShow::None));
connect(types_, SIGNAL(activated(int)), this, SLOT(handleTypeSelected(int)));
QBoxLayout *mainLayout = new QBoxLayout(QBoxLayout::TopToBottom, this);
mainLayout->setContentsMargins(0,0,0,0);
diff --git a/Swift/QtUI/Swift.qrc b/Swift/QtUI/Swift.qrc
index 11794af..1c07420 100644
--- a/Swift/QtUI/Swift.qrc
+++ b/Swift/QtUI/Swift.qrc
@@ -2,6 +2,10 @@
<RCC version="1.0">
<qresource>
<file alias="logo-shaded-text.256.png">../resources/logo/logo-shaded-text.256.png</file>
+ <file alias="icons/online.png">../resources/icons/online.png</file>
+ <file alias="icons/away.png">../resources/icons/away.png</file>
+ <file alias="icons/dnd.png">../resources/icons/dnd.png</file>
+ <file alias="icons/offline.png">../resources/icons/offline.png</file>
<file alias="icons/certificate.png">../resources/icons/certificate.png</file>
<file alias="icons/error.png">../resources/icons/error.png</file>
<file alias="icons/avatar.png">../resources/icons/avatar.png</file>