# HG changeset patch # User SokoL_SD # Date 1244388329 0 # Node ID 39782d736db424dee97018c6baa828882c3b27de # Parent 798e54c1f66ea0f94347a3ec03cc4f7d78f00bce typesystem: small fix for Qt 4.4 diff -r 798e54c1f66e -r 39782d736db4 generator/typesystem_gui-java.java --- a/generator/typesystem_gui-java.java Sun Jun 07 15:18:17 2009 +0000 +++ b/generator/typesystem_gui-java.java Sun Jun 07 15:25:29 2009 +0000 @@ -1710,9 +1710,12 @@ public static double getDouble(QWidget _parent, string title, string label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, ref bool ok = false, int flags = 0) { return qtd_QInputDialog_getDouble_private_QWidget_string_string_double_double_double_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.nativeId, title, label, value, minValue, maxValue, decimals, &ok, flags); } - - public static int getInt(QWidget _parent, string title, string label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, ref bool ok = false, int flags = 0) { - return qtd_QInputDialog_getInt_private_QWidget_string_string_int_int_int_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.nativeId, title, label, value, minValue, maxValue, step, &ok, flags); + + static if (QT_VERSION >= QT_VERSION_CHECK(4, 5, 0)) + { + public static int getInt(QWidget _parent, string title, string label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, ref bool ok = false, int flags = 0) { + return qtd_QInputDialog_getInt_private_QWidget_string_string_int_int_int_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.nativeId, title, label, value, minValue, maxValue, step, &ok, flags); + } } public static string getItem(QWidget _parent, string title, string label, string[] items, int current = 0, bool editable = true, ref bool ok = false, int flags = 0) {