[Lprof-devel] lprof/src/lprofqt lprofmain.cpp, 1.184, 1.185 main.cpp, 1.41, 1.42
Brought to you by:
hvengel
|
From: Hal E. <hv...@us...> - 2008-03-07 16:29:07
|
Update of /cvsroot/lprof/lprof/src/lprofqt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18054/lprofqt Modified Files: lprofmain.cpp main.cpp Log Message: Change the way the profiler parms dialog is instantiated. Index: main.cpp =================================================================== RCS file: /cvsroot/lprof/lprof/src/lprofqt/main.cpp,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** main.cpp 6 Mar 2008 21:18:59 -0000 1.41 --- main.cpp 7 Mar 2008 16:29:01 -0000 1.42 *************** *** 132,147 **** setup_spyd2(execPath); - ProfileParms profParms; - profParms.setModal(FALSE); - - profParms.show(); - profParms.hide(); - lprofMain w; w.show(); - - QObject::connect(&profParms, SIGNAL(signalPickRGB()), &w, SLOT(slotPickRGBPatch())); - QObject::connect(&profParms, SIGNAL(profileParmsOK()), &w, SLOT(slotUpdateProfileParmsText())); - QObject::connect(&w, SIGNAL(showProfileParms()), &profParms, SLOT(slotShow())); lprofApp -> connect( lprofApp, SIGNAL( lastWindowClosed() ), lprofApp, SLOT( quit() ) ); --- 132,137 ---- Index: lprofmain.cpp =================================================================== RCS file: /cvsroot/lprof/lprof/src/lprofqt/lprofmain.cpp,v retrieving revision 1.184 retrieving revision 1.185 diff -C2 -d -r1.184 -r1.185 *** lprofmain.cpp 6 Mar 2008 21:18:58 -0000 1.184 --- lprofmain.cpp 7 Mar 2008 16:29:01 -0000 1.185 *************** *** 1007,1010 **** --- 1007,1011 ---- // Main app constructor. + ProfileParms* profP; lprofMain::lprofMain( QWidget* parent) *************** *** 1023,1026 **** --- 1024,1035 ---- ui = new Ui::lprofMainBase(); ui->setupUi(this); + profP = new ProfileParms(this); + // ProfileParms profParms(this); + profP -> setModal(FALSE); + profP -> hide(); + + connect(profP, SIGNAL(signalPickRGB()), this, SLOT(slotPickRGBPatch())); + connect(profP, SIGNAL(profileParmsOK()), this, SLOT(slotUpdateProfileParmsText())); + connect(this, SIGNAL(showProfileParms()), profP, SLOT(slotShow())); connect(ui->LoadBtn, SIGNAL(clicked()), this, SLOT(slotLoad())); |