labscript-suite-temp-2 / runmanager

runmanager is a graphical user interface (GUI) used to aid the compilation of labscript experiment scripts into hardware instructions to be executed on the hardware. Experiment parameters can be adjusted in the GUI, and lists of parameters can be used to create sequences of experiments, and scan over complex parameter spaces.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

paintEvent method of FingerTabBar is not implemented fully #2

Open philipstarkey opened 10 years ago

philipstarkey commented 10 years ago

Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


This bug only applies to runmanager v2

Re-ordering tabs doesn't look nice at all and gets confusing because some tabs don't draw correctly during a drag. I think this is because the implementation in FingerTabs is pretty rudimentary. I would suggest effectively duplicating the the paintEvent code from c++ (see https://qt.gitorious.org/qt/qt/source/5f0f5dd371cb5fbd1ae1cb8f7b6f03c0109d2d6c:src/gui/widgets/qtabbar.cpp#L1531 ) and modifying it to draw the text horizontally (as we do now). That way, hopefully things will look nice! You could merge this in with the labscript_utils/qwidgets/fingertabs code so that it fixes it in BLACS too.

philipstarkey commented 10 years ago

Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).