~unity-team/oxide/locationBarHeightOnScreenChange

« back to all changes in this revision

Viewing changes to qt/quick/oxide_qquick_contents_view.cc

  • Committer: Gerry Boland
  • Date: 2016-04-28 14:40:39 UTC
  • Revision ID: gerry.boland@canonical.com-20160428144039-vbbqum5za738dixn
On screen scale change, need to recalculate the height of the location bar in terms of the new scale

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <QTouchEvent>
26
26
 
27
27
#include "qt/quick/api/oxideqquicktouchselectioncontroller.h"
 
28
#include "qt/quick/api/oxideqquickwebview.h"
 
29
#include "qt/quick/api/oxideqquickwebview_p.h"
28
30
 
29
31
#include "oxide_qquick_accelerated_frame_node.h"
30
32
#include "oxide_qquick_image_frame_node.h"
247
249
  }
248
250
 
249
251
  proxy()->screenUpdated();
 
252
  //REMOVEME - need to recalculate location bar height in case scale changed
 
253
  auto webview = static_cast<OxideQQuickWebView*>(item_.data());
 
254
  OxideQQuickWebViewPrivate::get(webview)->updateLocationBarHeight();
250
255
}
251
256
 
252
257
void ContentsView::screenChangedHelper(QScreen* screen) {