tallforasmurf / CHIP8IDE

An interactive development and emulation environment for the CHIP8/SCHIP system
30 stars 1 forks source link

Editor window status line grows too big #28

Closed tallforasmurf closed 7 years ago

tallforasmurf commented 7 years ago

In the event that the error message on a source line is long, the fact that the status_line of the SourceWindow class is a QLabel means that the label expands as needed to display the full text, which can force the window much wider than the user originally had it. And the window cannot be shrunk again until the message is cleared from the status line!

Example: statement is DA 'Θ'; unicode in string when assembled creates a very lengthy error about "the unicode value 328 cannot be encoded blah blah".

I have experimented with setting the size policy of the label but no matter what I set, the QLabel takes what space its text() value wants.

tallforasmurf commented 7 years ago

commit c82c499 The answer is to make the status line a read-only QLineEdit instead of a QLabel.