qtcurve-1.8.18-remove_qt_filedialog_api.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From 323402d8b99502300f65e909c61153cbd5d5d997 Mon Sep 17 00:00:00 2001
  2. From: Marco Martin <notmart@gmail.com>
  3. Date: Mon, 19 May 2014 10:37:37 +0200
  4. Subject: [PATCH] remove qt_filedialog_* api
  5. it has been removed and doesn't build anymore with recent Qt5 stable
  6. branch
  7. ---
  8. qt5/style/qtcurve_api.cpp | 26 --------------------------
  9. 1 file changed, 26 deletions(-)
  10. diff --git a/qt5/style/qtcurve_api.cpp b/qt5/style/qtcurve_api.cpp
  11. index a5ded22..2c794b7 100644
  12. --- a/qt5/style/qtcurve_api.cpp
  13. +++ b/qt5/style/qtcurve_api.cpp
  14. @@ -67,25 +67,6 @@
  15. #include <QDebug>
  16. -extern QString (*qt_filedialog_existing_directory_hook)(
  17. - QWidget *parent, const QString &caption, const QString &dir,
  18. - QFileDialog::Options options);
  19. -
  20. -extern QString (*qt_filedialog_open_filename_hook)(
  21. - QWidget *parent, const QString &caption, const QString &dir,
  22. - const QString &filter, QString *selectedFilter,
  23. - QFileDialog::Options options);
  24. -
  25. -extern QStringList (*qt_filedialog_open_filenames_hook)(
  26. - QWidget * parent, const QString &caption, const QString &dir,
  27. - const QString &filter, QString *selectedFilter,
  28. - QFileDialog::Options options);
  29. -
  30. -extern QString (*qt_filedialog_save_filename_hook)(
  31. - QWidget *parent, const QString &caption, const QString &dir,
  32. - const QString &filter, QString *selectedFilter,
  33. - QFileDialog::Options options);
  34. -
  35. namespace QtCurve {
  36. void
  37. @@ -163,13 +144,6 @@ Style::polish(QApplication *app)
  38. opts.menuBgndAppearance = APPEARANCE_FLAT;
  39. }
  40. - if (opts.useQtFileDialogApps.contains(appName)) {
  41. - qt_filedialog_existing_directory_hook = 0L;
  42. - qt_filedialog_open_filename_hook = 0L;
  43. - qt_filedialog_open_filenames_hook = 0L;
  44. - qt_filedialog_save_filename_hook = 0L;
  45. - }
  46. -
  47. QCommonStyle::polish(app);
  48. if (opts.hideShortcutUnderline) {
  49. app->installEventFilter(m_shortcutHandler);
  50. --
  51. 1.9.3