Give targets a tool tip property.

Use that for showing details about connected Symbian devices.
Also update the icon with an (not-)connected overlay icon.
Graphics design pending.
This commit is contained in:
con
2010-02-09 19:05:15 +01:00
parent f7207646bd
commit d8def18362
13 changed files with 125 additions and 26 deletions

View File

@@ -28,6 +28,7 @@
**************************************************************************/
#include "fancyactionbar.h"
#include "coreconstants.h"
#include <utils/stylehelper.h>
@@ -98,7 +99,7 @@ void FancyToolButton::paintEvent(QPaintEvent *event)
QRect drawRect = rect();
qDrawBorderPixmap(&painter, drawRect, margins, borderPixmap);
QPixmap pix = icon().pixmap(32, 32, isEnabled() ? QIcon::Normal : QIcon::Disabled);
QPixmap pix = icon().pixmap(Core::Constants::TARGET_ICON_SIZE, Core::Constants::TARGET_ICON_SIZE, isEnabled() ? QIcon::Normal : QIcon::Disabled);
QPoint center = rect().center();
QSizeF halfPixSize = pix.size()/2.0;