redesigned little bit Peer Details

fixed qss stylesheets for lots of QPushButton's
removed not needed sources

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@487 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-04-08 00:31:46 +00:00
parent 3f5966f2c0
commit 2d6af0b4c1
15 changed files with 614 additions and 554 deletions

View file

@ -21,14 +21,13 @@
#include <util/AnimatedButton.h>
//#include <util/SafeConnect.h>
//#include <util/SafeDelete.h>
#include <QtGui/QtGui>
static const char * MNG_FORMAT = "MNG";
AnimatedButton::AnimatedButton(QAbstractButton * button, const QString & animatedIconFilename) {
AnimatedButton::AnimatedButton(QToolButton * button, const QString & animatedIconFilename) {
_button = button;
_animatedIcon = new QMovie(animatedIconFilename, MNG_FORMAT, _button);
connect(_animatedIcon, SIGNAL(frameChanged(int)), SLOT(updateButtonIcon()));

View file

@ -28,7 +28,7 @@
#include <QtCore/QObject>
class QAbstractButton;
class QToolButton;
class QMovie;
class QString;
@ -49,7 +49,7 @@ public:
* @param button button' icon to animate
* @param animatedIconFilename mng filename to animate the button icon
*/
AnimatedButton(QAbstractButton * button, const QString & animatedIconFilename);
AnimatedButton(QToolButton * button, const QString & animatedIconFilename);
~AnimatedButton();
@ -62,7 +62,7 @@ private Q_SLOTS:
private:
QAbstractButton * _button;
QToolButton * _button;
QMovie * _animatedIcon;
};