Mercurial > hg > octave-nkf
comparison gui/src/HistoryDockWidget.cpp @ 13577:e440b3f32f02
Fixed bug with closing subwindows.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Mon, 01 Aug 2011 18:51:36 +0200 |
parents | 807e5e9b7591 |
children | c0e66d6e3dc8 |
comparison
equal
deleted
inserted
replaced
13576:11fcb7094945 | 13577:e440b3f32f02 |
---|---|
47 | 47 |
48 widget ()->setLayout (layout); | 48 widget ()->setLayout (layout); |
49 | 49 |
50 connect (m_filterLineEdit, SIGNAL (textEdited (QString)), &m_sortFilterProxyModel, SLOT (setFilterWildcard(QString))); | 50 connect (m_filterLineEdit, SIGNAL (textEdited (QString)), &m_sortFilterProxyModel, SLOT (setFilterWildcard(QString))); |
51 connect (m_historyListView, SIGNAL (doubleClicked (QModelIndex)), this, SLOT (handleDoubleClick (QModelIndex))); | 51 connect (m_historyListView, SIGNAL (doubleClicked (QModelIndex)), this, SLOT (handleDoubleClick (QModelIndex))); |
52 connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); | |
52 } | 53 } |
53 | 54 |
54 void | 55 void |
55 HistoryDockWidget::noticeSettings () | 56 HistoryDockWidget::noticeSettings () |
56 { | 57 { |
60 void | 61 void |
61 HistoryDockWidget::handleDoubleClick (QModelIndex modelIndex) | 62 HistoryDockWidget::handleDoubleClick (QModelIndex modelIndex) |
62 { | 63 { |
63 emit commandDoubleClicked (modelIndex.data().toString()); | 64 emit commandDoubleClicked (modelIndex.data().toString()); |
64 } | 65 } |
66 | |
67 void | |
68 HistoryDockWidget::handleVisibilityChanged (bool visible) | |
69 { | |
70 if (visible) | |
71 emit activeChanged (true); | |
72 } | |
73 | |
74 void | |
75 HistoryDockWidget::closeEvent (QCloseEvent *event) | |
76 { | |
77 emit activeChanged (false); | |
78 QDockWidget::closeEvent (event); | |
79 } |