Make filepath/name in QtDragon right justified?

More
10 Mar 2021 16:23 #201662 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

Please Log in or Create an account to join the conversation.

More
10 Mar 2021 20:54 #201710 by persei8
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.

More
10 Mar 2021 21:22 #201722 by cmorley
Right justified and then having hover display the full path might be ok?

Please Log in or Create an account to join the conversation.

More
10 Mar 2021 21:27 #201723 by turbostew
Yes, hover display full path would be awesome!!

Please Log in or Create an account to join the conversation.

More
10 Mar 2021 21:51 #201728 by cmorley
I pushed a quick change for the tooltip.

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
Powered by Kunena Forum