summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-18 06:33:21 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-18 06:33:21 (GMT)
commit19cc57c75a495b73d16e0932b77a6e2d9fbdc4e3 (patch)
treebfcfce9a442aaed1611995ffa7baa83ee101f85c /Swift
parent4c85b0679b30c604090e25a8e04c5d5e28b8f5ce (diff)
downloadswift-contrib-19cc57c75a495b73d16e0932b77a6e2d9fbdc4e3.zip
swift-contrib-19cc57c75a495b73d16e0932b77a6e2d9fbdc4e3.tar.bz2
Show the new egg presence icons in the presence combobox.
Diffstat (limited to 'Swift')
-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>