Changeset 992fd7 for src/UIElements


Ignore:
Timestamp:
Jun 2, 2010, 12:11:52 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
257c77
Parents:
67c75b
Message:

Repaired some QT4 related memory leaks

Location:
src/UIElements
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/MainWindow.cpp

    r67c75b r992fd7  
    77
    88#include "UIElements/MainWindow.hpp"
     9#include "Helpers/MemDebug.hpp"
    910
    1011MainWindow::MainWindow()
    11 {
    12   // TODO Auto-generated constructor stub
    13 
    14 }
     12{}
    1513
    1614MainWindow::~MainWindow()
    17 {
    18   // TODO Auto-generated destructor stub
    19 }
     15{}
  • src/UIElements/QT4/QTDialog.cpp

    r67c75b r992fd7  
    2626#include "element.hpp"
    2727#include "molecule.hpp"
     28#include "Helpers/MemDebug.hpp"
    2829
    2930
  • src/UIElements/QT4/QTMainWindow.cpp

    r67c75b r992fd7  
    2424#include "Views/QT4/QTMoleculeView.hpp"
    2525#include "Views/QT4/QTStatusBar.hpp"
     26#include "Helpers/MemDebug.hpp"
    2627
    2728
     
    5758
    5859QTMainWindow::~QTMainWindow()
    59 {}
     60{
     61  menuBar()->clear();
     62  delete editMoleculesMenu;
     63}
    6064
    6165void QTMainWindow::display() {
  • src/UIElements/QT4/QTUIFactory.cpp

    r67c75b r992fd7  
    1818#include "version.h"
    1919#include "defs.hpp"
     20#include "Helpers/MemDebug.hpp"
    2021
    2122QTUIFactory::QTUIFactory()
  • src/UIElements/TextUIFactory.cpp

    r67c75b r992fd7  
    99#include "UIElements/TextWindow.hpp"
    1010#include "UIElements/TextDialog.hpp"
    11 
     11#include "Helpers/MemDebug.hpp"
    1212
    1313TextUIFactory::TextUIFactory()
  • src/UIElements/TextWindow.cpp

    r67c75b r992fd7  
    4242#include "Views/StreamStringView.hpp"
    4343#include "Views/MethodStringView.hpp"
     44#include "Helpers/MemDebug.hpp"
    4445
    4546#include <iostream>
  • src/UIElements/UIFactory.cpp

    r67c75b r992fd7  
    1111#include "UIElements/UIFactory.hpp"
    1212#include "Helpers/Assert.hpp"
     13#include "Helpers/MemDebug.hpp"
    1314
    1415using namespace std;
Note: See TracChangeset for help on using the changeset viewer.