changend qcheckbox to QLabel for hashLabel

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@476 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-04-05 20:03:25 +00:00
parent f922745fe6
commit 1388aaa9dd
5 changed files with 21 additions and 5 deletions

View File

@ -40,6 +40,8 @@
#include <QPixmap> #include <QPixmap>
#include <QHeaderView> #include <QHeaderView>
#include <QTimer> #include <QTimer>
#include <QMovie>
#include <QLabel>
/* Images for context menu icons */ /* Images for context menu icons */
#define IMAGE_DOWNLOAD ":/images/start.png" #define IMAGE_DOWNLOAD ":/images/start.png"
@ -48,6 +50,7 @@
#define IMAGE_MSG ":/images/message-mail.png" #define IMAGE_MSG ":/images/message-mail.png"
#define IMAGE_ATTACHMENT ":/images/attachment.png" #define IMAGE_ATTACHMENT ":/images/attachment.png"
#define IMAGE_FRIEND ":/images/peers_16x16.png" #define IMAGE_FRIEND ":/images/peers_16x16.png"
#define IMAGE_PROGRESS ":/images/browse-looking.gif"
/** Constructor */ /** Constructor */
@ -57,6 +60,8 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent)
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */
ui.setupUi(this); ui.setupUi(this);
connect(ui.checkButton, SIGNAL(clicked()), this, SLOT(forceCheck())); connect(ui.checkButton, SIGNAL(clicked()), this, SLOT(forceCheck()));
@ -133,6 +138,9 @@ void SharedFilesDialog::checkUpdate()
if (rsicontrol->InDirectoryCheck()) if (rsicontrol->InDirectoryCheck())
{ {
ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_BUSY)); ui.hashLabel->setPixmap(QPixmap(IMAGE_HASH_BUSY));
/*QMovie *movie = new QMovie(IMAGE_PROGRESS);
ui.hashLabel->setMovie(movie);
movie->start();*/
} }
else else
{ {

View File

@ -86,7 +86,7 @@ private:
QTreeView *shareddirtreeview; QTreeView *shareddirtreeview;
QMovie *movie;
/** Qt Designer generated object */ /** Qt Designer generated object */
Ui::SharedFilesDialog ui; Ui::SharedFilesDialog ui;

View File

@ -507,6 +507,9 @@
</property> </property>
<item row="0" column="0" > <item row="0" column="0" >
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="spacing" >
<number>0</number>
</property>
<item> <item>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<item> <item>
@ -576,9 +579,6 @@ p, li { white-space: pre-wrap; }
<property name="text" > <property name="text" >
<string/> <string/>
</property> </property>
<property name="pixmap" >
<pixmap resource="images.qrc" >:/qss/black/checkBox_selected.png</pixmap>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>

View File

@ -3,6 +3,7 @@
<file>help/authors.html</file> <file>help/authors.html</file>
<file>help/licence.html</file> <file>help/licence.html</file>
<file>help/thanks.html</file> <file>help/thanks.html</file>
<file>images/browse-looking.gif</file>
<file>images/addfriendlabel.png</file> <file>images/addfriendlabel.png</file>
<file>images/backgroundl.png</file> <file>images/backgroundl.png</file>
<file>images/blockdevice.png</file> <file>images/blockdevice.png</file>
@ -192,6 +193,13 @@
<file>images/textedit/textcenter.png</file> <file>images/textedit/textcenter.png</file>
<file>images/textedit/textleft.png</file> <file>images/textedit/textleft.png</file>
<file>images/textedit/textright.png</file> <file>images/textedit/textright.png</file>
<file>images/textedit/text_bold.png</file>
<file>images/textedit/text_italic.png</file>
<file>images/textedit/text_under.png</file>
<file>images/textedit/text_block.png</file>
<file>images/textedit/text_center.png</file>
<file>images/textedit/text_left.png</file>
<file>images/textedit/text_right.png</file>
<file>images/textedit/editcopy.png</file> <file>images/textedit/editcopy.png</file>
<file>images/textedit/editcut.png</file> <file>images/textedit/editcut.png</file>
<file>images/textedit/editpaste.png</file> <file>images/textedit/editpaste.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB