Skip to content

Commit

Permalink
Merge pull request #3572 from rlaverde/change-deprecated-function-get…
Browse files Browse the repository at this point in the history
…integer

PR: Change deprecated funtion QInputDialog.getInteger for QInputDialog.getInt
  • Loading branch information
ccordoba12 authored Oct 21, 2016
2 parents 05f5a15 + eaf1783 commit c5e2227
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spyder/plugins/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def execute_lines(self, lines):
@Slot()
def change_max_line_count(self):
"Change maximum line count"""
mlc, valid = QInputDialog.getInteger(self, _('Buffer'),
mlc, valid = QInputDialog.getInt(self, _('Buffer'),
_('Maximum line count'),
self.get_option('max_line_count'),
0, 1000000)
Expand Down
2 changes: 1 addition & 1 deletion spyder/plugins/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ def clear_recent_files(self):
def change_max_recent_files(self):
"Change max recent files entries"""
editorstack = self.get_current_editorstack()
mrf, valid = QInputDialog.getInteger(editorstack, _('Editor'),
mrf, valid = QInputDialog.getInt(editorstack, _('Editor'),
_('Maximum number of recent files'),
self.get_option('max_recent_files'), 1, 35)
if valid:
Expand Down
2 changes: 1 addition & 1 deletion spyder/plugins/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def append_to_history(self, filename, command):
@Slot()
def change_history_depth(self):
"Change history max entries"""
depth, valid = QInputDialog.getInteger(self, _('History'),
depth, valid = QInputDialog.getInt(self, _('History'),
_('Maximum entries'),
self.get_option('max_entries'),
10, 10000)
Expand Down
2 changes: 1 addition & 1 deletion spyder_pylint/pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def apply_plugin_settings(self, options):
@Slot()
def change_history_depth(self):
"Change history max entries"""
depth, valid = QInputDialog.getInteger(self, _('History'),
depth, valid = QInputDialog.getInt(self, _('History'),
_('Maximum entries'),
self.get_option('max_entries'),
10, 10000)
Expand Down

0 comments on commit c5e2227

Please sign in to comment.