# HG changeset patch # User benoitrigolleau # Date 1194539200 0 # Node ID 894b45c9b787e1c55be06ddf06b4e63143bb266a # Parent e236ce53a2e7e4d4d4b6ab31d13b470f620d4c9a kill all windows when the program is closed popups are always on top diff -r e236ce53a2e7 -r 894b45c9b787 sv/main/MainWindow.cpp --- a/sv/main/MainWindow.cpp Thu Nov 08 14:42:12 2007 +0000 +++ b/sv/main/MainWindow.cpp Thu Nov 08 16:26:40 2007 +0000 @@ -3168,6 +3168,7 @@ void MainWindow::closeEvent(QCloseEvent *e) { + /* // std::cerr << "MainWindow::closeEvent" << std::endl; if (m_openingAudioFile) { @@ -3189,7 +3190,10 @@ settings.endGroup(); e->accept(); + exit(); return; + */ + exit(); } bool @@ -5135,6 +5139,7 @@ close(); } + QueryResultsWidget * MainWindow::getQueryResultsWidget() { return m_resultsWidget; @@ -5463,4 +5468,5 @@ { if (m_document) m_document->removeFilter(name); -} \ No newline at end of file +} + diff -r e236ce53a2e7 -r 894b45c9b787 sv/main/MainWindow.h --- a/sv/main/MainWindow.h Thu Nov 08 14:42:12 2007 +0000 +++ b/sv/main/MainWindow.h Thu Nov 08 16:26:40 2007 +0000 @@ -305,8 +305,6 @@ void exit(); - - protected: QWidget *m_videoWidget; QString m_sessionFile; @@ -514,7 +512,6 @@ private: void createMultiPaneLayerContainer(); - }; diff -r e236ce53a2e7 -r 894b45c9b787 widgets/GenericItemList.cpp --- a/widgets/GenericItemList.cpp Thu Nov 08 14:42:12 2007 +0000 +++ b/widgets/GenericItemList.cpp Thu Nov 08 16:26:40 2007 +0000 @@ -31,6 +31,10 @@ //this->setFocusPolicy(Qt::ClickFocus); } +GenericItemList::~GenericItemList(){ + +} + void GenericItemList::setData(QVariant &data){} diff -r e236ce53a2e7 -r 894b45c9b787 widgets/GenericItemList.h --- a/widgets/GenericItemList.h Thu Nov 08 14:42:12 2007 +0000 +++ b/widgets/GenericItemList.h Thu Nov 08 16:26:40 2007 +0000 @@ -24,6 +24,7 @@ public: GenericItemList(QWidget *parent=0); + ~GenericItemList(); void setData(QVariant &data); void setIndex(int index); virtual void configAction(); diff -r e236ce53a2e7 -r 894b45c9b787 widgets/ItemAudioFilterList.cpp --- a/widgets/ItemAudioFilterList.cpp Thu Nov 08 14:42:12 2007 +0000 +++ b/widgets/ItemAudioFilterList.cpp Thu Nov 08 16:26:40 2007 +0000 @@ -64,6 +64,14 @@ connect(this, SIGNAL(doubleClicked()), this, SLOT(openPropertyBox())); } +ItemAudioFilterList::~ItemAudioFilterList(){ + if(m_propertyBox){ + m_propertyBox->close(); + delete m_propertyBox; + } + +} + void ItemAudioFilterList::setIcon(QString &icon){ m_labelIcon->setPixmap(QIcon(icon).pixmap(25)); } @@ -89,7 +97,8 @@ void ItemAudioFilterList::configAction(){ if(m_propertyBox!=0){ - m_propertyBox->close(); + //m_propertyBox->close(); + m_propertyBox->setWindowFlags(m_propertyBox->windowFlags() | Qt::WindowStaysOnTopHint); m_propertyBox->show(); } } diff -r e236ce53a2e7 -r 894b45c9b787 widgets/ItemAudioFilterList.h --- a/widgets/ItemAudioFilterList.h Thu Nov 08 14:42:12 2007 +0000 +++ b/widgets/ItemAudioFilterList.h Thu Nov 08 16:26:40 2007 +0000 @@ -32,6 +32,7 @@ public: ItemAudioFilterList(QWidget *parent=0); + ~ItemAudioFilterList(); void setIcon(QString &icon); void setName(QString &name); inline QString getName(){return m_labelName->text();} diff -r e236ce53a2e7 -r 894b45c9b787 widgets/ItemLayerList.cpp --- a/widgets/ItemLayerList.cpp Thu Nov 08 14:42:12 2007 +0000 +++ b/widgets/ItemLayerList.cpp Thu Nov 08 16:26:40 2007 +0000 @@ -34,6 +34,7 @@ m_checkBoxShow = new QCheckBox; m_checkBoxPlay = new QCheckBox; m_layoutMain = new QHBoxLayout; + /* set the correct widget parameters*/ m_labelIcon->setMaximumSize(25,25); @@ -72,6 +73,13 @@ connect(this, SIGNAL(doubleClicked()), this, SLOT(openPropertyBox())); } +ItemLayerList::~ItemLayerList(){ + /*if(m_propertyBox){ + m_propertyBox->close(); + delete m_propertyBox; + }*/ +} + void ItemLayerList::setIcon(QString &icon){ m_labelIcon->setPixmap(QIcon(icon).pixmap(25)); } @@ -112,8 +120,10 @@ void ItemLayerList::configAction(){ if(m_propertyBox!=0){ - m_propertyBox->close(); + //m_propertyBox->close(); + m_propertyBox->setWindowFlags(m_propertyBox->windowFlags() | Qt::WindowStaysOnTopHint); m_propertyBox->show(); + } } diff -r e236ce53a2e7 -r 894b45c9b787 widgets/ItemLayerList.h --- a/widgets/ItemLayerList.h Thu Nov 08 14:42:12 2007 +0000 +++ b/widgets/ItemLayerList.h Thu Nov 08 16:26:40 2007 +0000 @@ -29,6 +29,7 @@ public: ItemLayerList(QWidget *parent=0); + ~ItemLayerList(); void setIcon(QString &icon); void setName(QString &name); inline QString getName(){return m_labelName->text();}