refresh prefix enabled
diff --git a/chatdialog.cpp b/chatdialog.cpp
index 6991e3a..e55046e 100644
--- a/chatdialog.cpp
+++ b/chatdialog.cpp
@@ -47,12 +47,15 @@
m_rosterModel = new QStringListModel(this);
listView->setModel(m_rosterModel);
+ refreshButton->setIcon(QIcon(QPixmap(":images/refresh.png")));
+
createActions();
createTrayIcon();
m_timer = new QTimer(this);
connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
connect(setButton, SIGNAL(pressed()), this, SLOT(buttonPressed()));
connect(treeButton, SIGNAL(pressed()), this, SLOT(treeButtonPressed()));
+ connect(refreshButton, SIGNAL(pressed()), this, SLOT(getLocalPrefix()));
connect(this, SIGNAL(dataReceived(QString, const char *, size_t, bool, bool)), this, SLOT(processData(QString, const char *, size_t, bool, bool)));
connect(this, SIGNAL(treeUpdated(const std::vector<Sync::MissingDataInfo>)), this, SLOT(processTreeUpdate(const std::vector<Sync::MissingDataInfo>)));
connect(m_timer, SIGNAL(timeout()), this, SLOT(replot()));
diff --git a/chatdialog.ui b/chatdialog.ui
index dc5e943..31bcbbf 100644
--- a/chatdialog.ui
+++ b/chatdialog.ui
@@ -42,11 +42,37 @@
</widget>
</item>
<item>
- <widget class="QLabel" name="prefixLabel">
- <property name="focusPolicy">
- <enum>Qt::NoFocus</enum>
- </property>
- </widget>
+ <layout class = "QHBoxLayout" >
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="prefixLabel">
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="refreshButton">
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
+ </property>
+ <property name="minimumWidth">
+ <number>150</number>
+ </property>
+ <property name="maximumWidth">
+ <number>150</number>
+ </property>
+ <property name="text">
+ <string>Update Prefix</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
</layout>
</item>
diff --git a/demo.qrc b/demo.qrc
index b17d550..3e90f1f 100644
--- a/demo.qrc
+++ b/demo.qrc
@@ -3,5 +3,6 @@
<file>images/icon_large.png</file>
<file>images/icon_small.png</file>
<file>images/note.png</file>
+ <file>images/refresh.png</file>
</qresource>
</RCC>
diff --git a/images/refresh.png b/images/refresh.png
new file mode 100644
index 0000000..72dd809
--- /dev/null
+++ b/images/refresh.png
Binary files differ