|
|
@ -34,11 +34,12 @@ QPixmap* UBToolWidget::sUnpinPixmap = 0; |
|
|
|
|
|
|
|
|
|
|
|
UBToolWidget::UBToolWidget(const QUrl& pUrl, QWidget *pParent) |
|
|
|
UBToolWidget::UBToolWidget(const QUrl& pUrl, QWidget *pParent) |
|
|
|
: QWidget(pParent, Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) |
|
|
|
: QWidget(pParent, Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) |
|
|
|
|
|
|
|
, mWebView(0) |
|
|
|
|
|
|
|
, mToolWidget(0) |
|
|
|
, mShouldMoveWidget(false) |
|
|
|
, mShouldMoveWidget(false) |
|
|
|
, mContentMargin(0) |
|
|
|
, mContentMargin(0) |
|
|
|
, mFrameWidth(0) |
|
|
|
, mFrameWidth(0) |
|
|
|
, mWebView(0) |
|
|
|
|
|
|
|
, mToolWidget(0)
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
int widgetType = UBGraphicsWidgetItem::widgetType(pUrl); |
|
|
|
int widgetType = UBGraphicsWidgetItem::widgetType(pUrl); |
|
|
|
if (widgetType == UBWidgetType::Apple) |
|
|
|
if (widgetType == UBWidgetType::Apple) |
|
|
@ -53,11 +54,12 @@ UBToolWidget::UBToolWidget(const QUrl& pUrl, QWidget *pParent) |
|
|
|
|
|
|
|
|
|
|
|
UBToolWidget::UBToolWidget(UBGraphicsWidgetItem *pWidget, QWidget *pParent) |
|
|
|
UBToolWidget::UBToolWidget(UBGraphicsWidgetItem *pWidget, QWidget *pParent) |
|
|
|
: QWidget(pParent, Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) |
|
|
|
: QWidget(pParent, Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) |
|
|
|
|
|
|
|
, mWebView(0) |
|
|
|
|
|
|
|
, mToolWidget(pWidget) |
|
|
|
, mShouldMoveWidget(false) |
|
|
|
, mShouldMoveWidget(false) |
|
|
|
, mContentMargin(0) |
|
|
|
, mContentMargin(0) |
|
|
|
, mFrameWidth(0) |
|
|
|
, mFrameWidth(0) |
|
|
|
, mWebView(0) |
|
|
|
|
|
|
|
, mToolWidget(pWidget) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
initialize(); |
|
|
|
initialize(); |
|
|
|
javaScriptWindowObjectCleared(); |
|
|
|
javaScriptWindowObjectCleared(); |
|
|
|