9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import os |
12 import os |
13 |
13 |
14 from PyQt5.QtCore import QPoint, QFileInfo, pyqtSignal, QEvent, QByteArray, \ |
14 from PyQt5.QtCore import pyqtSlot, QPoint, QFileInfo, pyqtSignal, QEvent, \ |
15 QMimeData, Qt, QSize |
15 QByteArray, QMimeData, Qt, QSize |
16 from PyQt5.QtGui import QColor, QDrag, QPixmap |
16 from PyQt5.QtGui import QColor, QDrag, QPixmap |
17 from PyQt5.QtWidgets import QWidget, QHBoxLayout, QSplitter, QTabBar, \ |
17 from PyQt5.QtWidgets import QWidget, QHBoxLayout, QSplitter, QTabBar, \ |
18 QApplication, QToolButton, QMenu, QLabel |
18 QApplication, QToolButton, QMenu, QLabel |
19 |
19 |
20 from E5Gui.E5Application import e5App |
20 from E5Gui.E5Application import e5App |
1163 [int(size / len(self.tabWidgets))] * len(self.tabWidgets)) |
1163 [int(size / len(self.tabWidgets))] * len(self.tabWidgets)) |
1164 self.splitRemoveAct.setEnabled(True) |
1164 self.splitRemoveAct.setEnabled(True) |
1165 self.nextSplitAct.setEnabled(True) |
1165 self.nextSplitAct.setEnabled(True) |
1166 self.prevSplitAct.setEnabled(True) |
1166 self.prevSplitAct.setEnabled(True) |
1167 |
1167 |
|
1168 @pyqtSlot() |
1168 def removeSplit(self, index=-1): |
1169 def removeSplit(self, index=-1): |
1169 """ |
1170 """ |
1170 Public method used to remove the current split view or a split view |
1171 Public method used to remove the current split view or a split view |
1171 by index. |
1172 by index. |
1172 |
1173 |