Advertisement
Guest User

tooltipmanager.diff

a guest
Jul 20th, 2013
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. --- kde-baseapps/dolphin/src/views/tooltips/tooltipmanager.cpp 2013-06-28 20:13:51.567228746 +0300
  2. +++ kde-baseapps/dolphin/src/views/tooltips/tooltipmanager.cpp 2013-07-20 19:41:54.000000000 +0300
  3. @@ -32,6 +32,8 @@
  4. #include <QStyle>
  5. #include <QTimer>
  6.  
  7. +#include <QProcess>
  8. +
  9. ToolTipManager::ToolTipManager(QWidget* parent) :
  10. QObject(parent),
  11. m_showToolTipTimer(0),
  12. @@ -108,6 +110,14 @@
  13. // QCoreApplication tries to deliver an 'Enter' event to it, see bug 310579.
  14. m_fileMetaDataToolTip->deleteLater();
  15. m_fileMetaDataToolTip = 0;
  16. +
  17. + //Kill PLay
  18. + QObject *parent;
  19. + QString program = "/usr/bin/pkill";
  20. + QStringList arguments;
  21. + arguments << "-f" << "/opt/ffmpeg/bin/ffplay";
  22. + QProcess *killPlay = new QProcess(parent);
  23. + killPlay->start(program, arguments);
  24. }
  25. }
  26.  
  27. @@ -264,6 +274,14 @@
  28. m_fileMetaDataToolTip->show();
  29.  
  30. m_toolTipRequested = false;
  31. +
  32. + //Start Play
  33. + QObject *parent;
  34. + QString program = "/opt/ffmpeg/bin/ffplay";
  35. + QStringList arguments;
  36. + arguments << "-x" << "640" << "-y" << "480" << m_item.localPath();
  37. + QProcess *startPlay = new QProcess(parent);
  38. + startPlay->start(program, arguments);
  39. }
  40.  
  41. #include "tooltipmanager.moc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement