Commit 7356e158 authored by Steve Borho's avatar Steve Borho
Browse files

filedialogs: remove redundant find bar

parent 1d30d49f2f77
...@@ -30,7 +30,6 @@ from tortoisehg.hgqt.qtlib import geticon, getfont ...@@ -30,7 +30,6 @@ from tortoisehg.hgqt.qtlib import geticon, getfont
from tortoisehg.hgqt.filerevmodel import FileRevModel from tortoisehg.hgqt.filerevmodel import FileRevModel
from tortoisehg.hgqt.blockmatcher import BlockList, BlockMatch from tortoisehg.hgqt.blockmatcher import BlockList, BlockMatch
from tortoisehg.hgqt.lexers import get_lexer from tortoisehg.hgqt.lexers import get_lexer
from tortoisehg.hgqt.quickbar import FindInGraphlogQuickBar
from tortoisehg.hgqt.fileview import HgFileView from tortoisehg.hgqt.fileview import HgFileView
from tortoisehg.hgqt.repoview import HgRepoView from tortoisehg.hgqt.repoview import HgRepoView
...@@ -140,6 +139,7 @@ class FileLogDialog(_AbstractFileDialog): ...@@ -140,6 +139,7 @@ class FileLogDialog(_AbstractFileDialog):
self.setCentralWidget(self.splitter) self.setCentralWidget(self.splitter)
self.repoview = HgRepoView(self.repo, self) self.repoview = HgRepoView(self.repo, self)
self.textView = HgFileView(self.repo, self) self.textView = HgFileView(self.repo, self)
self.textView.forceMode('file')
self.splitter.addWidget(self.repoview) self.splitter.addWidget(self.repoview)
self.splitter.addWidget(self.textView) self.splitter.addWidget(self.textView)
...@@ -148,12 +148,6 @@ class FileLogDialog(_AbstractFileDialog): ...@@ -148,12 +148,6 @@ class FileLogDialog(_AbstractFileDialog):
self.textView.showMessage.connect(self.statusBar().showMessage) self.textView.showMessage.connect(self.statusBar().showMessage)
def setupToolbars(self): def setupToolbars(self):
self.findToolbar = FindInGraphlogQuickBar(self)
self.findToolbar.attachFileView(self.textView)
self.findToolbar.revisionSelected.connect(self.repoview.goto)
self.findToolbar.showMessage.connect(self.statusBar().showMessage)
self.attachQuickBar(self.findToolbar)
self.editToolbar.addSeparator() self.editToolbar.addSeparator()
self.editToolbar.addAction(self.actionBack) self.editToolbar.addAction(self.actionBack)
self.editToolbar.addAction(self.actionForward) self.editToolbar.addAction(self.actionForward)
...@@ -165,10 +159,6 @@ class FileLogDialog(_AbstractFileDialog): ...@@ -165,10 +159,6 @@ class FileLogDialog(_AbstractFileDialog):
self.repoview.revisionActivated.connect(self.revisionActivated) self.repoview.revisionActivated.connect(self.revisionActivated)
self.filerevmodel.showMessage.connect(self.statusBar().showMessage) self.filerevmodel.showMessage.connect(self.statusBar().showMessage)
self.filerevmodel.filled.connect(self.modelFilled) self.filerevmodel.filled.connect(self.modelFilled)
self.textView.forceMode('file')
self.findToolbar.setModel(self.filerevmodel)
self.findToolbar.setFilterFiles([self.filename])
self.findToolbar.setMode('file')
self.filerevmodel.setFilename(self.filename) self.filerevmodel.setFilename(self.filename)
def createActions(self): def createActions(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment