|
@@ -37,7 +37,7 @@ public:
|
|
|
QDir Directory;
|
|
|
QPushButton* PushButton;
|
|
|
QString DialogCaption;
|
|
|
-#if QT_VERSION >= 0x040603
|
|
|
+#if QT_VERSION >= 0x040700
|
|
|
QFileDialog::Options DialogOptions;
|
|
|
#else
|
|
|
ctkDirectoryButton::Options DialogOptions;
|
|
@@ -49,7 +49,7 @@ public:
|
|
|
//-----------------------------------------------------------------------------
|
|
|
ctkDirectoryButtonPrivate::ctkDirectoryButtonPrivate()
|
|
|
{
|
|
|
-#if QT_VERSION >= 0x040603
|
|
|
+#if QT_VERSION >= 0x040700
|
|
|
this->DialogOptions = QFileDialog::ShowDirsOnly;
|
|
|
#else
|
|
|
this->DialogOptions = ctkDirectoryButton::ShowDirsOnly;
|
|
@@ -153,7 +153,7 @@ const QString& ctkDirectoryButton::caption()const
|
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
-#if QT_VERSION >= 0x040603
|
|
|
+#if QT_VERSION >= 0x040700
|
|
|
void ctkDirectoryButton::setOptions(const QFileDialog::Options& dialogOptions)
|
|
|
#else
|
|
|
void ctkDirectoryButton::setOptions(const Options& dialogOptions)
|
|
@@ -164,7 +164,7 @@ void ctkDirectoryButton::setOptions(const Options& dialogOptions)
|
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
-#if QT_VERSION >= 0x040603
|
|
|
+#if QT_VERSION >= 0x040700
|
|
|
const QFileDialog::Options& ctkDirectoryButton::options()const
|
|
|
#else
|
|
|
const ctkDirectoryButton::Options& ctkDirectoryButton::options()const
|
|
@@ -183,7 +183,7 @@ void ctkDirectoryButton::browse()
|
|
|
this,
|
|
|
d->DialogCaption.isEmpty() ? this->toolTip() : d->DialogCaption,
|
|
|
d->Directory.path(),
|
|
|
-#if QT_VERSION >= 0x040603
|
|
|
+#if QT_VERSION >= 0x040700
|
|
|
d->DialogOptions);
|
|
|
#else
|
|
|
QFlags<QFileDialog::Option>(int(d->DialogOptions)));
|