QApplicationPrivate::setSystemFont(d->getThemeFont());
d->applyCustomPaletteHash();
if (!d->isKDE4Session()) {
+#ifndef QT_NO_FILEDIALOG
qt_filedialog_open_filename_hook = &QGtkStylePrivate::openFilename;
qt_filedialog_save_filename_hook = &QGtkStylePrivate::saveFilename;
qt_filedialog_open_filenames_hook = &QGtkStylePrivate::openFilenames;
qt_filedialog_existing_directory_hook = &QGtkStylePrivate::openDirectory;
+#endif
qApp->installEventFilter(&d->filter);
}
}
if (app->desktopSettingsAware() && d->isThemeAvailable()
&& !d->isKDE4Session()) {
+#ifndef QT_NO_FILEDIALOG
qt_filedialog_open_filename_hook = 0;
qt_filedialog_save_filename_hook = 0;
qt_filedialog_open_filenames_hook = 0;
qt_filedialog_existing_directory_hook = 0;
+#endif
qApp->removeEventFilter(&d->filter);
}
}
|| qobject_cast<QSpinBox*>(widget)
|| qobject_cast<QHeaderView*>(widget))
widget->setAttribute(Qt::WA_Hover);
+#ifndef QT_NO_TREEVIEW
else if (QTreeView *tree = qobject_cast<QTreeView *> (widget))
tree->viewport()->setAttribute(Qt::WA_Hover);
+#endif
}
/*!
extern QStringList qt_make_filter_list(const QString &filter);
+#ifndef QT_NO_FILEDIALOG
void QGtkStylePrivate::setupGtkFileChooser(GtkWidget* gtkFileChooser, QWidget *parent,
const QString &dir, const QString &filter, QString *selectedFilter,
QFileDialog::Options options, bool isSaveDialog,
gtk_widget_destroy (gtkFileChooser);
return filename;
}
+#endif
QIcon QGtkStylePrivate::getFilesystemIcon(const QFileInfo &info)
{
QT_BEGIN_NAMESPACE
+#ifndef QT_NO_FILEDIALOG
typedef QStringList (*_qt_filedialog_open_filenames_hook)(QWidget * parent, const QString &caption, const QString &dir,
const QString &filter, QString *selectedFilter, QFileDialog::Options options);
typedef QString (*_qt_filedialog_open_filename_hook) (QWidget * parent, const QString &caption, const QString &dir,
extern Q_WIDGETS_EXPORT _qt_filedialog_open_filenames_hook qt_filedialog_open_filenames_hook;
extern Q_WIDGETS_EXPORT _qt_filedialog_save_filename_hook qt_filedialog_save_filename_hook;
extern Q_WIDGETS_EXPORT _qt_filedialog_existing_directory_hook qt_filedialog_existing_directory_hook;
+#endif //!QT_NO_FILEDIALOG
class QGtkStylePrivate;
static QString getThemeName();
virtual int getSpinboxArrowSize() const;
+#ifndef QT_NO_FILEDIALOG
static void setupGtkFileChooser(GtkWidget* gtkFileChooser, QWidget *parent,
const QString &dir, const QString &filter, QString *selectedFilter,
QFileDialog::Options options, bool isSaveDialog = false,
static QString openDirectory(QWidget *parent, const QString &caption, const QString &dir, QFileDialog::Options options);
static QStringList openFilenames(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
QString *selectedFilter, QFileDialog::Options options);
+#endif
static QIcon getFilesystemIcon(const QFileInfo &);
static Ptr_gtk_container_forall gtk_container_forall;