ScrollAreaKineticScroller::ScrollAreaKineticScroller(QAbstractScrollArea *parent) :
    QObject(parent),
    _scroll(parent),
    _showBars(false)
{
    _timer.setSingleShot(true);
    connect(&_timer,SIGNAL(timeout()), this, SLOT(hideScrollBars()));
}
Beispiel #2
0
EditorView::EditorView(EditorView::Type type)
  : View()
  , m_type(type)
{
  SkinTheme* theme = static_cast<SkinTheme*>(getTheme());
  int l = theme->get_part(PART_EDITOR_SELECTED_W)->w;
  int t = theme->get_part(PART_EDITOR_SELECTED_N)->h;
  int r = theme->get_part(PART_EDITOR_SELECTED_E)->w;
  int b = theme->get_part(PART_EDITOR_SELECTED_S)->h;

  jwidget_set_border(this, l, t, r, b);
  hideScrollBars();
}