mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Don't call updateGL directly.
This commit is contained in:
parent
6579369e21
commit
0d155dd971
2 changed files with 2 additions and 7 deletions
|
@ -31,7 +31,7 @@ void lcGLWidget::Redraw()
|
|||
{
|
||||
lcQGLWidget* Widget = (lcQGLWidget*)mWidget;
|
||||
|
||||
Widget->mUpdateTimer.start(0);
|
||||
Widget->update();
|
||||
}
|
||||
|
||||
void lcGLWidget::SetCursor(lcCursor CursorType)
|
||||
|
@ -93,10 +93,7 @@ lcQGLWidget::lcQGLWidget(QWidget *parent, lcGLWidget *owner, bool IsView, bool I
|
|||
widget = owner;
|
||||
widget->mWidget = this;
|
||||
|
||||
mUpdateTimer.setSingleShot(true);
|
||||
connect(&mUpdateTimer, SIGNAL(timeout()), this, SLOT(updateGL()));
|
||||
|
||||
widget->MakeCurrent();
|
||||
makeCurrent();
|
||||
|
||||
if (gWidgetList.isEmpty())
|
||||
{
|
||||
|
|
|
@ -27,8 +27,6 @@ public:
|
|||
|
||||
void SetPreviewPosition(const QRect& ParentRect);
|
||||
|
||||
QTimer mUpdateTimer;
|
||||
|
||||
protected:
|
||||
void initializeGL() override;
|
||||
void resizeGL(int Width, int Height) override;
|
||||
|
|
Loading…
Reference in a new issue