Cosmetic changes to function assigning item UI
There was a display height inconsistency for QLineEdit in QStackedLayout among different platforms, for example, on Mac, the QLineEdit's height is bigger than on Linux. This commit removed QStackedLayout and used different logic to handle the same feature.