commit 92ddcc353e5fb98cd88c446537ca940bcc46efef Author: Tomas Touceda chiiph@gentoo.org Date: Tue May 24 15:04:45 2011 -0300
Add a nice icon --- src/vidalia/VAttachButton.cpp | 6 +++++- src/vidalia/res/16x16/detach-arrow.png | Bin 0 -> 602 bytes src/vidalia/res/vidalia.qrc | 1 + 3 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/vidalia/VAttachButton.cpp b/src/vidalia/VAttachButton.cpp index fa51b0d..6d9991b 100644 --- a/src/vidalia/VAttachButton.cpp +++ b/src/vidalia/VAttachButton.cpp @@ -1,11 +1,15 @@ #include "VAttachButton.h"
+#define IMG_DETACH ":/images/16x16/detach-arrow.png" + VAttachButton::VAttachButton(QWidget *parent) : QPushButton(parent) { _tab = 0; _attached = true; - setText(QString("X")); + setIcon(QIcon(IMG_DETACH)); + setFlat(true); + resize(16,16); }
VAttachButton::~VAttachButton() diff --git a/src/vidalia/res/16x16/detach-arrow.png b/src/vidalia/res/16x16/detach-arrow.png new file mode 100644 index 0000000..8beaf74 Binary files /dev/null and b/src/vidalia/res/16x16/detach-arrow.png differ diff --git a/src/vidalia/res/vidalia.qrc b/src/vidalia/res/vidalia.qrc index cfb1004..aa5cfe1 100644 --- a/src/vidalia/res/vidalia.qrc +++ b/src/vidalia/res/vidalia.qrc @@ -27,6 +27,7 @@ <file>16x16/utilities-log-viewer.png</file> <file>16x16/utilities-system-monitor.png</file> <file>16x16/view-media-artist.png</file> + <file>16x16/detach-arrow.png</file> </qresource> <qresource prefix="/images"> <file>22x22/edit_undo.png</file>
tor-commits@lists.torproject.org