OSDN Git Service

Ver0.11
authorMasayuki Satoh <miyabi.satoh@gmail.com>
Mon, 25 Aug 2014 21:28:16 +0000 (06:28 +0900)
committerMasayuki Satoh <miyabi.satoh@gmail.com>
Mon, 25 Aug 2014 21:28:16 +0000 (06:28 +0900)
folderview.cpp
mainwindow.cpp

index c57c57e..a590e59 100644 (file)
@@ -341,18 +341,16 @@ void FolderView::keyPressEvent(QKeyEvent *event)
 
 void FolderView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)
 {
-    Q_UNUSED(topLeft);
-    Q_UNUSED(bottomRight);
-    Q_UNUSED(roles);
-
     emit dataChanged();
+
+    QTableView::dataChanged(topLeft, bottomRight, roles);
 }
 
 void FolderView::currentChanged(const QModelIndex &current, const QModelIndex &previous)
 {
-    Q_UNUSED(previous);
-
     emit currentChanged(m_model.fileInfo(current).absoluteFilePath());
+
+    QTableView::currentChanged(current, previous);
 }
 
 void FolderView::mousePressEvent(QMouseEvent *event)
index d742ac8..fd69d95 100644 (file)
@@ -213,6 +213,10 @@ void MainWindow::focusChange(QWidget *old, QWidget *now)
         ui->statusBar->showMessage(folderView()->currentItem().absoluteFilePath());\r
     }\r
 \r
+    if (old == ui->searchBox1 || old == ui->searchBox2) {\r
+        old->setVisible(false);\r
+    }\r
+\r
     updateActions();\r
 }\r
 \r