From 75f3bbe70cc00e5f718e5ac702f54699485521dc Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 8 Mar 2015 00:06:43 +0000 Subject: [PATCH] QtCreator/QtDesigner don't understand their own classes Wrapping the Ui:: UI class in a QScopedPointer, a perfectly proper thing to do, causes QtDesigner to fail to grok the code. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5019 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 1 + mainwindow.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9f32c1ab0..9787f3ded 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -463,6 +463,7 @@ MainWindow::~MainWindow() QByteArray cfname=fname.toLocal8Bit(); fftwf_export_wisdom_to_filename(cfname); m_audioThread->wait (); + delete ui, ui = 0; } //-------------------------------------------------------- writeSettings() diff --git a/mainwindow.h b/mainwindow.h index 685d62c77..b53cce38f 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -205,7 +205,7 @@ private: bool m_multiple; QSettings * m_settings; - QScopedPointer ui; + Ui::MainWindow * ui; // other windows Configuration m_config;