PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/sci-visualization/qtiplot/files/qtiplot-0.9.8.3-popup.patch

https://github.com/1000timesdead/portage
Patch | 47 lines | 44 code | 3 blank | 0 comment | 0 complexity | 21899d0a8a0436b63adc198a900e4058 MD5 | raw file
  1. diff --git a/qtiplot/src/core/ApplicationWindow.cpp b/qtiplot/src/core/ApplicationWindow.cpp
  2. index 56c52a7..5422c0a 100755
  3. --- a/qtiplot/src/core/ApplicationWindow.cpp
  4. +++ b/qtiplot/src/core/ApplicationWindow.cpp
  5. @@ -15912,6 +15912,7 @@ void ApplicationWindow::showBugTracker()
  6. QDesktopServices::openUrl(QUrl("https://developer.berlios.de/bugs/?group_id=6626"));
  7. }
  8. +#ifdef QTIPLOT_SUPPORT
  9. void ApplicationWindow::showDonationDialog()
  10. {
  11. QString s = tr("<font size=+2, color = darkBlue><b>QtiPlot is open-source software and its development required hundreds of hours of work.<br><br>\
  12. @@ -15927,6 +15928,7 @@ void ApplicationWindow::showDonationDialog()
  13. if (msg->clickedButton() == btn)
  14. showDonationsPage();
  15. }
  16. +#endif
  17. void ApplicationWindow::parseCommandLineArguments(const QStringList& args)
  18. {
  19. diff --git a/qtiplot/src/core/ApplicationWindow.h b/qtiplot/src/core/ApplicationWindow.h
  20. index 5c479f9..f973557 100755
  21. --- a/qtiplot/src/core/ApplicationWindow.h
  22. +++ b/qtiplot/src/core/ApplicationWindow.h
  23. @@ -908,7 +908,9 @@ public slots:
  24. void receivedVersionFile(bool error);
  25. //! called when the user presses the actionCheckUpdates
  26. void searchForUpdates();
  27. +#ifdef QTIPLOT_SUPPORT
  28. void showDonationDialog();
  29. +#endif
  30. //! Open support page in external browser
  31. void showSupportPage();
  32. //! Open donation page in external browser
  33. diff --git a/qtiplot/src/core/QtiPlotApplication.cpp b/qtiplot/src/core/QtiPlotApplication.cpp
  34. index 69a5b0f..8c3637a 100755
  35. --- a/qtiplot/src/core/QtiPlotApplication.cpp
  36. +++ b/qtiplot/src/core/QtiPlotApplication.cpp
  37. @@ -57,7 +57,7 @@ QtiPlotApplication::QtiPlotApplication( int & argc, char ** argv) : QApplication
  38. ApplicationWindow *mw = new ApplicationWindow(factorySettings);
  39. mw->restoreApplicationGeometry();
  40. - #ifndef QTIPLOT_PRO
  41. + #ifdef QTIPLOT_SUPPORT
  42. mw->showDonationDialog();
  43. #endif
  44. if (mw->autoSearchUpdates){