Skip to content

Commit f43c1e0

Browse files
committed
increased limit for insert rows 1000, Fixed cursour reset on Edit mode in cells when auto saving
1 parent 959483e commit f43c1e0

4 files changed

Lines changed: 16 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ A user-friendly desktop application to edit test cases for keyword-driven testin
2626

2727
## Known Issues
2828

29-
* **Excel Coppatability:** Some files take longer than expected to load(suspect formating further testing required).
29+
* **Larger Files:** Dont use files larger than 1MB.
30+
Note: If your file contain's unwanted empty spaces remove them all empty spaces will be read as empty string
3031

3132
## Installation
3233

models/obj_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def create_preset(cls):
3131
columns = [str(i) for i in range(4)]
3232
data = [
3333
["Type", "User friendly name of Object", "By-Type", "Webdriver friendly name of Object"],
34-
["Link", "lnkAdmin", "XPATH", "//*[@id=\"page-admin\"]"],
34+
["", "", "XPATH", ""],
3535
["END", "", "", ""]
3636
]
3737
return pd.DataFrame(data, columns=columns)

ui/delegates.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,20 @@ def on_editor_text_changed(self, text):
111111

112112
def _on_timer_timeout(self):
113113
if self.editor and self.current_index.isValid():
114+
cursor_pos = None
115+
if isinstance(self.editor, QLineEdit):
116+
cursor_pos = self.editor.cursorPosition()
117+
elif isinstance(self.editor, QComboBox):
118+
cursor_pos = self.editor.lineEdit().cursorPosition()
119+
114120
self.commitData.emit(self.editor)
115121

122+
if self.editor and cursor_pos is not None:
123+
if isinstance(self.editor, QLineEdit):
124+
self.editor.setCursorPosition(cursor_pos)
125+
elif isinstance(self.editor, QComboBox):
126+
self.editor.lineEdit().setCursorPosition(cursor_pos)
127+
116128
def on_model_data_changed(self, topLeft, bottomRight, roles):
117129
if self.editor and self.current_index.isValid():
118130
try:

ui/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def insert_rows(self):
172172
"No. of Rows:",
173173
1,
174174
1,
175-
100
175+
1000
176176
)
177177
if ok and num > 0:
178178
rows_to_insert = num

0 commit comments

Comments
 (0)