return QColorDialog::getColor(initialColor, parent);
}
+Q_DECLARE_METATYPE(Qt::WindowFlags)
+
DeclarativeColorDialog::DeclarativeColorDialog(QWidget *parent) : QColorDialog(parent)
{
+ setProperty("originalWindowFlags", QVariant::fromValue(windowFlags()));
}
DeclarativeColorDialogAttached *DeclarativeColorDialog::qmlAttachedProperties(QObject *parent)
emit selectedFilterChanged(filter);
}
+Q_DECLARE_METATYPE(Qt::WindowFlags)
DeclarativeFileDialog::DeclarativeFileDialog(QWidget *parent)
: QFileDialog(parent)
{
+ setProperty("originalWindowFlags", QVariant::fromValue(windowFlags()));
}
DeclarativeFileDialogAttached *DeclarativeFileDialog::qmlAttachedProperties(QObject *parent)
emit dialogAcceptedChanged(accepted);
}
+Q_DECLARE_METATYPE(Qt::WindowFlags)
+
DeclarativeFontDialog::DeclarativeFontDialog(QWidget *parent)
: QFontDialog(parent)
{
+ setProperty("originalWindowFlags", QVariant::fromValue(windowFlags()));
}
DeclarativeFontDialogAttached *DeclarativeFontDialog::qmlAttachedProperties(QObject *parent)
emit dialogAcceptedChanged(accepted);
}
+Q_DECLARE_METATYPE(Qt::WindowFlags)
+
DeclarativeInputDialog::DeclarativeInputDialog(QWidget *parent) : QInputDialog(parent)
{
+ setProperty("originalWindowFlags", QVariant::fromValue(windowFlags()));
+
connect(this, SIGNAL(textValueChanged(QString)), this, SIGNAL(customTextValueChanged()));
connect(this, SIGNAL(intValueChanged(int)), this, SIGNAL(customIntValueChanged()));
connect(this, SIGNAL(doubleValueChanged(double)), this, SIGNAL(customDoubleValueChanged()));