21 #ifndef __ctkDirectoryButton_h
22 #define __ctkDirectoryButton_h
26 #include <QFileDialog>
31 #include "ctkWidgetsExport.h"
32 class ctkDirectoryButtonPrivate;
53 Q_PROPERTY(QFileDialog::AcceptMode acceptMode READ acceptMode WRITE setAcceptMode)
54 Q_PROPERTY(QString directory READ directory WRITE setDirectory NOTIFY directoryChanged USER
true)
57 Q_PROPERTY(QString caption READ caption WRITE setCaption)
60 Q_PROPERTY(QString text READ text WRITE setText)
63 Q_PROPERTY(QIcon icon READ icon WRITE setIcon)
67 #ifdef USE_QFILEDIALOG_OPTIONS
68 Q_PROPERTY(QFileDialog::Options
options READ
options WRITE setOptions)
75 #ifndef USE_QFILEDIALOG_OPTIONS
79 ShowDirsOnly = 0x00000001,
80 DontResolveSymlinks = 0x00000002,
81 DontConfirmOverwrite = 0x00000004,
82 DontUseSheet = 0x00000008,
83 DontUseNativeDialog = 0x00000010,
84 ReadOnly = 0x00000020,
85 HideNameFilterDetails = 0x00000040
87 Q_DECLARE_FLAGS(Options, Option)
131 #ifdef USE_QFILEDIALOG_OPTIONS
132 void setOptions(
const QFileDialog::Options&
options);
133 const QFileDialog::Options&
options()
const;
165 QScopedPointer<ctkDirectoryButtonPrivate>
d_ptr;
172 #ifndef USE_QFILEDIALOG_OPTIONS