mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: free tab-widgets when exiting the application
This is completely irrelevant, however out of principle, let's free the tab-widgets at the end of the application. To do so, use Qt's object hierarchy. I'm not a fan of this kind of memory management, but it is how it is. Moreover, remove the explicit constructor of MainTab, since it doesn't differ from the default constructor anyway. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c139c16c03
commit
1c590783e0
2 changed files with 6 additions and 11 deletions
|
@ -27,7 +27,6 @@ class MainTab : public QTabWidget {
|
|||
Q_OBJECT
|
||||
public:
|
||||
MainTab(QWidget *parent = 0);
|
||||
~MainTab();
|
||||
void clearTabs();
|
||||
void reload();
|
||||
void initialUiSetup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue