diff options
author | komalsheth236 | 2015-05-08 17:27:01 +0530 |
---|---|---|
committer | komalsheth236 | 2015-05-08 17:27:01 +0530 |
commit | 6a69cbdbb54b99e1b4e27fac4635f8169b6db463 (patch) | |
tree | 6e05791ab65b9084c34c0d32f01dde2f0d3962e1 /src/frontEnd/ProjectExplorer.py | |
parent | a903ba510fca71c308c0268d3c99f98192dc95c0 (diff) | |
parent | 37854e4e6e1dfd448bc7fb63e31d750843aa68bc (diff) | |
download | eSim-6a69cbdbb54b99e1b4e27fac4635f8169b6db463.tar.gz eSim-6a69cbdbb54b99e1b4e27fac4635f8169b6db463.tar.bz2 eSim-6a69cbdbb54b99e1b4e27fac4635f8169b6db463.zip |
Merge pull request #1 from FOSSEE/master
Update Me
Diffstat (limited to 'src/frontEnd/ProjectExplorer.py')
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index a95986b1..282133cb 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -80,16 +80,7 @@ class SceneGraphModel(QtCore.QAbstractItemModel): else: return node.typeInfo() - if role == QtCore.Qt.DecorationRole: - if index.column() == 0: - typeInfo = node.typeInfo() - - if typeInfo == "DIRECTORY": - return QtGui.QIcon(QtGui.QPixmap("../images/default.png")) - - if typeInfo == "FILE": - return QtGui.QIcon(QtGui.QPixmap("../images/default.png")) - + """INPUTS: QModelIndex, QVariant, int (flag)""" def setData(self, index, value, role=QtCore.Qt.EditRole): @@ -243,6 +234,7 @@ class ProjectExplorer(QtGui.QWidget): self.textwindow = QtGui.QWidget() self.textwindow.setMinimumSize(600, 500) + self.textwindow.setWindowTitle(filename) self.text = QtGui.QTextEdit() #self.text.setMaximumSize(580, 450) self.save = QtGui.QPushButton('Save and Exit') |