forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user