diff --git a/autotests/pythontest.py b/autotests/pythontest.py index c93e753..b0a3ca8 100644 --- a/autotests/pythontest.py +++ b/autotests/pythontest.py @@ -1,24 +1,28 @@ #!/usr/bin/env python #-*- coding: utf-8 -*- import sys sys.path.append(sys.argv[1]) from PyQt5 import QtCore from PyQt5 import QtGui from PyKF5 import KGuiAddons def main(): app = QtGui.QGuiApplication(sys.argv) colorCollection = KGuiAddons.KColorCollection() colorCollection.addColor(QtCore.Qt.blue) colorCollection.addColor(QtCore.Qt.red) assert(colorCollection.count() == 2) + painter = QtGui.QPainter() + p = QtCore.QSizeF() + foo = KGuiAddons.KFontUtils.adaptFontSize(painter, "foo", p) + if __name__ == '__main__': main()