MCPcopy Create free account
hub / github.com/TeXworks/texworks / getInt

Method getInt

unit-tests/MockScriptingAPI.h:150–159  ·  view source on GitHub ↗

QInputDialog functions These return QVariant rather than simple types, so that they can return null to indicate that the dialog was cancelled.

Source from the content-addressed store, hash-verified

148 // These return QVariant rather than simple types, so that they can return null
149 // to indicate that the dialog was cancelled.
150 QVariant getInt(QWidget* parent, const QString& title, const QString& label,
151 int value = 0, int min = -2147483647, int max = 2147483647, int step = 1) override {
152 Q_UNUSED(parent);
153 Q_UNUSED(title);
154 Q_UNUSED(label);
155 Q_UNUSED(min);
156 Q_UNUSED(max);
157 Q_UNUSED(step);
158 return value;
159 }
160 QVariant getDouble(QWidget* parent, const QString& title, const QString& label,
161 double value = 0, double min = -2147483647, double max = 2147483647, int decimals = 1) override {
162 Q_UNUSED(parent);

Callers 1

mocksMethod · 0.45

Calls

no outgoing calls

Tested by 1

mocksMethod · 0.36