forked from qt-creator/qt-creator
Added a wizard for Qt Designer custom widgets and collections.
Add the wizard. Modify basefilewizard to use be able to handle binary data. Add some properties to path chooser (filters). Task-number: 251982 Initial-patch-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
@@ -47,7 +47,10 @@ class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget
|
||||
{
|
||||
Q_DISABLE_COPY(PathChooser)
|
||||
Q_OBJECT
|
||||
Q_ENUMS(Kind)
|
||||
Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true)
|
||||
Q_PROPERTY(QString promptDialogTitle READ promptDialogTitle WRITE setPromptDialogTitle DESIGNABLE true)
|
||||
Q_PROPERTY(Kind expectedKind READ expectedKind WRITE setExpectedKind DESIGNABLE true)
|
||||
|
||||
public:
|
||||
static const char * const browseButtonLabel;
|
||||
@@ -64,8 +67,13 @@ public:
|
||||
|
||||
// Default is <Directory>
|
||||
void setExpectedKind(Kind expected);
|
||||
Kind expectedKind() const;
|
||||
|
||||
void setPromptDialogTitle(const QString &title);
|
||||
QString promptDialogTitle() const;
|
||||
|
||||
void setPromptDialogFilter(const QString &filter);
|
||||
QString promptDialogFilter() const;
|
||||
|
||||
void setInitialBrowsePathBackup(const QString &path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user