Make filepath/name in QtDragon right justified?
10 Mar 2021 16:23 #201662
by turbostew
Make filepath/name in QtDragon right justified? was created by turbostew
I find when running QtDragon gcode the filename in the box above the qcode is cut off, I only see the left side of the path/filename. I really want to see the right side because the filename is more important to see than the path. Sounds petty but sometimes while running 10 different sheets on the router at 1AM, I second guess myself on which file I am running...
Thanks,
Kent
Thanks,
Kent
Please Log in or Create an account to join the conversation.
10 Mar 2021 20:54 #201710
by persei8
Replied by persei8 on topic Make filepath/name in QtDragon right justified?
What if you just made the font smaller? Then you'd see more of the path. In the stylesheet:
QCombobox {
...
font: 10pt "Lato Heavy";
...
}
Please Log in or Create an account to join the conversation.
10 Mar 2021 21:22 #201722
by cmorley
Replied by cmorley on topic Make filepath/name in QtDragon right justified?
Right justified and then having hover display the full path might be ok?
Please Log in or Create an account to join the conversation.
10 Mar 2021 21:27 #201723
by turbostew
Replied by turbostew on topic Make filepath/name in QtDragon right justified?
Yes, hover display full path would be awesome!!
Please Log in or Create an account to join the conversation.
10 Mar 2021 21:51 #201728
by cmorley
Replied by cmorley on topic Make filepath/name in QtDragon right justified?
I pushed a quick change for the tooltip.
This is the relevant change (one line)
There is two places in the handler code to add this line.
This is the relevant change (one line)
def load_code(self, fname):
if fname is None: return
filename, file_extension = os.path.splitext(fname)
if not fname.endswith(".html"):
if not (INFO.program_extension_valid(fname)):
self.add_status("Unknown or invalid filename extension {}".format(file_extension))
return
self.w.cmb_gcode_history.addItem(fname)
self.w.cmb_gcode_history.setCurrentIndex(self.w.cmb_gcode_history.count() - 1)
self.w.cmb_gcode_history.setToolTip(fname) # add this line
...
There is two places in the handler code to add this line.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.070 seconds