4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter lexer associations for the project. |
7 Module implementing a dialog to enter lexer associations for the project. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 import os |
12 import os |
11 |
13 |
12 from PyQt4.QtCore import Qt, pyqtSlot, qVersion |
14 from PyQt4.QtCore import Qt, pyqtSlot, qVersion |
13 from PyQt4.QtGui import QHeaderView, QTreeWidgetItem, QDialog |
15 from PyQt4.QtGui import QHeaderView, QTreeWidgetItem, QDialog |
24 Constructor |
26 Constructor |
25 |
27 |
26 @param project reference to the project object |
28 @param project reference to the project object |
27 @param parent reference to the parent widget (QWidget) |
29 @param parent reference to the parent widget (QWidget) |
28 """ |
30 """ |
29 super().__init__(parent) |
31 super(LexerAssociationDialog, self).__init__(parent) |
30 self.setupUi(self) |
32 self.setupUi(self) |
31 |
33 |
32 self.editorLexerList.headerItem().setText(self.editorLexerList.columnCount(), "") |
34 self.editorLexerList.headerItem().setText(self.editorLexerList.columnCount(), "") |
33 header = self.editorLexerList.header() |
35 header = self.editorLexerList.header() |
34 if qVersion() >= "5.0.0": |
36 if qVersion() >= "5.0.0": |