Welcome to mirror list, hosted at ThFree Co, Russian Federation.

widgets_impl.hpp « qt_tstfrm - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0d16b8c937577fb12c3c45d6c39c9fecc8b1c7a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "widgets.hpp"

namespace qt
{
  template <class T>
  GLDrawWidgetT<T>::~GLDrawWidgetT()
  {}

  template <class T>
  void GLDrawWidgetT<T>::paintGL()
  {
    if (m_p)
      this->DoDraw(m_p);
  }

  template <class T>
  void GLDrawWidgetT<T>::resizeGL(int w, int h)
  {
    if (m_p)
    {
      m_p->onSize(w, h);
      this->DoResize(w, h);
    }
  }
}