Set geometry in test_textbase.py.

See 83f7cf84a9 - it seems with the Qt 5.4.2
upgrade there are some more warnings on Windows.
This commit is contained in:
Florian Bruhin 2015-06-12 13:44:10 +02:00
parent b1e9ff059a
commit 9b066ec50a

View File

@ -46,6 +46,7 @@ def test_elided_text(qtbot, elidemode, check):
""" """
label = TextBase(elidemode=elidemode) label = TextBase(elidemode=elidemode)
qtbot.add_widget(label) qtbot.add_widget(label)
label.setGeometry(200, 200, 200, 200)
long_string = 'Hello world! ' * 20 long_string = 'Hello world! ' * 20
label.setText(long_string) label.setText(long_string)
label.resize(100, 50) label.resize(100, 50)