Changeset b2c2e4 for src/UIElements


Ignore:
Timestamp:
Feb 14, 2016, 12:33:41 PM (9 years ago)
Author:
Frederik Heber <heber@…>
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:
04c3a3
Parents:
cf9287
git-author:
Frederik Heber <heber@…> (10/30/15 16:07:39)
git-committer:
Frederik Heber <heber@…> (02/14/16 12:33:41)
Message:

FIX: Qt's parent properly set from QtMainWindow's point of view.

Location:
src/UIElements
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/QtMainWindow.cpp

    rcf9287 rb2c2e4  
    106106  QVBoxLayout *layout = new QVBoxLayout(layoutwidget);
    107107
    108   selectionagent = new QtSelectionChangedAgent(this);
    109 
    110   QtMoleculeListView *moleculeListView = new QtMoleculeListView(worldTab);
    111   moleculeList = new QtMoleculeList(InstanceBoard);
     108  QtMoleculeListView *moleculeListView = new QtMoleculeListView(InstanceBoard);
     109  selectionagent = new QtSelectionChangedAgent(moleculeListView);
     110  moleculeList = new QtMoleculeList(InstanceBoard, moleculeListView);
    112111  moleculeListView->setModel(moleculeList);
    113112  moleculeListView->setSelectionChangedAgent(selectionagent);
     
    122121
    123122  infoBox = new QtInfoBox(InstanceBoard);
    124   glWorldView = new GLWorldView(InstanceBoard, this);
     123  glWorldView = new GLWorldView(InstanceBoard, InstanceBoard);
    125124  glWorldView->setSizePolicy( QSizePolicy::Expanding,QSizePolicy::Expanding);
    126125  glWorldView->setMinimumSize( QSize(640,480) );
  • src/UIElements/Views/Qt4/MoleculeList/QtMoleculeList.cpp

    rcf9287 rb2c2e4  
    6969
    7070QtMoleculeList::QtMoleculeList(
    71     QtObservedInstanceBoard *_board) :
     71    QtObservedInstanceBoard *_board,
     72    QObject *_parent) :
     73  QStandardItemModel(_parent),
    7274  update_timer(NULL),
    7375  board(_board),
  • src/UIElements/Views/Qt4/MoleculeList/QtMoleculeList.hpp

    rcf9287 rb2c2e4  
    3939
    4040public:
    41   QtMoleculeList(QtObservedInstanceBoard *_board);
     41  QtMoleculeList(QtObservedInstanceBoard *_board, QObject *_parent = NULL);
    4242  virtual ~QtMoleculeList();
    4343
  • src/UIElements/Views/Qt4/QtInfoBox.cpp

    rcf9287 rb2c2e4  
    5252/***************** Basic structure for tab layout ***********/
    5353
    54 QtInfoBox::QtInfoBox(QtObservedInstanceBoard *_board) :
    55     QTabWidget(),
     54QtInfoBox::QtInfoBox(QtObservedInstanceBoard *_board, QWidget *_parent) :
     55    QTabWidget(_parent),
    5656    curAtomId(-1), nextAtomId(-1),
    5757    curMoleculeId(-1), nextMoleculeId(-1),
  • src/UIElements/Views/Qt4/QtInfoBox.hpp

    rcf9287 rb2c2e4  
    3939  Q_OBJECT
    4040public:
    41   QtInfoBox(QtObservedInstanceBoard *_board);
     41  QtInfoBox(QtObservedInstanceBoard *_board, QWidget *_parent = NULL);
    4242  virtual ~QtInfoBox();
    4343
Note: See TracChangeset for help on using the changeset viewer.